Skip to content

Commit

Permalink
Fix bad metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldoussoren committed May 24, 2022
1 parent 7e9e569 commit 4146cd8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release history
===============

py2app 0.28.2
-------------

* Fix incompatibility with recent setuptools

py2app 0.28.1
-------------

Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ def run(self):
egg_info.egg_info.run(self)

path = os.path.join(self.egg_info, "PKG-INFO")
with open(path, "a+") as fp:
with open(path) as fp:
contents = fp.read()

first, middle, last = contents.partition("\n\n")

with open(path, "w") as fp:
fp.write(first)
fp.write(
"Project-URL: Documentation, "
"https://py2app.readthedocs.io/en/latest/\n"
Expand All @@ -131,6 +137,9 @@ def run(self):
fp.write(
"Project-URL: Repository, " "https://github.com/ronaldoussoren/py2app\n"
)
fp.write(middle)
fp.write(last)



class test(Command):
Expand Down Expand Up @@ -275,7 +284,7 @@ def run(self):
setup(
# metadata
name="py2app",
version="0.28.1",
version="0.28.2",
description="Create standalone Mac OS X applications with Python",
# author='Bob Ippolito',
# author_email='[email protected]',
Expand Down

0 comments on commit 4146cd8

Please sign in to comment.