victor@7: #!/usr/bin/env python victor@7: victor@7: from setuptools import setup victor@7: import os victor@7: import re victor@7: import io victor@7: victor@7: # Read the long description from the readme file victor@7: with open("README.rst", "rb") as f: victor@7: long_description = f.read().decode("utf-8") victor@7: victor@7: victor@7: # Read the version parameters from the __init__.py file. In this way victor@7: # we keep the version information in a single place. victor@7: def read(*names, **kwargs): victor@7: with io.open( victor@7: os.path.join(os.path.dirname(__file__), *names), victor@7: encoding=kwargs.get("encoding", "utf8") victor@7: ) as fp: victor@7: return fp.read() victor@7: victor@7: victor@7: def find_version(*file_paths): victor@7: version_file = read(*file_paths) victor@7: version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", victor@7: version_file, re.M) victor@7: if version_match: victor@7: return version_match.group(1) victor@7: raise RuntimeError("Unable to find version string.") victor@7: victor@7: victor@7: # Run setup victor@7: setup(name='scc_access', victor@7: packages=['scc_access'], i@13: version=find_version("scc_access", "__init__.py"), ioannis@63: description="Package for interacting with EARLINET's Single Calculus Chain through the command line.", victor@7: long_description=long_description, ioannis@63: url='https://repositories.imaa.cnr.it/public/scc_access/', victor@7: author='Ioannis Binietoglou', victor@7: author_email='ioannis@inoe.ro', victor@7: license='MIT', victor@7: classifiers=[ ioannis@63: 'Development Status :: 4 - Beta', victor@7: 'License :: OSI Approved :: MIT License', ioannis@63: 'Programming Language :: Python :: 3', victor@7: 'Intended Audience :: Science/Research', victor@7: 'Topic :: Scientific/Engineering :: Atmospheric Science', victor@7: ], victor@7: keywords='lidar aerosol SCC', victor@7: install_requires=[ i@13: "requests", i@13: "pyyaml", ioannis@42: "netCDF4" victor@7: ], victor@7: entry_points={ victor@7: 'console_scripts': ['scc_access = scc_access.scc_access:main'], victor@7: }, victor@7: )