Skip to content

Commit 7863ea5

Browse files
authored
Merge pull request #18 from aodn/package_it
Create ncwriter package
2 parents 75aaa6f + a8e649f commit 7863ea5

5 files changed

Lines changed: 55 additions & 3 deletions

File tree

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Python files
2+
*.pyc
3+
*.egg-info
4+
5+
# PyCharm settings
6+
.idea

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
- "3.5"
5+
6+
script:
7+
- python setup.py test

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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
numpy
2-
netCDF4
3-
jsonschema
1+
--index-url https://pypi.python.org/simple/
2+
-e .

setup.py

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

0 commit comments

Comments
 (0)