-
Notifications
You must be signed in to change notification settings - Fork 3
Publishing new versions
Jose Emilio Labra Gayo edited this page Aug 12, 2024
·
15 revisions
- First time: install cargo workspaces so you can use
cargo ws
command. - Each time:
- Run
cargo ws version
to change to a new version. It will update theCargo.toml
file in each workspace and push the tag to github. See this help for more information. - Run
cargo publish --publish-as-is
to publish the changed workspaces in crates.io. See this help. I think I could skip the previous command and try to do all of this in one step...but when it fails, it is difficult to keep track of what failed and I had to publish manually.
- Run
At this moment (until I know how to automate it) the process to publish a new version is a bit manual. It requires two steps:
- Update the versions in
cargo.toml
of the different crates. - Publish each crate individually taking care of the dependency order. The command to publish a crate is:
cargo publish -p module
The dependency order at this moment is:
iri_s
prefixmap
srdf
rbe
rbe_testsuite
shex_ast
shapemap
shex_compact
shex_validation
shex_testsuite
shacl_ast
dctap
rudof-cli
After publishing each crate, add a tag for the release using:
git tag -a v0.1.0 -m "v0.1.0"
git push origin v0.1.0
And finally create the release from github interface.
To increment all the versions of the crates at once, it should be possible to use:
cargo ws version
But it requires to have cargo-workspaces installed which is currently failing in my WSL.
All this depends on issue 1169 from Cargo project
- (RDF) Information about a node in RDF file
- (RDF) Merge several RDF data files
- (RDF/SPARQL) Information about a node in Wikidata
- (ShEx) Show info about a schema
- (ShEx) Validate a specific node with a shape
- (SHACL) Show info about a SHACL schema
- (SHACL) Read a SHACL Shapes graph and convert to some format
- (SHACL) Validating RDF data using SHACL
- (SPARQL) Running SPARQL queries
- (Python) Invoking this library from Python
- (SHACL → ShEx) Convert SHACL shapes graph to ShEx schema
- (ShEx → SVG/PNG/...) Convert a ShEx schema to an UML-like visualization in SVG, PNG, ...
- (ShEx → HTML) Convert ShEx schemas to HTML views
- (ShEx → SPARQL) Convert a simple ShEx schema to SPARQL
- (DCTap → ShEx) Convert a CSV file in DCTap to a ShEx schema
- (DCTap → SVG/PNG/...) Convert a CSV file in DCTap to an UML-like visualization in SVG, PNG, ...