From 500068118e7705fad0e017c231d765065fe67a5a Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Wed, 1 Jan 2020 13:41:28 -0800 Subject: [PATCH] [setup] Add `incremental` versioning --- pyhmy/__init__.py | 6 +++--- pyhmy/_version.py | 11 +++++++++++ setup.py | 5 +++-- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 pyhmy/_version.py diff --git a/pyhmy/__init__.py b/pyhmy/__init__.py index bc52a5f..e02171b 100644 --- a/pyhmy/__init__.py +++ b/pyhmy/__init__.py @@ -1,6 +1,8 @@ import sys import warnings -import pkg_resources + +from ._version import __version__ + from .util import ( Typgpy, @@ -32,5 +34,3 @@ if sys.platform.startswith('win32') or sys.platform.startswith('cygwin'): ) ) warnings.resetwarnings() - -__version__ = pkg_resources.get_distribution("pyhmy").version diff --git a/pyhmy/_version.py b/pyhmy/_version.py new file mode 100644 index 0000000..edc53fb --- /dev/null +++ b/pyhmy/_version.py @@ -0,0 +1,11 @@ +""" +Provides pyhmy version information. +""" + +# This file is auto-generated! Do not edit! +# Use `python -m incremental.update pyhmy` to change this file. + +from incremental import Version + +__version__ = Version('pyhmy', 20, 1, 0, dev=2) +__all__ = ["__version__"] diff --git a/setup.py b/setup.py index 7b7e523..e392a94 100644 --- a/setup.py +++ b/setup.py @@ -6,12 +6,13 @@ README = (HERE / "README.md").read_text() setup( name='pyhmy', - version='0.11', + use_incremental=True, + setup_requires=['incremental', 'click', 'twisted'], long_description=README, long_description_content_type="text/markdown", author='Daniel Van Der Maden', author_email='daniel@harmony.one', url="http://harmony.one/", packages=['pyhmy'], - install_requires=['pexpect', 'requests', 'pytest', 'pytest-ordering'], + install_requires=['pexpect', 'requests', 'pytest', 'pytest-ordering', 'incremental', 'click', 'twisted'], )