-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to work with modern Python (3.11+) (#145)
* updates to work with modern Python (3.11+) updated version to 1.8.6 updated tox list updated version of pyenv-tox updated pyenvs updated to 2.0.2 updated to 2.0.3 - removed tox-pyenv updated to 2.0.3 - removed tox-pyenv remove py310 remove py311 updated pytest updated coverage and flake8 versions updated flake8 version skipping coverage moved off of deprecated try only py 3.12 updated testing dependencies added 3.8 and 3.9 back in removed python 3.8, and updated CONTRIBUTING with better test function * updated python_requires to indicate >=3.9 * changing version to 2.0.0a, per suggestion
- Loading branch information
1 parent
4f94616
commit 7b81f48
Showing
5 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ def find_version(*paths): | |
author='data.world', | ||
author_email='[email protected]', | ||
license='Apache 2.0', | ||
python_requires='>=3.7', | ||
python_requires='>=3.9', | ||
packages=find_packages(), | ||
keywords='data.world dataset', | ||
classifiers=[ | ||
|
@@ -55,10 +55,10 @@ def find_version(*paths): | |
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Database :: Database Engines/Servers', | ||
'Topic :: Scientific/Engineering :: Information Analysis', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
|
@@ -71,26 +71,14 @@ def find_version(*paths): | |
'tableschema>=1.5.2,<2.0a', | ||
'python-dateutil>=2.6.0,<3.0a', | ||
'requests>=2.22.0,<3.0a', | ||
'setuptools>=69.2.0,<70.0a', | ||
'six>=1.5.0,<2.0a', | ||
'tabulator>=1.22.0', | ||
'urllib3>=1.15,<2.0a', | ||
], | ||
setup_requires=[ | ||
'pytest-runner>=2.11,<3.0a', | ||
], | ||
tests_require=[ | ||
'coverage>=4.4.2,<=4.5.3', | ||
'doublex>=1.8.4,<2.0a', | ||
'flake8>=2.6.0,<=3.7.7', | ||
'numpy<=1.21.5', | ||
'pandas<=1.3.5', | ||
'pyhamcrest>=1.9.0,<2.0a', | ||
'pytest>=6.2.5,<7', | ||
'responses>=0.17.0,<1a', | ||
], | ||
extras_require={ | ||
'pandas': [ | ||
'numpy<=1.21.5', | ||
'numpy>=1.26.4,<=2.0a', | ||
'pandas<=1.3.5', | ||
], | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
[tox] | ||
envlist=py37,py38,py39 | ||
envlist=py39,py310,py311,py312 | ||
[testenv] | ||
deps= | ||
coverage<=4.5.3 | ||
flake8<=3.7.7 | ||
coverage>=7.4.4,<8.0a | ||
flake8>=2.6.0,<=3.7.7 | ||
doublex>=1.9.6.1,<2.0a | ||
numpy>=1.26.4,<=2.0a | ||
pandas>=2.2.1,<3.0a | ||
pyhamcrest>=2.1.0,<3.0a | ||
pytest>=8.1.1,<9.0a | ||
responses>=0.25.0,<1.0a | ||
|
||
commands= | ||
flake8 . \ | ||
--exclude=datadotworld/client/_swagger/,./.tox/*,./.eggs/*,./build/*,./docs/*,testing/* | ||
coverage run setup.py test {posargs} | ||
coverage run -m pytest | ||
coverage report --omit=./.tox/* --fail-under=90 |