Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
6f9c52de
Commit
6f9c52de
authored
May 13, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add postrelease hook to stop zest.releaser from modifying CHANGES.rst in its last step.
Fixes #1600 [skip ci]
parent
6b44f55e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
setup.cfg
setup.cfg
+2
-0
src/gevent/_util.py
src/gevent/_util.py
+23
-0
No files found.
setup.cfg
View file @
6f9c52de
...
...
@@ -6,6 +6,8 @@ python-file-with-version = src/gevent/__init__.py
create-wheel = no
prereleaser.middle =
gevent._util.prereleaser_middle
postreleaser.before =
gevent._util.postreleaser_before
[metadata]
long_description_content_type = text/x-rst
...
...
src/gevent/_util.py
View file @
6f9c52de
...
...
@@ -216,6 +216,14 @@ implementer = implementer
Attribute
=
Attribute
###
# Release automation.
#
# Most of this is to integrate zest.releaser with towncrier. There is
# a plugin package that can do the same:
# https://github.com/collective/zestreleaser.towncrier
###
def
prereleaser_middle
(
data
):
# pragma: no cover
"""
zest.releaser prerelease middle hook for gevent.
...
...
@@ -300,3 +308,18 @@ def prereleaser_middle(data): # pragma: no cover
print
(
"Replaced version NEXT in"
,
path
)
with
open
(
path
,
'wb'
)
as
f
:
f
.
write
(
new_contents
)
def
postreleaser_before
(
data
):
# pragma: no cover
"""
Prevents zest.releaser from modifying the CHANGES.rst to add the
'no changes yet' section; towncrier is in charge of CHANGES.rst.
Needs zest.releaser 6.15.0.
"""
if
data
[
'name'
]
!=
'gevent'
:
# We are specified in ``setup.cfg``, not ``setup.py``, so we do not
# come into play for other projects, only this one. We shouldn't
# need this check, but there it is.
return
data
[
'update_history'
]
=
False
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment