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

setup.py -> pyproject.toml #68

Merged
merged 3 commits into from
Jun 26, 2024
Merged

setup.py -> pyproject.toml #68

merged 3 commits into from
Jun 26, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Jun 26, 2024

No description provided.

@dweindl dweindl requested a review from dilpath June 26, 2024 19:55
Copy link
Member

@dilpath dilpath left a comment

Choose a reason for hiding this comment

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

👍

@@ -18,41 +18,9 @@ def read(fname):
exec(read(path.join(here, 'petabtests', 'version.py')))

setup(
name='petabtests',
version=__version__, # noqa: F821
Copy link
Member

@dilpath dilpath Jun 26, 2024

Choose a reason for hiding this comment

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

Can move this too I think

[tool.setuptools.dynamic]
version = {attr = "petabtests.__version__"}

Copy link
Member Author

@dweindl dweindl Jun 26, 2024

Choose a reason for hiding this comment

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

Yes, it's possible, but this will require importing the package, which will require all module-level import dependencies to be installed in the temporary environment for building the sdist. Not sure it's worth it.
And it will require listing all those dependencies twice - for build + installation.

@dweindl dweindl merged commit 42e7d4a into main Jun 26, 2024
3 checks passed
@dweindl dweindl deleted the pyproject2 branch June 26, 2024 20:08
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