Skip to content

Commit

Permalink
Fix requirements (jonasrauber#51)
Browse files Browse the repository at this point in the history
* removed cast no longer needed (thanks to MyPy 0.920)

* fixed version numbers of requirements to stablize tests

* upgraded tensorflow to 2.7

* fixed numpy version for dev/tests

* no longer test with python 3.6
  • Loading branch information
jonasrauber authored Dec 16, 2021
1 parent f4c93af commit 352220e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.6'
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
python-version: [3.7]

steps:
- uses: actions/checkout@v1
Expand Down
2 changes: 1 addition & 1 deletion eagerpy/tensor/jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def unflatten(aux_data: Any, children: Sequence) -> JAXTensor:

jax.tree_util.register_pytree_node(cls, flatten, unflatten)
cls._registered = True
return cast(JAXTensor, super().__new__(cls))
return super().__new__(cls)

def __init__(self, raw: "jnp.ndarray"):
global jax
Expand Down
19 changes: 10 additions & 9 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
flake8>=3.7.9
black>=19.10b0
pytest>=5.3.2
pytest-cov>=2.8.1
coverage>=5.0.3
codecov>=2.0.15
coveralls>=1.10.0
mypy>=0.910
pre-commit>=1.21.0
flake8==3.8.3
black==21.12b0
pytest==5.4.3
pytest-cov==2.10.0
coverage==5.1
codecov==2.1.12
coveralls==3.3.1
mypy==0.920
pre-commit==2.5.1
pydoc-markdown==2.0.5
numpy==1.19.5
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
torch==1.9.0
jaxlib==0.1.69
jax==0.2.17
tensorflow==2.6.1
tensorflow==2.7.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="",
Expand Down

0 comments on commit 352220e

Please sign in to comment.