Skip to content

Commit 91fbc1a

Browse files
Update setup.py/setup.cfg/pyproject.toml
1 parent 6d5fcb7 commit 91fbc1a

File tree

3 files changed

+62
-83
lines changed

3 files changed

+62
-83
lines changed

pyproject.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[build-system]
2+
requires = ["setuptools >= 40.9.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.black]
6+
py36 = false
7+
exclude = '''
8+
/(
9+
\.git
10+
| .tox
11+
)/
12+
'''

setup.cfg

+46-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,49 @@
1-
[easy_install]
2-
zip_ok = false
1+
[metadata]
2+
name = venusian
3+
version = 1.2.0
4+
description = A library for deferring decorator actions
5+
long_description = file: README.rst, CHANGES.rst, LICENSE.txt
6+
long_description_content_type = text/x-rst
7+
keywords = web wsgi zope
8+
license = BSD-derived (http://www.repoze.org/LICENSE.txt)
9+
classifiers =
10+
Development Status :: 6 - Mature
11+
Intended Audience :: Developers
12+
Programming Language :: Python :: 3
13+
Programming Language :: Python :: 3.5
14+
Programming Language :: Python :: 3.6
15+
Programming Language :: Python :: 3.7
16+
Programming Language :: Python :: 3.8
17+
Programming Language :: Python :: Implementation :: CPython
18+
Programming Language :: Python :: Implementation :: PyPy
19+
url = https://pylonsproject.org/
20+
author = Chris McDonough, Agendaless Consulting
21+
author_email = [email protected]
22+
python_requires = >=3.5
323

4-
[bdist_wheel]
5-
universal = 1
24+
[options]
25+
package_dir=
26+
=src
27+
packages=find:
28+
29+
[options.packages.find]
30+
where=src
631

7-
[tools:pytest]
8-
ignore=venusian/tests/fixtures/
9-
testpaths=venusian/tests/
32+
[options.extras_require]
33+
testing =
34+
pytest
35+
pytest-cov
36+
coverage
37+
docs =
38+
Sphinx
39+
repoze.sphinx.autointerface
40+
41+
[bdist_wheel]
42+
universal=1
1043

11-
[aliases]
12-
dev = develop easy_install venusian[testing]
13-
docs = develop easy_install venusian[docs]
44+
[tool:pytest]
45+
ignore=tests/fixtures/
46+
python_files = test_*.py
47+
testpaths =
48+
tests
49+
addopts = -W always --cov --cov-report=term-missing

setup.py

+4-73
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,7 @@
1-
##############################################################################
2-
#
3-
# Copyright (c) 2010 Agendaless Consulting and Contributors.
4-
# All Rights Reserved.
5-
#
6-
# This software is subject to the provisions of the BSD-like license at
7-
# http://www.repoze.org/LICENSE.txt. A copy of the license should accompany
8-
# this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
9-
# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
10-
# THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
11-
# FITNESS FOR A PARTICULAR PURPOSE
12-
#
13-
##############################################################################
14-
15-
import os
1+
"""
2+
Necessary for pip install -e, and python setup.py check
3+
"""
164

175
from setuptools import setup
18-
from setuptools import find_packages
19-
20-
here = os.path.abspath(os.path.dirname(__file__))
21-
22-
try:
23-
with open(os.path.join(here, 'README.rst')) as f:
24-
README = f.read()
25-
with open(os.path.join(here, 'CHANGES.rst')) as f:
26-
CHANGES = f.read()
27-
except:
28-
README = ''
29-
CHANGES = ''
30-
31-
testing_extras = [
32-
'pytest',
33-
'coverage',
34-
'pytest-cov',
35-
]
36-
37-
docs_extras = [
38-
'Sphinx',
39-
'repoze.sphinx.autointerface'
40-
]
416

42-
setup(name='venusian',
43-
version='1.2.0',
44-
description='A library for deferring decorator actions',
45-
long_description=README + '\n\n' + CHANGES,
46-
classifiers=[
47-
"Development Status :: 6 - Mature",
48-
"Intended Audience :: Developers",
49-
"Programming Language :: Python",
50-
"Programming Language :: Python :: 2.7",
51-
"Programming Language :: Python :: 3",
52-
"Programming Language :: Python :: 3.4",
53-
"Programming Language :: Python :: 3.5",
54-
"Programming Language :: Python :: 3.6",
55-
"Programming Language :: Python :: 3.7",
56-
"Programming Language :: Python :: Implementation :: CPython",
57-
"Programming Language :: Python :: Implementation :: PyPy",
58-
],
59-
keywords='web wsgi zope',
60-
author="Chris McDonough, Agendaless Consulting",
61-
author_email="[email protected]",
62-
url="https://pylonsproject.org",
63-
license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
64-
packages=find_packages(),
65-
include_package_data=True,
66-
zip_safe=False,
67-
extras_require={
68-
'testing': testing_extras,
69-
'docs': docs_extras,
70-
},
71-
tests_require=[],
72-
install_requires=[],
73-
test_suite='venusian',
74-
entry_points="""\
75-
"""
76-
)
7+
setup()

0 commit comments

Comments
 (0)