Skip to content

Replace setup.py for pyproject.toml#400

Open
arjanz wants to merge 2 commits into
masterfrom
az-pyproject-toml
Open

Replace setup.py for pyproject.toml#400
arjanz wants to merge 2 commits into
masterfrom
az-pyproject-toml

Conversation

@arjanz

@arjanz arjanz commented Jul 16, 2024

Copy link
Copy Markdown
Contributor

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 thread substrateinterface/constants.py Outdated
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
Copy Markdown
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