Skip to content

Commit adf141e

Browse files
committed
Move to static configuration
1 parent d335efa commit adf141e

File tree

2 files changed

+39
-48
lines changed

2 files changed

+39
-48
lines changed

setup.cfg

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,39 @@
1+
[metadata]
2+
name = uritemplate
3+
description = Implementation of RFC 6570 URI Templates
4+
author = Ian Stapleton Cordasco
5+
author_email = [email protected]
6+
keywords = rfc 6570 uri template
7+
license = BSD 3-Clause License or Apache License, Version 2.0
8+
license_file = LICENSE
9+
long_description = file:README.rst
10+
long_description_content_type = text/x-rst
11+
url = https://uritemplate.readthedocs.org
12+
version = attr: uritemplate.__version__
13+
14+
classifiers =
15+
Development Status :: 5 - Production/Stable
16+
License :: OSI Approved
17+
License :: OSI Approved :: BSD License
18+
License :: OSI Approved :: Apache Software License
19+
Intended Audience :: Developers
20+
Programming Language :: Python
21+
Programming Language :: Python :: 3
22+
Programming Language :: Python :: 3.6
23+
Programming Language :: Python :: 3.7
24+
Programming Language :: Python :: 3.8
25+
Programming Language :: Python :: 3.9
26+
Programming Language :: Python :: 3.10
27+
Programming Language :: Python :: Implementation :: CPython
28+
129
[bdist_wheel]
230
universal = 1
31+
32+
[options]
33+
python_requires = >= 3.6
34+
include_package_data = True
35+
packages = find:
36+
37+
[options.package_data]
38+
; NOTE: This only affects sdists
39+
. = LICENSE, LICENSE.APACHE, LICENSE.BSD, AUTHORS.rst, HISTORY.rst

setup.py

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
1-
from io import open
1+
import setuptools
22

3-
from setuptools import setup
4-
5-
from uritemplate import __version__
6-
7-
packages = [
8-
'uritemplate'
9-
]
10-
11-
with open("README.rst", encoding="utf-8") as file:
12-
readme = file.read()
13-
14-
with open("HISTORY.rst", encoding="utf-8") as file:
15-
history = file.read()
16-
17-
setup(
18-
name="uritemplate",
19-
version=__version__,
20-
description='URI templates',
21-
long_description="\n\n".join([readme, history]),
22-
long_description_content_type="text/x-rst",
23-
license="BSD 3-Clause License or Apache License, Version 2.0",
24-
author="Ian Stapleton Cordasco",
25-
author_email="[email protected]",
26-
url="https://uritemplate.readthedocs.org",
27-
packages=packages,
28-
package_data={'': ['LICENSE', 'LICENSE.APACHE', 'LICENSE.BSD',
29-
'AUTHORS.rst']},
30-
include_package_data=True,
31-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
32-
classifiers=[
33-
'Development Status :: 5 - Production/Stable',
34-
'License :: OSI Approved',
35-
'License :: OSI Approved :: BSD License',
36-
'License :: OSI Approved :: Apache Software License',
37-
'Intended Audience :: Developers',
38-
'Programming Language :: Python',
39-
'Programming Language :: Python :: 2',
40-
'Programming Language :: Python :: 2.7',
41-
'Programming Language :: Python :: 3',
42-
'Programming Language :: Python :: 3.4',
43-
'Programming Language :: Python :: 3.5',
44-
'Programming Language :: Python :: 3.6',
45-
'Programming Language :: Python :: 3.7',
46-
'Programming Language :: Python :: 3.8',
47-
'Programming Language :: Python :: Implementation :: CPython',
48-
],
49-
)
3+
setuptools.setup()

0 commit comments

Comments
 (0)