diff --git a/p_tqdm/__init__.py b/p_tqdm/__init__.py index 06be119..19915cf 100644 --- a/p_tqdm/__init__.py +++ b/p_tqdm/__init__.py @@ -1,4 +1,5 @@ from p_tqdm.p_tqdm import p_map, p_imap, p_umap, p_uimap, t_map, t_imap +from p_tqdm._version import __version__ __all__ = [ 'p_map', @@ -6,5 +7,6 @@ 'p_umap', 'p_uimap', 't_map', - 't_imap' + 't_imap', + '__version__' ] diff --git a/p_tqdm/_version.py b/p_tqdm/_version.py new file mode 100644 index 0000000..c98e907 --- /dev/null +++ b/p_tqdm/_version.py @@ -0,0 +1,7 @@ +__all__ = ['__version__'] + +# major, minor, patch +version_info = 1, 4, 0 + +# Nice string for the version +__version__ = '.'.join(map(str, version_info)) diff --git a/setup.py b/setup.py index b05bf42..77be7e4 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,22 @@ +from pathlib import Path from setuptools import find_packages, setup +# Load version number +__version__ = None + +src_dir = Path(__file__).parent.absolute() +version_file = src_dir / 'p_tqdm' / '_version.py' + +# Long README +with open(version_file) as fd: + exec(fd.read()) + with open('README.md', encoding='utf-8') as f: long_description = f.read() setup( name='p_tqdm', - version='1.3.3', + version='1.4.0', author='Kyle Swanson', author_email='swansonk.14@gmail.com', description='Parallel processing with progress bars', @@ -20,8 +31,7 @@ 'pathos>=0.2.5', 'six>=1.13.0' ], - test_suite='nose.collector', - tests_require=['nose'], + tests_require=['pytest'], classifiers=[ 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', diff --git a/tests/tests.py b/tests/test_p_tqdm.py similarity index 100% rename from tests/tests.py rename to tests/test_p_tqdm.py