1 #!/usr/bin/env python |
1 #!/usr/bin/env python |
2 |
2 |
3 from setuptools import setup |
3 from setuptools import setup |
|
4 import os |
|
5 import re |
|
6 import io |
4 |
7 |
5 # Read the long description from the readmef ile |
8 # Read the long description from the readme file |
6 with open("readme.rst", "rb") as f: |
9 with open("readme.rst", "rb") as f: |
7 long_descr = f.read().decode("utf-8") |
10 long_descr = f.read().decode("utf-8") |
|
11 |
|
12 |
|
13 # Read the version parameters from the __init__.py file. In this way |
|
14 # we keep the version information in a single place. |
|
15 def read(*names, **kwargs): |
|
16 with io.open( |
|
17 os.path.join(os.path.dirname(__file__), *names), |
|
18 encoding=kwargs.get("encoding", "utf8") |
|
19 ) as fp: |
|
20 return fp.read() |
|
21 |
|
22 |
|
23 def find_version(*file_paths): |
|
24 version_file = read(*file_paths) |
|
25 version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", |
|
26 version_file, re.M) |
|
27 if version_match: |
|
28 return version_match.group(1) |
|
29 raise RuntimeError("Unable to find version string.") |
|
30 |
8 |
31 |
9 # Run setup |
32 # Run setup |
10 setup(name='atmospheric_lidar_reader', |
33 setup(name='atmospheric_lidar_reader', |
11 packages=['atmospheric_lidar', 'atmospheric_lidar.scripts'], |
34 packages=['atmospheric_lidar', 'atmospheric_lidar.scripts'], |
12 version='0.2.0', |
35 version=find_version("atmospheric_lidar", "__init__.py"), |
13 description='Classes for reading raw atmospheric lidar data.', |
36 description='Classes for reading raw atmospheric lidar data.', |
14 long_description=long_descr, |
37 long_description=long_descr, |
|
38 url='https://bitbucket.org/iannis_b/atmospheric-lidar/', |
15 author='Ioannis Binietoglou', |
39 author='Ioannis Binietoglou', |
16 author_email='ioannis@inoe.ro', |
40 author_email='ioannis@inoe.ro', |
|
41 license='MIT', |
|
42 classifiers=[ |
|
43 'Development Status :: 3 - Alpha', |
|
44 'License :: OSI Approved :: MIT License', |
|
45 'Programming Language :: Python :: 2', |
|
46 'Intended Audience :: Science/Research', |
|
47 'Topic :: Scientific/Engineering :: Atmospheric Science', |
|
48 ], |
|
49 keywords='lidar aerosol licel SCC', |
17 install_requires=[ |
50 install_requires=[ |
18 "numpy", |
51 "numpy", |
19 "matplotlib", |
52 "matplotlib", |
20 "sphinx", |
53 "sphinx", |
21 "pytest", |
54 "pytest", |