From f0ffd1616cd99c4ad99a986cd7e4a75dec2fcf6d Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 27 Jan 2021 20:19:56 +0000 Subject: [PATCH 1/6] Declare universal wheel support This mean the package is single source compatible with Python 2.x and 3.x. There is no need to build separate wheels. --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.cfg b/setup.cfg index bf012c6b..08919787 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ +[bdist_wheel] +universal=1 + [coverage:run] branch = true source = From 737e71202403ef5e7366c25270d9b09910fc1ec6 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 27 Jan 2021 20:20:30 +0000 Subject: [PATCH 2/6] setup: Update project URL --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c3257996..f28d7fb1 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ setup( description = 'Library for writing distributed self-replicating programs.', author = 'David Wilson', license = 'New BSD', - url = 'https://github.com/dw/mitogen/', + url = 'https://github.com/mitogen-hq/mitogen/', packages = find_packages(exclude=['tests', 'examples']), zip_safe = False, classifiers = [ From 0a28549c47e22b03edeb2a1e5a705916c6a71a94 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 27 Jan 2021 20:21:35 +0000 Subject: [PATCH 3/6] setup: Declare supported Python versions (2.4-2.7, 3.6+) --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index f28d7fb1..87601907 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ setup( license = 'New BSD', url = 'https://github.com/mitogen-hq/mitogen/', packages = find_packages(exclude=['tests', 'examples']), + python_requires='>=2.4, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4', zip_safe = False, classifiers = [ 'Environment :: Console', @@ -55,11 +56,16 @@ setup( 'License :: OSI Approved :: BSD License', 'Operating System :: POSIX', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: System :: Distributed Computing', 'Topic :: System :: Systems Administration', From a6387f69a8f387e6e4a2d552b9d10c96da1e34d0 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 27 Jan 2021 20:35:06 +0000 Subject: [PATCH 4/6] setup: Declare MacOS/OSX support --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 87601907..6134b7eb 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ setup( 'Environment :: Console', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: BSD License', + 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2', From 28ea0067c66f85804aa263f370afae4d08ec040e Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 27 Jan 2021 20:35:49 +0000 Subject: [PATCH 5/6] setup: Add long_description, based on README --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index 6134b7eb..34a3ba0a 100644 --- a/setup.py +++ b/setup.py @@ -40,10 +40,20 @@ def grep_version(): return '.'.join(map(str, eval(s))) +def long_description(): + here = os.path.dirname(__file__) + readme_path = os.path.join(here, 'README.md') + with open(readme_path) as fp: + readme = fp.read() + return readme + + setup( name = 'mitogen', version = grep_version(), description = 'Library for writing distributed self-replicating programs.', + long_description = long_description(), + long_description_content_type='text/markdown', author = 'David Wilson', license = 'New BSD', url = 'https://github.com/mitogen-hq/mitogen/', From 9b1617f26f03d6b90065bbdb71412c216f3c2e1a Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 27 Jan 2021 20:39:04 +0000 Subject: [PATCH 6/6] Bump version to 0.3.0rc1 --- mitogen/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/__init__.py b/mitogen/__init__.py index f18c5a90..9e709d7d 100644 --- a/mitogen/__init__.py +++ b/mitogen/__init__.py @@ -35,7 +35,7 @@ be expected. On the slave, it is built dynamically during startup. #: Library version as a tuple. -__version__ = (0, 2, 9) +__version__ = (0, 3, 0, 'rc', 1) #: This is :data:`False` in slave contexts. Previously it was used to prevent diff --git a/setup.py b/setup.py index 34a3ba0a..bd105147 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ def grep_version(): for line in fp: if line.startswith('__version__'): _, _, s = line.partition('=') - return '.'.join(map(str, eval(s))) + return '%i.%i.%i%s%i' % eval(s) def long_description():