-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support file:
for requires statements
#161
Comments
Conflicts with current setup.cfg due to asottile/setup-cfg-fmt#161
Currently values under |
Sorry nevermind, setup-cfg-fmt/setup_cfg_fmt.py Lines 222 to 238 in acc732d
file: requirements-dev.txt in addition to other library dependencies? Or must it be on its own?
|
Hi, I did some tests to explore the correct behaviors, here are my findings. According to the documents of setuptools 68.2.2,
After some testing, I found the following formats are valid
The following format is invalid, which causes error when installing the package (with
The following format is also invalid. Although it doesn't trigger error when installing, the requirements will not be installed as expected.
|
Setuptools have added support
file:
for requires statements (as a beta feature)I don't know if it makes sense to add support for this already, I just noticed it when going to test this feature.
Example
A simple
setup.cfg
(which works fine):Then run
$ setup-cfg-fmt setup.cfgt
Then try to install the package (with
pip install -e .[dev]
), and setuptools will raise an error because can't parse this. Also, if we have a space between:
and the filename, setup-cfg-fmt will exclude the filename.The text was updated successfully, but these errors were encountered: