-
Notifications
You must be signed in to change notification settings - Fork 44
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
Names containing underscores in extra_options in setup.cfg are broken #618
Comments
Thanks for reporting, related to setuptools issue reported here: pypa/setuptools#2522 |
@omsai could you try fix_extra branch, it should resolve your problem. |
@stephanmg It only fixes test-petab but not web server-dash or web server-flask and I see that the latter two are unchanged in the diff main...fix_extra --- /tmp/abc/pyproject.toml.in.orig 2023-11-14 11:01:46
+++ /tmp/abc/pyproject.toml.in 2023-11-14 11:05:38
@@ -5,7 +5,7 @@
[project]
name = "cal"
version = "0.1"
-dependencies = ["pyabc[@EXTRA@] @git+https://github.com/ICB-DCM/pyABC#egg=v0.12.14"]
+dependencies = ["pyabc[@EXTRA@] @git+https://github.com/ICB-DCM/pyABC@fix_extra"]
[tool.hatch.metadata]
allow-direct-references = true $ extras="test_petab webserver_dash webserver_flask"
$ for extra in $extras
> do sed "s/@EXTRA@/$extra/" < pyproject.toml.in > pyproject.toml
> hatch project metadata
> hatch run test
{
"name": "cal",
"version": "0.1",
"readme": {
"content-type": "text/markdown",
"text": ""
},
"dependencies": [
"pyabc[test-petab]@ git+https://github.com/ICB-DCM/pyABC@fix_extra"
]
}
{
"name": "cal",
"version": "0.1",
"readme": {
"content-type": "text/markdown",
"text": ""
},
"dependencies": [
"pyabc[webserver-dash]@ git+https://github.com/ICB-DCM/pyABC@fix_extra"
]
}
WARNING: pyabc 0.12.14 does not provide the extra 'webserver-dash'
{
"name": "cal",
"version": "0.1",
"readme": {
"content-type": "text/markdown",
"text": ""
},
"dependencies": [
"pyabc[webserver-flask]@ git+https://github.com/ICB-DCM/pyABC@fix_extra"
]
}
WARNING: pyabc 0.12.14 does not provide the extra 'webserver-flask' |
True @omsai I must have forgotten to change dependencies for this. Could you give the branch |
@stephanmg Yes, it works now in that branch; thank you! |
Alright @omsai - it will remain in develop branch until next bug fix release. |
Bug description
pyabc provides several optional extras, however those that contain underscores in their name cannot be installed.
The extras as of 0.12.14 are:
Expected behavior
The name of the optional extra should be recognized and install correctly.
To reproduce
Output from trying to install each of them:
Environment
The text was updated successfully, but these errors were encountered: