Skip to content

Commit

Permalink
fix: do not check if release notes were added (#30)
Browse files Browse the repository at this point in the history
... this is done automatically by the workflow
  • Loading branch information
kayman-mk authored Nov 17, 2023
1 parent e32dd0d commit 32ac9a8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,12 @@ def read_version():
return variables["VERSION"]


def read(fname, encoding="ascii"):
return open(
os.path.join(os.path.dirname(__file__), fname), "r", encoding=encoding
).read()


if __name__ == "__main__":

VERSION = read_version()

args = set(sys.argv)

changes = read("CHANGES.rst", "utf8")

if changes.find(VERSION) == -1:
raise Exception("You forgot to put a release note in CHANGES.rst ?!")

if args & {"bdist", "bdist_dumb", "bdist_rpm", "bdist_wininst", "bdist_msi"}:
raise Exception("err doesn't support binary distributions")

Expand Down

0 comments on commit 32ac9a8

Please sign in to comment.