Skip to content

Commit

Permalink
avoid xarray+importlib_metadata bug on 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hassec committed Mar 3, 2024
1 parent 8374d81 commit 87b9aa0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
31 changes: 16 additions & 15 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
#
# usage: pip install -r requirements.txt

numpy>=1.16.1 # required
uncertainties # required
pint # required
netCDF4 # required
boto3 # required
matplotlib # required
scipy # required
h5py # required
pymongo # required
dnspython # required
xmltodict # required
xarray # required
setuptools>=41.2 # required
tqdm # required
Cython # required
numpy>=1.16.1 # required
uncertainties # required
pint # required
netCDF4 # required
boto3 # required
matplotlib # required
scipy # required
h5py # required
pymongo # required
dnspython # required
xmltodict # required
xarray # required
setuptools>=41.2 # required
tqdm # required
Cython # required
importlib_metadata <5;python_version=='3.7' # required

# omfit_classes # machine
# pexpect # machine
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
'setuptools>=41.2',
'tqdm',
'Cython',
"importlib_metadata <5;python_version=='3.7'"
]

extras_require = {
Expand All @@ -44,7 +45,7 @@
f.write('# Do not edit this file by hand, operate on setup.py instead\n#\n')
f.write('# usage: pip install -r requirements.txt\n\n')
for item in install_requires:
f.write(item.ljust(25) + '# required\n')
f.write(item.ljust(50) + ' # required\n')
for requirement in extras_require:
f.write('\n')
for item in extras_require[requirement]:
Expand Down

0 comments on commit 87b9aa0

Please sign in to comment.