python-click/setup.py

41 lines
1.3 KiB
Python
Raw Normal View History

2018-09-06 20:55:10 +02:00
import io
2014-10-16 20:40:34 +02:00
import re
2020-07-21 08:23:42 +02:00
from setuptools import find_packages
2014-10-16 20:40:34 +02:00
from setuptools import setup
2019-01-07 17:51:19 +01:00
with io.open("README.rst", "rt", encoding="utf8") as f:
2018-09-06 20:55:10 +02:00
readme = f.read()
2014-10-16 20:40:34 +02:00
2020-07-21 08:23:42 +02:00
with io.open("src/click/__init__.py", "rt", encoding="utf8") as f:
version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)
2014-10-16 20:40:34 +02:00
setup(
2020-07-21 08:23:42 +02:00
name="click",
2018-09-06 20:55:10 +02:00
version=version,
2019-01-07 17:51:19 +01:00
url="https://palletsprojects.com/p/click/",
project_urls={
"Documentation": "https://click.palletsprojects.com/",
"Code": "https://github.com/pallets/click",
"Issue tracker": "https://github.com/pallets/click/issues",
2018-09-06 20:55:10 +02:00
},
2020-07-21 08:23:42 +02:00
license="BSD-3-Clause",
maintainer="Pallets",
2019-01-07 17:51:19 +01:00
maintainer_email="contact@palletsprojects.com",
description="Composable command line interface toolkit",
long_description=readme,
2020-07-21 08:23:42 +02:00
packages=find_packages("src"),
package_dir={"": "src"},
2019-01-07 17:51:19 +01:00
include_package_data=True,
2020-07-21 08:23:42 +02:00
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
2014-10-16 20:40:34 +02:00
classifiers=[
2019-01-07 17:51:19 +01:00
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
2014-10-16 20:40:34 +02:00
],
)