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

Merged
merged 17 commits into from
May 27, 2024
Merged

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
eginhard added 5 commits May 8, 2024 12:13
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
eginhard added 2 commits May 8, 2024 12:40
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
@eginhard eginhard requested a review from Colombine-cyber May 16, 2024 16:04
@eginhard eginhard merged commit df088e9 into dev May 27, 2024
@eginhard eginhard deleted the toml branch May 27, 2024 07:59
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