-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
70 lines (60 loc) · 2.53 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import os
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(HERE, 'README.rst')) as f:
long_description = f.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
# http://thomas-cokelaer.info/blog/2012/03/how-to-embedded-data-files-in-python-using-setuptools/
datadir = os.path.join('files')
datafiles = [(d, [os.path.join(d, f) for f in files])
for d, folders, files in os.walk(datadir)]
def get_faampy_version():
version = None
initpath = os.path.join(HERE, 'faampy', '__init__.py')
with open(initpath) as fd:
for line in fd:
if line.startswith('__version__'):
_, version = line.split('=')
version = version.strip()[1:-1] # Remove quotation characters
break
return version
setup(name = "faampy",
version = get_faampy_version(),
description = "python module for working with FAAM data",
author = "Axel Wellpott",
author_email = "axel dot wellpott at faam dot ac dot uk",
url = "http://www.faam.ac.uk",
package_dir = {'': '.'},
packages=find_packages('.'),
# scripts are defined in the faampy.__init__ file
entry_points={
'console_scripts': [
'faampy = faampy:command_line',]
},
license='LGPLv3',
platforms = ['linux'],
long_description = long_description,
# install_requires = required,
install_requires = [],
include_package_data = True,
data_files = datafiles,
zip_safe = False, # http://stackoverflow.com/questions/27964960/pip-why-sometimes-installed-as-egg-sometimes-installed-as-files
keywords = ['FAAM',
'Facility for Airborne Atmospheric Measurements',
'NCAS',
'MetOffice',
'data',
'science',
'meteorology',
'python',
'plotting'],
classifiers=['Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization'])