Skip to content

Commit

Permalink
refactor: remove the reference of anyconfig.globals.PACKAGE
Browse files Browse the repository at this point in the history
Remove the reference of anyconfig.globals.PACKAGE to simplify setup.py
and utilize the 'name' definition in setup.cfg instead.
  • Loading branch information
ssato committed Oct 13, 2018
1 parent 3a3a8af commit a7bb793
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

sys.path.insert(0, os.path.dirname(__file__)) # load anyconfig from this dir.

from anyconfig.globals import PACKAGE, VERSION
from anyconfig.globals import VERSION


# For daily snapshot versioning mode:
Expand Down Expand Up @@ -38,8 +38,7 @@ def _make_spec_file(self):
in open(self.spec_tmpl).readlines()]


setuptools.setup(name=PACKAGE,
version=VERSION,
setuptools.setup(version=VERSION,
cmdclass=dict(bdist_rpm=bdist_rpm),
data_files=[("share/man/man1", ["docs/anyconfig_cli.1"])])

Expand Down

0 comments on commit a7bb793

Please sign in to comment.