Skip to content

Commit 1c298eb

Browse files
authored
fix broken IO with httpx>=0.24 (#1324)
* fix broken IO with httpx>=0.24 * add RNs
1 parent f3e8414 commit 1c298eb

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

release-notes/next-release.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Fix an issue where [`runfrog`](https://github.com/matthiaskoenig/fbc_curation/is
1111
not work via github actions or local installation by removing the use of obsolete numpy
1212
aliases for `float` and `bool`.
1313

14+
Fix a bug where installing httpx>=0.24 would break cobrapy IO.
15+
1416
## Other
1517

1618
## Deprecated features

setup.cfg

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parse = (?P<major>\d+)
66
\.(?P<minor>\d+)
77
\.(?P<patch>\d+)
88
(?P<release>[a]*)(?P<num>\d*)
9-
serialize =
9+
serialize =
1010
{major}.{minor}.{patch}{release}{num}
1111
{major}.{minor}.{patch}
1212
tag_name = {new_version}
@@ -15,15 +15,15 @@ tag_name = {new_version}
1515
name = cobra
1616
url = https://opencobra.github.io/cobrapy
1717
download_url = https://pypi.org/project/cobra
18-
project_urls =
18+
project_urls =
1919
Source Code = https://github.com/opencobra/cobrapy
2020
Documentation = https://cobrapy.readthedocs.io
2121
Bug Tracker = https://github.com/opencobra/cobrapy/issues
2222
author = The cobrapy core development team.
2323
author_email = [email protected]
2424
maintainer = Moritz E. Beber
2525
maintainer_email = [email protected]
26-
classifiers =
26+
classifiers =
2727
Development Status :: 5 - Production/Stable
2828
Intended Audience :: Science/Research
2929
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
@@ -41,7 +41,7 @@ license = LGPL-2.0-or-later OR GPL-2.0-or-later
4141
description = COBRApy is a package for constraint-based modeling of metabolic networks.
4242
long_description = file: README.rst, INSTALL.rst
4343
long_description_content_type = text/x-rst
44-
keywords =
44+
keywords =
4545
metabolism
4646
biology
4747
constraint-based
@@ -53,12 +53,12 @@ keywords =
5353

5454
[options]
5555
zip_safe = True
56-
install_requires =
56+
install_requires =
5757
appdirs ~=1.4
5858
depinfo ~=1.7
5959
diskcache ~=5.0
6060
future
61-
httpx ~=0.14
61+
httpx ~=0.24
6262
importlib_resources
6363
numpy >=1.13,<1.24
6464
optlang ~=1.5
@@ -68,24 +68,24 @@ install_requires =
6868
rich >=8.0
6969
ruamel.yaml ~=0.16
7070
swiglpk
71-
tests_require =
71+
tests_require =
7272
tox
7373
packages = find:
74-
package_dir =
74+
package_dir =
7575
= src
7676

7777
[options.packages.find]
7878
where = src
7979

8080
[options.package_data]
81-
cobra =
81+
cobra =
8282
data/*
8383
io/*.json
8484

8585
[options.extras_require]
86-
array =
86+
array =
8787
scipy
88-
development =
88+
development =
8989
black
9090
bumpversion
9191
isort
@@ -97,7 +97,7 @@ universal = 1
9797
[bumpversion:part:release]
9898
optional_value = placeholder
9999
first_value = placeholder
100-
values =
100+
values =
101101
placeholder
102102
a
103103

src/cobra/io/web/cobrapy_repository.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
Passed to the parent constructor in order to enable multiple inheritance.
3434
3535
"""
36-
super().__init__(url="file:////", **kwargs)
36+
super().__init__(url="file://", **kwargs)
3737

3838
def get_sbml(self, model_id: str) -> bytes:
3939
"""

0 commit comments

Comments
 (0)