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

Move from setup.py to pyproject.toml, simplify requirements #19

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from

Conversation

eginhard
Copy link
Member

@eginhard eginhard commented May 7, 2024

Best reviewed commit by commit because it includes one automatic style change that touched many files.

Moving (as far as possible) from setup.py to pyproject.toml makes the information easier to understand and helped to remove some obsolete code. It also made it easier to consolidate the dependencies and move more of them into optional extras (mainly language-specific libraries for Bangla/Chinese/Korean G2P) so that the default install becomes leaner.

@eginhard eginhard force-pushed the toml branch 9 times, most recently from e91da21 to ee5b402 Compare May 8, 2024 07:55
Automatic changes from: pre-commit run --all-files
Having this file is still useful to allow installing *only* dev requirements
(e.g. in CI) with:
  pip install -r requirements.dev.txt

Generate that file automatically from the pyproject.toml based on:
https://github.com/numpy/numpydoc/blob/e7c6baf00f5f73a4a8f8318d0cb4e04949c9a5d1/tools/generate_requirements.py
Otherwise a form of this issue occurs due to older setuptools not supporting
pyproject.toml:
pypa/setuptools#3269

Might be resolved on Ubuntu 24.04 images.
@eginhard eginhard force-pushed the toml branch 3 times, most recently from 7096ad8 to bbb9768 Compare May 8, 2024 14:00
@eginhard eginhard marked this pull request as ready for review May 16, 2024 16:03
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.

None yet

1 participant