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

Avoid duplicating dependencies in requirements.in AND pyproject.toml; Pyproject.toml is the future #145

Closed
lord-haffi opened this issue Jan 15, 2024 · 6 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request

Comments

@lord-haffi
Copy link
Contributor

lord-haffi commented Jan 15, 2024

It is possible for pip-tools to compile the requirements.txt out of the pyproject.toml if the packaging tool is supported by the tool. Lucky us, that hatch is indeed supported by pip-tools.
Therefore, we don't need the "duplicate" requirements.in file anymore! Have fun, doing it in every repository ^^

@hf-kklein a great starter quest if you ask me :P

@lord-haffi lord-haffi added enhancement New feature or request dependencies Pull requests that update a dependency file labels Jan 15, 2024
@hf-kklein
Copy link
Contributor

good starter if pip-tools was working with python3.12 yet: jazzband/pip-tools#2021

@hf-kklein hf-kklein changed the title Better requirements Avoid duplicating dependencies in requirements.in AND pyproject.toml; Pyproject.toml is the future Jan 15, 2024
@lord-haffi
Copy link
Contributor Author

good starter if pip-tools was working with python3.12 yet: jazzband/pip-tools#2021

😧 Well, I'm still using Python 3.11

@hf-kklein
Copy link
Contributor

just because our newbies came with 3.12 installed and i want to save them the hazzle of re-configuring their toxbase to 3.11 when 3.12 is the better option in the long run.

@hf-kklein
Copy link
Contributor

hf-kklein commented Jan 24, 2024

@lord-haffi here's a draft: #155

can we do something similar with the dev_requirements, too? or is there no need, because we have no duplication there as we had in requirements.in vs. pyproject.toml?

@lord-haffi
Copy link
Contributor Author

Don't know, what you want to do. I just wanted to get rid of the duplication. The dev_requirements are not listed in the pyproject.toml

@hf-kklein
Copy link
Contributor

the we're done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants