-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
47 lines (40 loc) · 1.47 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from setuptools import setup, find_packages
name = "more.itsdangerous"
description = "An identity policy for morepath using itsdangerous."
version = "0.0.2"
def get_long_description():
readme = open("README.rst", encoding="utf-8").read()
history = open("HISTORY.rst", encoding="utf-8").read()
# cut the part before the description to avoid repetition on pypi
readme = readme[readme.index(description) + len(description) :]
return "\n".join((readme, history))
setup(
name=name,
version=version,
description=description,
long_description=get_long_description(),
url="http://github.com/morepath/more.itsdangerous",
author="Seantis GmbH",
author_email="[email protected]",
license="BSD",
packages=find_packages(exclude=["ez_setup"]),
namespace_packages=name.split(".")[:-1],
include_package_data=True,
zip_safe=False,
platforms="any",
install_requires=["itsdangerous", "morepath"],
extras_require=dict(
test=["coverage", "pytest"],
),
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: BSD License",
],
)