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

pyproject.toml #489

Open
cmacdonald opened this issue Sep 24, 2024 · 1 comment · May be fixed by #490
Open

pyproject.toml #489

cmacdonald opened this issue Sep 24, 2024 · 1 comment · May be fixed by #490
Labels
enhancement New feature or request

Comments

@cmacdonald
Copy link
Contributor

DEPRECATION: Legacy editable install of python-terrier==0.11.0 from file:///Users/craigm/git/pyterrier (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at pypa/pip#11457

@cmacdonald cmacdonald added the enhancement New feature or request label Sep 24, 2024
@seanmacavaney
Copy link
Collaborator

pyproject.toml introduces several nice features, including a way to declaratively link the version in the project specification with where it's defined in code (instead of programmatically as we do now).

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

An example going from setup.py to pyproject.toml here: seanmacavaney/pyterrier-alpha@099c6f5

@cmacdonald cmacdonald linked a pull request Sep 25, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants