-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: automatic releases via Github actions
- Loading branch information
1 parent
c8945f3
commit 4549aae
Showing
6 changed files
with
142 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Release checklist | ||
----------------- | ||
|
||
To create a release, simply create a tag that starts with 'v' (e.g. 'v6.0.0'):: | ||
|
||
git tag -a "v6.0.0" | ||
git push origin "v6.0.0" | ||
|
||
The package will be automatically tested, released on GitHub and uploaded to PyPI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Sphinx >= 3 | ||
sphinx_rtd_theme >= 0.4 | ||
pytest >= 6 | ||
black | ||
black | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
""" | ||
Extract the changes from last release | ||
""" | ||
|
||
import sys | ||
|
||
if __name__ == "__main__": | ||
filename = sys.argv[1] | ||
|
||
with open(filename, mode="r") as f: | ||
|
||
# Look for the first second-level title | ||
for line in f: | ||
if line.startswith("Release"): | ||
break | ||
|
||
print(line, end="") | ||
for line in f: | ||
if not line.startswith("Release"): | ||
print(line, end="") | ||
else: | ||
# Exit gracefully | ||
sys.exit(0) | ||
# There was a problem: Exit with error | ||
sys.exit(-1) |