Skip to content

Commit

Permalink
Use with statement and update URL in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Nov 30, 2018
1 parent 1625e17 commit 8100594
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@


def read(*rnames):
return (
open(os.path.join(os.path.dirname(__file__), *rnames), "rb")
.read()
.decode("utf-8")
)
with open(os.path.join(os.path.dirname(__file__), *rnames), "rb") as fp:
return fp.read().decode("utf-8")


tests_require = ["z3c.form", "zope.testing"]
Expand All @@ -34,8 +31,10 @@ def read(*rnames):
author_email="zope3-dev@zope.org",
description="A currency field and support for ``z3c.form``.",
long_description=(
read("README.rst") + "\n\n" + "Detailed Documentation\n"
"**********************\n"
read("README.rst")
+ "\n\n"
+ "Detailed Documentation\n"
+ "**********************\n"
+ "\n"
+ read("src", "z3c", "currency", "README.rst")
+ "\n\n"
Expand All @@ -61,7 +60,7 @@ def read(*rnames):
"Topic :: Internet :: WWW/HTTP",
"Framework :: Zope :: 3",
],
url="http://svn.zope.org/z3c.currency",
url="https://github.com/zopefoundation/z3c.currency",
packages=find_packages("src"),
include_package_data=True,
package_dir={"": "src"},
Expand Down

0 comments on commit 8100594

Please sign in to comment.