Skip to content

Commit ff40505

Browse files
committed
WIP: create setup.py, version.py and update requirements
1 parent 75aaa6f commit ff40505

3 files changed

Lines changed: 41 additions & 2 deletions

File tree

ncwriter/version.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Contains the current version tag, stored in the module level variable '__version__'.
2+
Updated automatically by the build server
3+
"""
4+
5+
__version__ = '0.0.1'

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
numpy
1+
numpy>=1.13.0
22
netCDF4
3-
jsonschema
3+
jsonschema==2.6.0

setup.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from setuptools import setup, find_packages
2+
3+
from ncwriter.version import __version__
4+
5+
INSTALL_REQUIRES = [line.strip() for line in open('requirements.txt')]
6+
# INSTALL_REQUIRES = [
7+
# 'jsonschema==2.6.0',
8+
# 'numpy>=1.13.0',
9+
# 'netCDF4'
10+
# ]
11+
12+
# TODO: add this when we have JSON schema files and templates bundled
13+
# PACKAGE_DATA = {
14+
# 'ncwriter': [
15+
# ]
16+
# }
17+
18+
PACKAGE_EXCLUDES = ['test_ncwrwiter.*', 'test_ncwriter']
19+
PACKAGE_NAME = 'ncwriter'
20+
21+
setup(
22+
name=PACKAGE_NAME,
23+
version=__version__,
24+
packages=find_packages(exclude=PACKAGE_EXCLUDES),
25+
# package_data=PACKAGE_DATA,
26+
url='https://github.com/aodn',
27+
license='GPLv3',
28+
author='AODN',
29+
author_email='projectofficers@emii.org.au',
30+
description='AODN netCDF tools library',
31+
zip_safe=False,
32+
install_requires=INSTALL_REQUIRES,
33+
test_suite='test_ncwriter'
34+
)

0 commit comments

Comments
 (0)