Skip to content

Commit

Permalink
setup.py: use homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans-Peter Jansen committed Mar 2, 2020
1 parent cd42b4d commit e409844
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
pkgversion = None
author = None
license = None
homepage = None
min_python = (3, 3)


Expand All @@ -36,6 +37,7 @@ def tag_value(tag, data):
# determine package meta data
with open(pkgfile_py, 'r') as fd:
data = fd.read()
homepage = tag_value('homepage', data)
license = tag_value('license', data)
pkgversion = tag_value('version', data)
author_email = tag_value('author', data)
Expand All @@ -59,7 +61,7 @@ def tag_value(tag, data):
description = description,
long_description = long_description,
long_description_content_type = long_description_content_type,
url = 'https://github.com/frispete/' + pkgname,
url = homepage,
license = license,
# entry points don't like python modules containing dashes :-(
py_modules = [pkgfile],
Expand Down

0 comments on commit e409844

Please sign in to comment.