parent
709d05da73
commit
23f5c76f13
|
@ -0,0 +1 @@
|
||||||
|
__version__ = '1.7.0'
|
12
setup.py
12
setup.py
|
@ -17,6 +17,7 @@ DESCRIPTION = 'a pluggable irc bot framework in python'
|
||||||
URL = 'https://github.com/archangelic/pinhook'
|
URL = 'https://github.com/archangelic/pinhook'
|
||||||
EMAIL = 'mhancock@archangelic.space'
|
EMAIL = 'mhancock@archangelic.space'
|
||||||
AUTHOR = 'M. Hancock'
|
AUTHOR = 'M. Hancock'
|
||||||
|
VERSION = None
|
||||||
|
|
||||||
# What packages are required for this module to be executed?
|
# What packages are required for this module to be executed?
|
||||||
REQUIRED = [
|
REQUIRED = [
|
||||||
|
@ -36,6 +37,15 @@ here = os.path.abspath(os.path.dirname(__file__))
|
||||||
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||||
long_description = '\n' + f.read()
|
long_description = '\n' + f.read()
|
||||||
|
|
||||||
|
# Load the package's __version__.py module as a dictionary.
|
||||||
|
about = {}
|
||||||
|
if not VERSION:
|
||||||
|
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
|
||||||
|
with open(os.path.join(here, project_slug, '__version__.py')) as f:
|
||||||
|
exec(f.read(), about)
|
||||||
|
else:
|
||||||
|
about['__version__'] = VERSION
|
||||||
|
|
||||||
|
|
||||||
class UploadCommand(Command):
|
class UploadCommand(Command):
|
||||||
"""Support setup.py upload."""
|
"""Support setup.py upload."""
|
||||||
|
@ -73,7 +83,7 @@ class UploadCommand(Command):
|
||||||
# Where the magic happens:
|
# Where the magic happens:
|
||||||
setup(
|
setup(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
version='1.6.2',
|
version=about['__version__'],
|
||||||
description=DESCRIPTION,
|
description=DESCRIPTION,
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type='text/markdown',
|
||||||
|
|
Loading…
Reference in New Issue