aryarm / stepik-cli

An (unofficial) Stepik command line interface for students
1 stars 0 forks source link

automate the build process and publish on conda #2

Open aryarm opened 3 years ago

aryarm commented 3 years ago

The build process is as follows:

  1. Change the version in setup.py and meta.yaml
  2. Push your changes
  3. Publish a new release
  4. Pull the release tag
  5. Build the pypi package
    python3 setup.py sdist bdist_wheel
  6. Upload it to PyPI using twine
    python3 -m twine upload dist/*
  7. Clean up
    rm -r build dist stepik_cli.egg-info/

It would be great if we could do all of this in a Github action whenever a new release is tagged.

And then we could add the following steps to publish the package on anaconda.org:

  1. Create a meta.yaml file
    conda skeleton pypi --noarch-python stepik-cli
  2. Edit the meta.yaml file to include a link to the documentation and also your Github username
  3. Build the package
    conda build -c conda-forge stepik-cli
  4. Run anaconda upload
aryarm commented 3 years ago

Actually, while I was able to publish this on conda, I wasn't able to automate the build process. So I'm reopening this issue.