Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
72 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
*.pyc | ||
*.pyo | ||
/.idea/ | ||
/.vscode/ | ||
/env/ | ||
/venv/ | ||
__pycache__/ | ||
.idea/ | ||
.vscode/ | ||
.DS_Store | ||
env/ | ||
venv/ | ||
*.pyc | ||
*.egg-info/ | ||
*.eggs/ | ||
build/ | ||
dist/ | ||
docs/_build/ | ||
.pytest_cache/ | ||
.tox/ | ||
/build/ | ||
/dist/ | ||
/.pytest_cache/ | ||
/.tox/ | ||
.coverage | ||
.coverage.* | ||
htmlcov/ | ||
.hypothesis/ | ||
/htmlcov/ | ||
/docs/_build/ |
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,3 +1,11 @@ | ||
Version 2.0.0 | ||
------------- | ||
|
||
Unreleased | ||
|
||
- Drop support for Python 2 and 3.5. | ||
|
||
|
||
Version 1.1.0 | ||
------------- | ||
|
||
|
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,9 +1,6 @@ | ||
include CHANGES.rst | ||
include LICENSE.rst | ||
include README.rst | ||
include tox.ini | ||
graft docs | ||
prune docs/_build | ||
graft tests | ||
prune tests/.hypothesis | ||
global-exclude *.py[co] | ||
global-exclude *.pyc |
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,47 +1,3 @@ | ||
import io | ||
import re | ||
|
||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
with io.open("README.rst", "rt", encoding="utf8") as f: | ||
readme = f.read() | ||
|
||
with io.open("src/itsdangerous/__init__.py", "rt", encoding="utf8") as f: | ||
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1) | ||
|
||
setup( | ||
name="itsdangerous", | ||
version=version, | ||
url="https://palletsprojects.com/p/itsdangerous/", | ||
project_urls={ | ||
"Documentation": "https://itsdangerous.palletsprojects.com/", | ||
"Code": "https://github.com/pallets/itsdangerous", | ||
"Issue tracker": "https://github.com/pallets/itsdangerous/issues", | ||
}, | ||
license="BSD-3-Clause", | ||
author="Armin Ronacher", | ||
author_email="armin.ronacher@active-4.com", | ||
maintainer="Pallets", | ||
maintainer_email="contact@palletsprojects.com", | ||
description="Various helpers to pass data to untrusted environments and back.", | ||
long_description=readme, | ||
packages=find_packages("src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
], | ||
) | ||
setup(name="itsdangerous") |
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,38 +1,21 @@ | ||
[tox] | ||
envlist = | ||
py{37,36,35,27,py3,py} | ||
py{38,37,36,py3} | ||
style | ||
docs | ||
coverage | ||
skip_missing_interpreters = true | ||
|
||
[testenv] | ||
deps = | ||
coverage | ||
pytest | ||
freezegun | ||
commands = coverage run -p -m pytest -Werror --tb=short --basetemp={envtmpdir} {posargs} | ||
commands = pytest --tb=short --basetemp={envtmpdir} {posargs} | ||
|
||
[testenv:style] | ||
deps = pre-commit | ||
skip_install = True | ||
skip_install = true | ||
commands = pre-commit run --all-files --show-diff-on-failure | ||
|
||
[testenv:docs-html] | ||
[testenv:docs] | ||
deps = -r docs/requirements.txt | ||
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html | ||
|
||
[testenv:coverage] | ||
deps = coverage | ||
skip_install = true | ||
commands = | ||
coverage combine | ||
coverage html | ||
coverage report | ||
|
||
[testenv:coverage-ci] | ||
deps = coverage | ||
skip_install = true | ||
commands = | ||
coverage combine | ||
coverage xml |