-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from Pylons/py3-only
Python 3 only -- fixes deprecation warnings
- Loading branch information
Showing
65 changed files
with
376 additions
and
360 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[run] | ||
parallel = true | ||
source = | ||
venusian | ||
|
||
[paths] | ||
source = | ||
src/venusian | ||
*/src/venusian | ||
*/site-packages/venusian | ||
|
||
[report] | ||
show_missing = true | ||
precision = 2 |
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
.*.swp | ||
.cache/ | ||
.coverage | ||
.coverage.* | ||
.tox/ | ||
__pycache__/ | ||
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
graft src/venusian | ||
graft tests | ||
graft docs | ||
prune docs/_build | ||
prune docs/_themes | ||
|
||
include README.rst | ||
include CHANGES.rst | ||
include LICENSE.txt | ||
include CONTRIBUTING.rst | ||
include CONTRIBUTORS.txt | ||
include COPYRIGHT.txt | ||
|
||
include pyproject.toml setup.cfg | ||
include .coveragerc | ||
include tox.ini .travis.yml rtd.txt | ||
|
||
recursive-exclude * __pycache__ *.py[cod] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[build-system] | ||
requires = ["setuptools >= 40.9.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
py36 = false | ||
exclude = ''' | ||
/( | ||
\.git | ||
| .tox | ||
)/ | ||
''' |
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,13 +1,49 @@ | ||
[easy_install] | ||
zip_ok = false | ||
[metadata] | ||
name = venusian | ||
version = 2.0.0 | ||
description = A library for deferring decorator actions | ||
long_description = file: README.rst, CHANGES.rst | ||
long_description_content_type = text/x-rst | ||
keywords = web wsgi zope | ||
license = BSD-derived (http://www.repoze.org/LICENSE.txt) | ||
classifiers = | ||
Development Status :: 6 - Mature | ||
Intended Audience :: Developers | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
url = https://pylonsproject.org/ | ||
author = Chris McDonough, Agendaless Consulting | ||
author_email = pylons-devel@googlegroups.com | ||
python_requires = >=3.5 | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
[options] | ||
package_dir= | ||
=src | ||
packages=find: | ||
|
||
[options.packages.find] | ||
where=src | ||
|
||
[tools:pytest] | ||
ignore=venusian/tests/fixtures/ | ||
testpaths=venusian/tests/ | ||
[options.extras_require] | ||
testing = | ||
pytest | ||
pytest-cov | ||
coverage | ||
docs = | ||
Sphinx | ||
repoze.sphinx.autointerface | ||
|
||
[bdist_wheel] | ||
universal=1 | ||
|
||
[aliases] | ||
dev = develop easy_install venusian[testing] | ||
docs = develop easy_install venusian[docs] | ||
[tool:pytest] | ||
ignore=tests/fixtures/ | ||
python_files = test_*.py | ||
testpaths = | ||
tests | ||
addopts = -W always --cov --cov-report=term-missing |
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,76 +1,7 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2010 Agendaless Consulting and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the BSD-like license at | ||
# http://www.repoze.org/LICENSE.txt. A copy of the license should accompany | ||
# this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL | ||
# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, | ||
# THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND | ||
# FITNESS FOR A PARTICULAR PURPOSE | ||
# | ||
############################################################################## | ||
|
||
import os | ||
""" | ||
Necessary for pip install -e, and python setup.py check | ||
""" | ||
|
||
from setuptools import setup | ||
from setuptools import find_packages | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
try: | ||
with open(os.path.join(here, 'README.rst')) as f: | ||
README = f.read() | ||
with open(os.path.join(here, 'CHANGES.rst')) as f: | ||
CHANGES = f.read() | ||
except: | ||
README = '' | ||
CHANGES = '' | ||
|
||
testing_extras = [ | ||
'pytest', | ||
'coverage', | ||
'pytest-cov', | ||
] | ||
|
||
docs_extras = [ | ||
'Sphinx', | ||
'repoze.sphinx.autointerface' | ||
] | ||
|
||
setup(name='venusian', | ||
version='1.2.0', | ||
description='A library for deferring decorator actions', | ||
long_description=README + '\n\n' + CHANGES, | ||
classifiers=[ | ||
"Development Status :: 6 - Mature", | ||
"Intended Audience :: Developers", | ||
"Programming Language :: Python", | ||
"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", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
], | ||
keywords='web wsgi zope', | ||
author="Chris McDonough, Agendaless Consulting", | ||
author_email="pylons-devel@googlegroups.com", | ||
url="https://pylonsproject.org", | ||
license="BSD-derived (http://www.repoze.org/LICENSE.txt)", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
zip_safe=False, | ||
extras_require={ | ||
'testing': testing_extras, | ||
'docs': docs_extras, | ||
}, | ||
tests_require=[], | ||
install_requires=[], | ||
test_suite='venusian', | ||
entry_points="""\ | ||
""" | ||
) | ||
setup() |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../fixtures/importerror_package/__init__.py → tests/fixtures/attrerror/__init__.py
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...an/tests/fixtures/importerror/__init__.py → tests/fixtures/attrerror_package/__init__.py
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
venusian/tests/fixtures/category.py → tests/fixtures/category.py
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
2 changes: 1 addition & 1 deletion
2
venusian/tests/fixtures/class_and_method.py → tests/fixtures/class_and_method.py
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,4 +1,4 @@ | ||
from venusian.tests.fixtures import decorator | ||
from tests.fixtures import decorator | ||
|
||
|
||
@decorator(class_=True) | ||
|
2 changes: 1 addition & 1 deletion
2
venusian/tests/fixtures/classdecorator.py → tests/fixtures/classdecorator.py
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from tests.fixtures import decorator | ||
from tests.fixtures.import_and_scan.two import twofunction # should not be scanned | ||
|
||
@decorator(function=True) | ||
def onefunction(request): # pragma: no cover | ||
twofunction(request) | ||
return request |
2 changes: 1 addition & 1 deletion
2
...ian/tests/fixtures/import_and_scan/two.py → tests/fixtures/import_and_scan/two.py
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
Oops, something went wrong.