CTDopts
is a module for enabling tools with CTD reading/writing, argument parsing, validating and manipulating capabilities.
Please check out example.py for an overview of CTDopt's features.
CTDopts
is available in the Anaconda Cloud under the workflowconversion
channel. You can install the latest stable release using conda
by executing the following command:
$ conda install --channel WorkflowConversionOrg ctdopts
Or, if you want the latest, possibly unstable, version, you can clone the CTDopts
repository from https://github.com/WorkflowConversion/CTDopts.
In order to upload CTDopts
to the Anaconda Cloud for distribution, you should familiarize yourself with the Anaconda Cloud documentation on packages. A summary of the required steps to update CTDopts
on the Anaconda Cloud is presented here:
- Make sure you've installed the
anaconda-client
andconda-build
packages usingconda
. This needs to be done once per development environment. - Commit your changes to the code locally.
- Bump up the version. This is a two-fold process:
- Update the meta.yaml file, in particular the
package.version
andsource.git_rev
properties. Commit your changes locally. - Tag the state of the repository using
git tag vX.Y
.
- Update the meta.yaml file, in particular the
- Push all changes to
CTDopts
repository. - Push the tag you just created (i.e., by invoking
git push origin --tags
). - Change your working directory to
dist/conda
and execute the following command (you will be asked for credentials to finalize the upload after the build):
$ conda build .
IMPORTANT: The conda
build process will not use your local repository, rather, it will use the revision and repository stated in your meta.yaml file under the source
property. This is why it is important to commit all your changes and to update the version before building/distributing.