X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/4f8716dc13aa14bf586dd78002d6bf4d331bc656..ed4217909965d719a8c5c61f0a3dcb0c9770a6e4:/library/setup.py?ds=sidebyside diff --git a/library/setup.py b/library/setup.py index 9d0a024..784db51 100755 --- a/library/setup.py +++ b/library/setup.py @@ -22,33 +22,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - -classifiers = ['Development Status :: 4 - Beta', - 'Operating System :: POSIX :: Linux', - 'License :: OSI Approved :: MIT License', - 'Intended Audience :: Developers', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Topic :: Software Development', - 'Topic :: System :: Hardware'] +from setuptools import setup, __version__ +from pkg_resources import parse_version + +minimum_version = parse_version('30.4.0') + +if parse_version(__version__) < minimum_version: + raise RuntimeError("Package setuptools must be at least version {}".format(minimum_version)) setup( - name='envirophatplus', - version='0.0.1', - author='Philip Howard', - author_email='phil@pimoroni.com', - description="""Enviro pHAT Plus environmental monitoring add-on for Raspberry Pi""", - long_description=open('README.rst').read() + '\n' + open('CHANGELOG.txt').read(), - license='MIT', - keywords='Raspberry Pi', - url='http://www.pimoroni.com', - project_urls={'GitHub': 'https://www.github.com/pimoroni/envirophatplus-python'}, - classifiers=classifiers, - packages=['envirophatplus'], - install_requires=['pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015'] + packages=['enviroplus'], + install_requires=['setuptools>={}'.format(minimum_version), 'pimoroni-bme280', 'pms5003', 'ltr559', 'st7735', 'ads1015', 'fonts', 'font-roboto', 'astral', 'pytz'] )