1from io import open 2 3from setuptools import setup 4 5from uritemplate import __version__ 6 7packages = [ 8 'uritemplate' 9] 10 11with open("README.rst", encoding="utf-8") as file: 12 readme = file.read() 13 14with open("HISTORY.rst", encoding="utf-8") as file: 15 history = file.read() 16 17setup( 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="graffatcolmingov@gmail.com", 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) 50