Skip to content

Commit d31701a

Browse files
committed
finish nox.
1 parent 1d256c3 commit d31701a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

noxfile.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,15 @@ def build(session):
113113
session.install("build")
114114
session.install("setuptools")
115115
session.run("python", "-m", "build")
116+
117+
@nox.session(name="finish")
118+
def finish(session):
119+
"""Finish this version increase the version number and upload to pypi."""
120+
session.install("bump2version")
121+
session.install("twine")
122+
session.run("bumpversion", "release", external=True)
123+
build(session)
124+
session.run("twine", "upload", "--skip-existing", "dist/*", external=True)
125+
session.run("git", "push", external=True)
126+
session.run("bumpversion", "patch", external=True)
127+
session.run("git", "push", external=True)

0 commit comments

Comments
 (0)