forked from zestsoftware/zest.releaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
114 lines (104 loc) · 3.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
from setuptools import find_packages
from setuptools import setup
import codecs
import sys
version = "7.0.0a4.dev0"
def read(filename):
try:
with codecs.open(filename, encoding="utf-8") as f:
return f.read()
except NameError:
with open(filename, encoding="utf-8") as f:
return f.read()
long_description = "\n\n".join(
[read("README.rst"), read("CREDITS.rst"), read("CHANGES.rst")]
)
if sys.version_info < (3,):
long_description = long_description.encode("utf-8")
setup(
name="zest.releaser",
version=version,
description="Software releasing made easy and repeatable",
long_description=long_description,
classifiers=[
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords=["releasing", "packaging", "pypi"],
author="Reinout van Rees",
author_email="[email protected]",
url="https://zestreleaser.readthedocs.io",
license="GPL",
packages=find_packages(exclude=["ez_setup"]),
namespace_packages=["zest"],
include_package_data=True,
zip_safe=False,
install_requires=[
"setuptools",
"colorama",
"requests",
"twine >= 1.6.0",
],
extras_require={
"recommended": [
"check-manifest",
"pep440",
"pyroma",
"readme_renderer",
"wheel",
],
"test": [
"z3c.testsetup >= 0.8.4",
"zope.testing",
"zope.testrunner",
"wheel",
],
},
entry_points={
"console_scripts": [
"release = zest.releaser.release:main",
"prerelease = zest.releaser.prerelease:main",
"postrelease = zest.releaser.postrelease:main",
"fullrelease = zest.releaser.fullrelease:main",
"longtest = zest.releaser.longtest:main",
"lasttagdiff = zest.releaser.lasttagdiff:main",
"lasttaglog = zest.releaser.lasttaglog:main",
"addchangelogentry = zest.releaser.addchangelogentry:main",
"bumpversion = zest.releaser.bumpversion:main",
],
# The datachecks are implemented as entry points to be able to check
# our entry point implementation.
"zest.releaser.prereleaser.middle": [
"datacheck = zest.releaser.prerelease:datacheck",
],
"zest.releaser.releaser.middle": [
"datacheck = zest.releaser.release:datacheck",
],
"zest.releaser.postreleaser.middle": [
"datacheck = zest.releaser.postrelease:datacheck",
],
"zest.releaser.addchangelogentry.middle": [
"datacheck = zest.releaser.addchangelogentry:datacheck",
],
"zest.releaser.bumpversion.middle": [
"datacheck = zest.releaser.bumpversion:datacheck",
],
# Documentation generation
"zest.releaser.prereleaser.before": [
"preparedocs = "
+ "zest.releaser.preparedocs:prepare_entrypoint_documentation",
],
},
)