-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
71 lines (62 loc) · 2.11 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
71
""" file: setup.py (bomber)
author: Jess Robertson
CSIRO Earth Science and Resource Engineering
email: [email protected]
date: Wednesday 1 May,
2013
description: Distutils installer script for bomber.
"""
import os
from setuptools import setup, find_packages
from update_version import update_version, Version, get_version
def read(*paths):
""" Build a file path from *paths and return the contents.
"""
with open(os.path.join(*paths), 'r') as f:
return f.read()
# Get requirements from requirements.txt file
with open('requirements.txt') as fhandle:
REQUIREMENTS = [l.strip('\n') for l in fhandle]
# Get version number from _version.py
# Can be updated using python setup.py update_version
update_version()
## PACKAGE INFORMATION
setup(
# Metadata
name='bomber',
version=get_version(),
description='Get data from the BoM in Python',
long_description=read('readme.md'),
author='Jess Robertson',
author_email='[email protected]',
url='https://stash.csiro.au/projects/POH/repos/bomber',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: Other/Proprietary License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7'
],
# Dependencies
install_requires=REQUIREMENTS,
extras_require={},
# Contents
packages=find_packages(exclude=['tests', 'docs']),
test_suite='tests',
ext_modules=[],
package_data={},
cmdclass={
'update_version': Version
}
)