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

Replace setup.py for pyproject.toml #400

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

arjanz
Copy link
Member

@arjanz arjanz commented Jul 16, 2024

While setup.py is not fully deprecated yet, the community is moving towards pyproject.toml for future-proofing and better integration with new tools and standards.

See #399

Comment on lines 44 to 49
if os.getenv('GITHUB_REF'):
if not os.getenv('GITHUB_REF').startswith('refs/tags/v'):
raise ValueError('Incorrect tag format {}'.format(os.getenv('GITHUB_REF')))
__version__ = os.getenv('GITHUB_REF').replace('refs/tags/v', '')
else:
__version__ = '0.0.0-dev1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if it is useful for you but we use https://pypi.org/project/setuptools-scm/ with a fallback version that we bump with a script

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

Successfully merging this pull request may close these issues.

2 participants