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

Parsing setup.cfg files #23

Open
canassa opened this issue Aug 30, 2019 · 3 comments
Open

Parsing setup.cfg files #23

canassa opened this issue Aug 30, 2019 · 3 comments

Comments

@canassa
Copy link

canassa commented Aug 30, 2019

Hello,

Setuptools supports configuring libraries using only the setup.cfg nowadays., see:

https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files

It would be nice if pip-upgrader could parse that aswell. I think that it should limit itself for dependencies are pinned e.g.:

[options.extras_require]
tests =
    flake8==3.7.8
    isort==4.3.21
    mypy==0.711
    pytest==5.0.1
    pytest-cov==2.7.1
    black==19.3b0
    pre-commit==1.17.0
    bump2version==0.5.10

And not so much for the version ranges.

Let me know if this is a welcome addition, I could maybe contribute to the project myself 😁

Thanks!

@simion
Copy link
Owner

simion commented Sep 4, 2019

It would be a great addition. 💪

I'm also intending to remove package installation feature (ie: --skip-package-installation), and just update the requirtements/setup.cfg files with the new versions.
This would allow me to implement support for Pipenv (nowadays I'm using pipenv/Pipfile for managing packages and virtualenvs).

@ssbarnea
Copy link

Since I recently migrated all my reqs.txt files to setup.cfg pip-upgraded become useless as it fails to find any kind of requirements. It would be great to add support for setup.cfg as this is the future.

@jhermann
Copy link
Contributor

An identical use-case is tox and deps, so an implementation should have a set of patterns for sections+keys like [options.extras_require]*, [testenv*]deps, and so on. The filename should be passed like any requirements file, so that tox.ini could also be used.

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

4 participants