-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
88 lines (81 loc) · 3.04 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
# -*- coding: utf-8 -*-
"""Installer for the zestreleaser.towncrier package."""
from setuptools import find_packages, setup
LITERAL_TOML = """
``pyproject.toml`` example
--------------------------
``towncrier`` needs a configured ``pyproject.toml`` file in the root of the package, next to the ``setup.py``.
For reference, here is the literal ``pyproject.toml`` file from ``zestreleaser.towncrier``::
"""
with open("pyproject.toml") as toml:
for line in toml.readlines():
LITERAL_TOML += " " + line
long_description = "\n\n".join(
[
open("README.rst").read(),
LITERAL_TOML,
open("CONTRIBUTORS.rst").read(),
open("CHANGES.rst").read(),
]
)
setup(
name="zestreleaser.towncrier",
version="1.3.1.dev0",
description="zest.releaser plugin to call towncrier",
long_description=long_description,
# Get more from https://pypi.org/classifiers/
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
keywords="Python Plone",
author="Maurits van Rees",
author_email="m.van.rees@zestsoftware.nl",
url="https://pypi.org/project/zestreleaser.towncrier",
license="GPL",
packages=find_packages("src", exclude=["ez_setup"]),
namespace_packages=["zestreleaser"],
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=[
"setuptools",
"toml; python_version < '3.6'",
"tomli; python_version >= '3.6'",
"towncrier>=19.9.0",
"zest.releaser>=6.17.0",
],
entry_points={
"zest.releaser.bumpversion.before": [
# If towncrier is configured for this project,
# the history should not be changed.
"check_towncrier = zestreleaser.towncrier:check_towncrier",
],
"zest.releaser.prereleaser.middle": [
# Call towncrier to update the changelog with newsfragments:
"call_towncrier = zestreleaser.towncrier:call_towncrier",
],
"zest.releaser.prereleaser.before": [
# Check if towncrier is available and configured:
"check_towncrier = zestreleaser.towncrier:check_towncrier",
],
"zest.releaser.postreleaser.before": [
# We only need to check if towncrier is available and
# configured for this project.
# Then the history should not be changed.
"check_towncrier = zestreleaser.towncrier:post_check_towncrier",
],
},
)