|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +""" |
| 4 | +A setuptools based setup module for jao-py |
| 5 | +
|
| 6 | +Adapted from |
| 7 | +https://packaging.python.org/en/latest/distributing.html |
| 8 | +https://github.com/pypa/sampleproject |
| 9 | +""" |
| 10 | + |
| 11 | +# Always prefer setuptools over distutils |
| 12 | +from setuptools import setup, find_packages |
| 13 | +# To use a consistent encoding |
| 14 | +from codecs import open |
| 15 | +from os import path |
| 16 | + |
| 17 | +here = path.abspath(path.dirname(__file__)) |
| 18 | + |
| 19 | +# Get the long description from the README file |
| 20 | +with open(path.join(here, 'README.md'), encoding='utf-8') as f: |
| 21 | + long_description = f.read() |
| 22 | + |
| 23 | +# Get the version from the source code |
| 24 | +with open(path.join(here, 'jao', 'jao.py'), encoding='utf-8') as f: |
| 25 | + lines = f.readlines() |
| 26 | + for l in lines: |
| 27 | + if l.startswith('__version__'): |
| 28 | + __version__ = l.split('"')[1] # take the part after the first " |
| 29 | + |
| 30 | +setup( |
| 31 | + name='jao-py', |
| 32 | + version=__version__, |
| 33 | + description='A python API wrapper for JAO.eu', |
| 34 | + long_description=long_description, |
| 35 | + long_description_content_type='text/markdown', |
| 36 | + url='https://github.com/fboerman/jao-py', |
| 37 | + author='Frank Boerman', |
| 38 | + author_email='frank@fboerman.nl', |
| 39 | + license='MIT', |
| 40 | + |
| 41 | + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers |
| 42 | + classifiers=[ |
| 43 | + 'Development Status :: 3 - Alpha', |
| 44 | + |
| 45 | + # Indicate who your project is intended for |
| 46 | + 'Intended Audience :: Developers', |
| 47 | + 'Topic :: Scientific/Engineering', |
| 48 | + |
| 49 | + # Pick your license as you wish (should match "license" above) |
| 50 | + 'License :: OSI Approved :: MIT License', |
| 51 | + |
| 52 | + # Specify the Python versions you support here. In particular, ensure |
| 53 | + # that you indicate whether you support Python 2, Python 3 or both. |
| 54 | + 'Programming Language :: Python :: 3.8', |
| 55 | + 'Programming Language :: Python :: 3.9', |
| 56 | + ], |
| 57 | + |
| 58 | + keywords='JAO data api energy', |
| 59 | + |
| 60 | + # You can just specify the packages manually here if your project is |
| 61 | + # simple. Or you can use find_packages(). |
| 62 | + packages=find_packages(), |
| 63 | + |
| 64 | + |
| 65 | + # List run-time dependencies here. These will be installed by pip when |
| 66 | + # your project is installed. |
| 67 | + install_requires=['requests', 'pandas', 'suds-community', 'python-dateutil', 'beautifulsoup4', 'lxml', 'pillow'], |
| 68 | + |
| 69 | + # If there are data files included in your packages that need to be |
| 70 | + # installed, specify them here. If using Python 2.6 or less, then these |
| 71 | + # have to be included in MANIFEST.in as well. |
| 72 | + # Note: for creating the source distribution, they had to be included in the |
| 73 | + # MANIFEST.in as well. |
| 74 | + package_data={ |
| 75 | + 'jao-py': ['LICENSE.md', 'README.md'], |
| 76 | + }, |
| 77 | +) |
0 commit comments