devnull@34: #!/usr/bin/env python devnull@34: devnull@34: from setuptools import setup ulalume3@53: import os ulalume3@53: import re ulalume3@53: import io devnull@34: ulalume3@53: # Read the long description from the readme file binietoglou@39: with open("readme.rst", "rb") as f: devnull@34: long_descr = f.read().decode("utf-8") devnull@34: ulalume3@53: ulalume3@53: # Read the version parameters from the __init__.py file. In this way ulalume3@53: # we keep the version information in a single place. ulalume3@53: def read(*names, **kwargs): ulalume3@53: with io.open( ulalume3@53: os.path.join(os.path.dirname(__file__), *names), ulalume3@53: encoding=kwargs.get("encoding", "utf8") ulalume3@53: ) as fp: ulalume3@53: return fp.read() ulalume3@53: ulalume3@53: ulalume3@53: def find_version(*file_paths): ulalume3@53: version_file = read(*file_paths) ulalume3@53: version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", ulalume3@53: version_file, re.M) ulalume3@53: if version_match: ulalume3@53: return version_match.group(1) ulalume3@53: raise RuntimeError("Unable to find version string.") ulalume3@53: ulalume3@53: devnull@34: # Run setup ioannis@50: setup(name='atmospheric_lidar_reader', ioannis@50: packages=['atmospheric_lidar', 'atmospheric_lidar.scripts'], ulalume3@53: version=find_version("atmospheric_lidar", "__init__.py"), devnull@37: description='Classes for reading raw atmospheric lidar data.', ioannis@50: long_description=long_descr, ulalume3@53: url='https://bitbucket.org/iannis_b/atmospheric-lidar/', devnull@34: author='Ioannis Binietoglou', ioannis@50: author_email='ioannis@inoe.ro', ulalume3@53: license='MIT', ulalume3@53: classifiers=[ ulalume3@53: 'Development Status :: 3 - Alpha', ulalume3@53: 'License :: OSI Approved :: MIT License', ulalume3@53: 'Programming Language :: Python :: 2', ulalume3@53: 'Intended Audience :: Science/Research', ulalume3@53: 'Topic :: Scientific/Engineering :: Atmospheric Science', ulalume3@53: ], ulalume3@53: keywords='lidar aerosol licel SCC', devnull@34: install_requires=[ ioannis@50: "numpy", ioannis@50: "matplotlib", ioannis@50: "sphinx", ioannis@50: "pytest", ioannis@50: "netcdf4", ioannis@50: ], ioannis@50: entry_points={ ioannis@50: 'console_scripts': ['licel2scc = atmospheric_lidar.scripts.licel2scc:main'], ioannis@50: }, ioannis@50: )