Skip to content

Commit

Permalink
fix broken IO with httpx>=0.24 (#1324)
Browse files Browse the repository at this point in the history
* fix broken IO with httpx>=0.24

* add RNs
  • Loading branch information
cdiener committed Apr 12, 2023
1 parent f3e8414 commit 1c298eb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions release-notes/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Fix an issue where [`runfrog`](https://github.com/matthiaskoenig/fbc_curation/is
not work via github actions or local installation by removing the use of obsolete numpy
aliases for `float` and `bool`.

Fix a bug where installing httpx>=0.24 would break cobrapy IO.

## Other

## Deprecated features
Expand Down
24 changes: 12 additions & 12 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parse = (?P<major>\d+)
\.(?P<minor>\d+)
\.(?P<patch>\d+)
(?P<release>[a]*)(?P<num>\d*)
serialize =
serialize =
{major}.{minor}.{patch}{release}{num}
{major}.{minor}.{patch}
tag_name = {new_version}
Expand All @@ -15,15 +15,15 @@ tag_name = {new_version}
name = cobra
url = https://opencobra.github.io/cobrapy
download_url = https://pypi.org/project/cobra
project_urls =
project_urls =
Source Code = https://github.com/opencobra/cobrapy
Documentation = https://cobrapy.readthedocs.io
Bug Tracker = https://github.com/opencobra/cobrapy/issues
author = The cobrapy core development team.
author_email = cobra-pie@googlegroups.com
maintainer = Moritz E. Beber
maintainer_email = moritz.beber@gmail.com
classifiers =
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Expand All @@ -41,7 +41,7 @@ license = LGPL-2.0-or-later OR GPL-2.0-or-later
description = COBRApy is a package for constraint-based modeling of metabolic networks.
long_description = file: README.rst, INSTALL.rst
long_description_content_type = text/x-rst
keywords =
keywords =
metabolism
biology
constraint-based
Expand All @@ -53,12 +53,12 @@ keywords =

[options]
zip_safe = True
install_requires =
install_requires =
appdirs ~=1.4
depinfo ~=1.7
diskcache ~=5.0
future
httpx ~=0.14
httpx ~=0.24
importlib_resources
numpy >=1.13,<1.24
optlang ~=1.5
Expand All @@ -68,24 +68,24 @@ install_requires =
rich >=8.0
ruamel.yaml ~=0.16
swiglpk
tests_require =
tests_require =
tox
packages = find:
package_dir =
package_dir =
= src

[options.packages.find]
where = src

[options.package_data]
cobra =
cobra =
data/*
io/*.json

[options.extras_require]
array =
array =
scipy
development =
development =
black
bumpversion
isort
Expand All @@ -97,7 +97,7 @@ universal = 1
[bumpversion:part:release]
optional_value = placeholder
first_value = placeholder
values =
values =
placeholder
a

Expand Down
2 changes: 1 addition & 1 deletion src/cobra/io/web/cobrapy_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
Passed to the parent constructor in order to enable multiple inheritance.
"""
super().__init__(url="file:////", **kwargs)
super().__init__(url="file://", **kwargs)

def get_sbml(self, model_id: str) -> bytes:
"""
Expand Down

0 comments on commit 1c298eb

Please sign in to comment.