Brett Cannon | b98d77c | 2019-12-06 11:15:03 -0800 | [diff] [blame] | 1 | from io import open |
| 2 | |
Ian Cordasco | 902a8b4 | 2016-08-17 16:25:27 -0500 | [diff] [blame] | 3 | from setuptools import setup |
| 4 | |
| 5 | from uritemplate import __version__ |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 6 | |
| 7 | packages = [ |
| 8 | 'uritemplate' |
| 9 | ] |
| 10 | |
Brett Cannon | 6ef7577 | 2019-12-06 11:12:20 -0800 | [diff] [blame] | 11 | with open("README.rst", encoding="utf-8") as file: |
Brett Cannon | ab215b3 | 2019-12-02 11:18:45 -0800 | [diff] [blame] | 12 | readme = file.read() |
| 13 | |
Brett Cannon | 6ef7577 | 2019-12-06 11:12:20 -0800 | [diff] [blame] | 14 | with open("HISTORY.rst", encoding="utf-8") as file: |
Brett Cannon | ab215b3 | 2019-12-02 11:18:45 -0800 | [diff] [blame] | 15 | history = file.read() |
| 16 | |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 17 | setup( |
Ian Cordasco | 91253e7 | 2016-08-20 07:04:57 -0500 | [diff] [blame] | 18 | name="uritemplate", |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 19 | version=__version__, |
| 20 | description='URI templates', |
Brett Cannon | ab215b3 | 2019-12-02 11:18:45 -0800 | [diff] [blame] | 21 | long_description="\n\n".join([readme, history]), |
Brett Cannon | 09721e8 | 2019-12-19 14:11:28 -0800 | [diff] [blame] | 22 | long_description_content_type="text/x-rst", |
Ian Cordasco | 44c54ca | 2016-08-18 11:20:35 -0500 | [diff] [blame] | 23 | license="BSD 3-Clause License or Apache License, Version 2.0", |
Ian Stapleton Cordasco | 6eaef88 | 2017-07-26 06:51:25 -0500 | [diff] [blame] | 24 | author="Ian Stapleton Cordasco", |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 25 | author_email="graffatcolmingov@gmail.com", |
| 26 | url="https://uritemplate.readthedocs.org", |
| 27 | packages=packages, |
Ian Stapleton Cordasco | 6eaef88 | 2017-07-26 06:51:25 -0500 | [diff] [blame] | 28 | package_data={'': ['LICENSE', 'LICENSE.APACHE', 'LICENSE.BSD', |
| 29 | 'AUTHORS.rst']}, |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 30 | include_package_data=True, |
Hugo | becb8d2 | 2018-09-06 16:56:39 +0300 | [diff] [blame] | 31 | python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 32 | classifiers=[ |
| 33 | 'Development Status :: 5 - Production/Stable', |
| 34 | 'License :: OSI Approved', |
Ian Cordasco | 07e8813 | 2016-08-18 11:03:34 -0500 | [diff] [blame] | 35 | 'License :: OSI Approved :: BSD License', |
Ian Cordasco | 44c54ca | 2016-08-18 11:20:35 -0500 | [diff] [blame] | 36 | 'License :: OSI Approved :: Apache Software License', |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 37 | 'Intended Audience :: Developers', |
| 38 | 'Programming Language :: Python', |
| 39 | 'Programming Language :: Python :: 2', |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 40 | 'Programming Language :: Python :: 2.7', |
| 41 | 'Programming Language :: Python :: 3', |
Ian Cordasco | 2ecd303 | 2015-10-04 13:47:55 -0500 | [diff] [blame] | 42 | 'Programming Language :: Python :: 3.4', |
| 43 | 'Programming Language :: Python :: 3.5', |
Brett Cannon | 0a78fbd | 2017-01-28 11:19:32 -0800 | [diff] [blame] | 44 | 'Programming Language :: Python :: 3.6', |
Brett Cannon | ab215b3 | 2019-12-02 11:18:45 -0800 | [diff] [blame] | 45 | 'Programming Language :: Python :: 3.7', |
| 46 | 'Programming Language :: Python :: 3.8', |
Ian Cordasco | f818035 | 2013-05-14 00:29:17 -0400 | [diff] [blame] | 47 | 'Programming Language :: Python :: Implementation :: CPython', |
| 48 | ], |
| 49 | ) |