Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate releases #24

Open
tomsail opened this issue Mar 4, 2024 · 5 comments
Open

Automate releases #24

tomsail opened this issue Mar 4, 2024 · 5 comments

Comments

@tomsail
Copy link
Contributor

tomsail commented Mar 4, 2024

@pmav99 I was wondering if it was possible to avoid to:

  • modify version in setup.cfg, setup.py and pyproject.toml
  • build tar and wheel
  • push on pipy
  • push changes on git
    every time there is a PR in main.

Is is good practice ? and doable?

@pmav99
Copy link
Contributor

pmav99 commented Mar 4, 2024

yeah they are possible.

@pmav99 pmav99 changed the title automatic pipy upload on CI Automate releases Jun 14, 2024
@pmav99
Copy link
Contributor

pmav99 commented Jun 14, 2024

Related issues:

  • there are no git tags
  • there are no github "releases".

@tomsail
Copy link
Contributor Author

tomsail commented Jun 14, 2024

Thanks @pmav99

From what I understood, there are 3 options to build and upload with conda, in order of preference:

  1. git tag
  2. git releases
  3. git clone from the repo

To tag a version:

TAG=0.3.0 && git tag --force v"${TAG}" -m "Release ${TAG}"
git push --tags

poetry remains the best option for pure python codes.

To create wheel:

poetry build 

to publish to PIPY:

poetry config pypi-token.pypi TOKEN # for the first time 
poetry publish

@pmav99
Copy link
Contributor

pmav99 commented Jun 14, 2024

3 options to build and upload to pipy

Do you mean to build the conda package? If yes, then there is also the option of getting the source code directly from PyPI. For PyPI I don't see what is the point of git cloning.

Furthermore:

- git releases
+ github releases

poetry remains the best option for pure python codes.

I am not sure I would say "best". But for the most part it is working fine.

@tomsail
Copy link
Contributor Author

tomsail commented Jun 17, 2024

Do you mean to build the conda package?

yes my bad, I meant conda. corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants