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 test dependencies to dev-dependencies #84

Merged
merged 1 commit into from
May 24, 2024

Conversation

mgorny
Copy link

@mgorny mgorny commented May 24, 2024

Move dependencies that are used only when running tests / doing development to dev-dependencies. Otherwise, Poetry creates unconditional dependency on these packages (such as pytest-cov), and they would be incorrectly installed into the production environment, e.g. when issuing pip install git+https://github.com/kakolukia/pypugjs.

@kakulukia
Copy link
Owner

This PR should even go further and remove all but:

python = "^3.8"
six = "^1.15.0"
charset-normalizer = "^2.1.0"

And the right syntax is the [tool.poetry.group.dev.dependencies] notation.

[tool.poetry.dev.dependencies] can be removed and does not work any longer with a recent version of poetry.
And while dev-dependencies is still understood it should be [tool.poetry.group.dev.dependencies].

Please change that and i will merge it.

Move all but the obligatory dependencies to the `dev` group.  This
ensures that these packages (such as `pytest-cov`) are not incorrectly
installed into the production environment, e.g. when issuing
`pip install git+https://github.com/kakolukia/pypugjs`.
@mgorny
Copy link
Author

mgorny commented May 24, 2024

Updated. Thanks!

@kakulukia kakulukia merged commit c136109 into kakulukia:master May 24, 2024
14 checks passed
@kakulukia
Copy link
Owner

Release i out there and pip install --no-binary :all: 'pypugjs' is installing it.

@mgorny mgorny deleted the test-deps branch May 24, 2024 12:16
@mgorny
Copy link
Author

mgorny commented May 24, 2024

Thanks a lot! It looks good on my end too.

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