From 16e1bb02ba35b044576badb2af8eb17c80158763 Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:26:27 -0400 Subject: [PATCH] [setup.py] Update to latest Python 2&3 compatible format --- setup.py | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/setup.py b/setup.py index 5b146258..ed5ebf52 100644 --- a/setup.py +++ b/setup.py @@ -1,44 +1,45 @@ -from setuptools import setup, find_packages -import sys, os +import os + +from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) -README = open(os.path.join(here, 'README.rst')).read() -NEWS = open(os.path.join(here, 'NEWS.txt')).read() +README = open(os.path.join(here, "README.rst")).read() +NEWS = open(os.path.join(here, "NEWS.txt")).read() -version = '0.3.3' +version = "0.3.3" install_requires = [ - 'urllib3>=1.7', - 'pyOpenSSL>=0.14', + "urllib3>=1.7", + "pyOpenSSL>=0.14", ] test_requires = [ - 'mock', - 'nose', + "mock", + "nose", ] -setup(name='python-etcd', +setup( + name="python-etcd", version=version, description="A python client for etcd", - long_description=README + '\n\n' + NEWS, + long_description=README + "\n\n" + NEWS, classifiers=[ "Topic :: System :: Distributed Computing", "Topic :: Software Development :: Libraries", "License :: OSI Approved :: MIT License", "Topic :: Database :: Front-Ends", ], - keywords='etcd raft distributed log api client', - author='Jose Plana', - author_email='jplana@gmail.com', - url='http://github.com/jplana/python-etcd', - license='MIT', - packages=find_packages('src'), - package_dir = {'': 'src'}, + keywords="etcd raft distributed log api client", + author="Jose Plana", + author_email="jplana@gmail.com", + url="http://github.com/jplana/python-etcd", + license="MIT", + packages=find_packages("src"), + package_dir={"": "src"}, include_package_data=True, zip_safe=False, install_requires=install_requires, tests_require=test_requires, - test_suite='nose.collector', - + test_suite="nose.collector", )