Factor out more meta data

This commit is contained in:
Hynek Schlawack 2015-09-22 14:22:21 +02:00
parent f0b142382b
commit c855b08e5d
1 changed files with 28 additions and 26 deletions

View File

@ -5,8 +5,31 @@ import re
from setuptools import setup, find_packages from setuptools import setup, find_packages
###############################################################################
NAME = "attrs" NAME = "attrs"
PACKAGES = find_packages(exclude=["tests*"])
META_PATH = os.path.join("attr", "__init__.py") META_PATH = os.path.join("attr", "__init__.py")
KEYWORDS = ["class", "attribute", "boilerplate"]
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
]
INSTALL_REQUIRES = []
############################################################################### ###############################################################################
@ -49,31 +72,10 @@ if __name__ == "__main__":
author_email=find_meta("email"), author_email=find_meta("email"),
maintainer=find_meta("author"), maintainer=find_meta("author"),
maintainer_email=find_meta("email"), maintainer_email=find_meta("email"),
keywords=["class", "attribute", "boilerplate"], keywords=KEYWORDS,
long_description=( long_description=read("README.rst"),
read("README.rst") + "\n\n" + packages=PACKAGES,
read("AUTHORS.rst")
),
packages=find_packages(exclude=["tests*"]),
zip_safe=False, zip_safe=False,
classifiers=[ classifiers=CLASSIFIERS,
"Development Status :: 5 - Production/Stable", install_requires=INSTALL_REQUIRES,
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
],
install_requires=[
],
) )