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

Migrate to setup.cfg and pyproject.toml #57

Open
tmorrell opened this issue Dec 20, 2024 · 0 comments
Open

Migrate to setup.cfg and pyproject.toml #57

tmorrell opened this issue Dec 20, 2024 · 0 comments
Assignees

Comments

@tmorrell
Copy link
Member

tmorrell commented Dec 20, 2024

On pip 24.2+ pip install -e . returns

DEPRECATION: Legacy editable install of caltechdata_api==1.9.1 from file:///Users/tmorrell/Documents/caltechdata_api (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 https://github.com/pypa/pip/issues/11457

We need to move to a more modern pyproject.toml and setup.cfg setup. One example of this transition is https://github.com/inveniosoftware/babel-edtf/pull/2/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711

It would be nice to still pull metadata from the codemeta.json file, but I don't have an example of doing this.

If there's not a native python installation way of replicating https://github.com/caltechlibrary/caltechdata_api/blob/7fd698247c6767d88b6e22efa337ce90c9449855/setup.py#L29C1-L58C20, you should be able to add this code snippet to run in

which would update setup.cfg any time the codemeta file changes.

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