-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' for release 0.1.1
- Loading branch information
Showing
8 changed files
with
150 additions
and
88 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -53,10 +53,13 @@ def run_tests(self): | |
INSTALL_REQUIREMENTS = [ | ||
# A string or list of strings specifying what other distributions need to | ||
# be installed when this one is. | ||
'requests' | ||
] | ||
|
||
SETUP_REQUIREMENTS = [ | ||
] | ||
|
||
TESTS_REQUIREMENTS = [ | ||
'tox' | ||
] | ||
|
||
CLASSIFIERS = [ | ||
|
@@ -83,7 +86,7 @@ def run_tests(self): | |
author_email='[email protected]', | ||
name='pyDataverse', | ||
version=find_version('src', 'pyDataverse', '__init__.py'), | ||
description='A Dataverse API wrapper', | ||
description='A wrapper for the Dataverse API', | ||
long_description=read_file('README.md'), | ||
long_description_content_type="text/markdown", | ||
license='MIT', | ||
|
@@ -94,11 +97,11 @@ def run_tests(self): | |
install_requires=INSTALL_REQUIREMENTS, | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
setup_requires=['pytest-runner'], | ||
setup_requires=SETUP_REQUIREMENTS, | ||
tests_require=TESTS_REQUIREMENTS, | ||
cmdclass={'test': Tox}, | ||
include_package_data=True, | ||
keywords=['pydataverse', 'dataverse', 'api'], | ||
keywords=['pyDataverse', 'dataverse', 'api'], | ||
zip_safe=False, | ||
project_urls={ | ||
'Documentation': 'https://pydataverse.readthedocs.io/', | ||
|
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
codecov | ||
coverage | ||
coveralls | ||
check-manifest | ||
future | ||
pycodestyle | ||
pytest>=3.0.0 | ||
pytest-cov | ||
pytest-env>=0.6.2 | ||
pytest-runner | ||
pytest-xdist | ||
setuptools | ||
tox==3.11.0 | ||
wheel | ||
coverage==4.5.3 | ||
atomicwrites==1.3.0 | ||
attrs==19.1.0 | ||
certifi==2019.3.9 | ||
chardet==3.0.4 | ||
idna==2.8 | ||
importlib-metadata==0.15 | ||
more-itertools==5.0.0 | ||
pluggy==0.12.0 | ||
py==1.8.0 | ||
pytest==4.5.0 | ||
pytest-cov==2.7.1 | ||
six==1.12.0 | ||
urllib3==1.25.3 | ||
wcwidth==0.1.7 | ||
zipp==0.5.1 |
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,58 +1,102 @@ | ||
[tox] | ||
envlist = py36,coverage,coveralls,packaging,docs,flake8 | ||
envlist = py36,coverage,coveralls,docs,flake8,packaging,dist | ||
skip_missing_interpreters = True | ||
ignore_basepython_conflict = True | ||
|
||
[testenv] | ||
description = default settings for unspecified tests | ||
usedevelop = True | ||
usedevelop = False | ||
skip_install = False | ||
passenv = * | ||
basepython = python3.6 | ||
deps = -r{toxinidir}/tools/tests-requirements.txt | ||
|
||
[testenv:py27] | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --cov=src/pyDataverse --basetemp={envtmpdir} | ||
|
||
[testenv:py34] | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --cov=src/pyDataverse --basetemp={envtmpdir} | ||
|
||
[testenv:py35] | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --cov=src/pyDataverse --basetemp={envtmpdir} | ||
|
||
[testenv:py36] | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --cov=src/pyDataverse --basetemp={envtmpdir} | ||
|
||
[testenv:py37] | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --cov=src/pyDataverse --basetemp={envtmpdir} | ||
|
||
[testenv:coverage] | ||
description = create report for coverage | ||
basepython = python3.6 | ||
deps = -r{toxinidir}/tools/tests-requirements.txt | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --cov=src/pyDataverse --cov-report=term-missing --cov-report=xml --cov-report=html | ||
|
||
[testenv:coveralls] | ||
description = create reports for coveralls | ||
basepython = python3.6 | ||
deps = -r{toxinidir}/tools/tests-requirements.txt | ||
deps = | ||
-r{toxinidir}/tools/tests-requirements.txt | ||
commands = | ||
pytest tests/ --doctest-modules -v --cov=src/pyDataverse | ||
|
||
[testenv:packaging] | ||
description = check packaging with twine | ||
usedevelop = True | ||
basepython = python3.6 | ||
skip_install = True | ||
deps = -r{toxinidir}/tools/packaging-requirements.txt | ||
commands = | ||
twine check -h | ||
|
||
[flake8] | ||
exclude = | ||
src/pyDataverse/docs/source/conf.py | ||
src/pyDataverse/docs/source/conf.py | ||
.tox | ||
.egg | ||
|
||
[testenv:flake8] | ||
description = flake8 for style guide testing | ||
usedevelop = True | ||
basepython = python3.6 | ||
deps = -r{toxinidir}/tools/lint-requirements.txt | ||
deps = | ||
-r{toxinidir}/tools/lint-requirements.txt | ||
commands = | ||
flake8 src/pyDataverse/ | ||
flake8 tests/ | ||
isort --check-only --diff src/pyDataverse | ||
skip_install = true | ||
|
||
[testenv:docs] | ||
description = invoke sphinx-build to build the HTML docs | ||
basepython = python3.6 | ||
deps = -r{toxinidir}/tools/docs-requirements.txt | ||
deps = | ||
-r{toxinidir}/tools/docs-requirements.txt | ||
commands = | ||
sphinx-build -d src/pyDataverse/docs/build/docs_doctree src/pyDataverse/docs/source docs/build/html --color -b html {posargs} | ||
|
||
[testenv:packaging] | ||
description = check packaging with twine | ||
skip_install = True | ||
recreate = True | ||
deps = | ||
-r{toxinidir}/tools/packaging-requirements.txt | ||
commands = | ||
python setup.py sdist bdist_wheel | ||
twine check dist/* | ||
|
||
[testenv:dist] | ||
description = install from dist | ||
recreate = True | ||
commands = | ||
pip freeze | ||
python -c "import pyDataverse; print(pyDataverse.__name__); print(pyDataverse.__version__)" | ||
|
||
[testenv:pypitest] | ||
description = install from test pypi | ||
skip_install = True | ||
recreate = True | ||
commands = | ||
pip install --index-url https://test.pypi.org/simple/ pyDataverse | ||
pip freeze |