Skip to content

Commit 51cb2f7

Browse files
authored
Merge pull request #6 from austinorr/v0.1.2
update to 0.1.2
2 parents 056052e + b9754ac commit 51cb2f7

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ before_install:
4242
install:
4343
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION numpy pandas
4444
- source activate test
45-
- conda install --yes --channel=conda-forge ${TESTERS} networkx=1.11
45+
- conda install --yes --channel=conda-forge ${TESTERS} networkx>=1.11
4646
- pip install codecov
4747
- pip install git+https://github.com/lucashtnguyen/hymo.git
4848
- pip install .

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- networkx=1.11=py35_0
6+
- networkx=2.0=py35_0
77
- numpy=1.13.1=py35_0
88
- pandas=0.20.3=py35_0
99
- python=3.5.4=0

setup.py

+23-13
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,39 @@
22
# -*- coding: utf-8 -*-
33

44
"""The setup script."""
5-
5+
import io
6+
import os
67
from setuptools import setup, find_packages
78

9+
10+
def get_pkg_info(info_file, info):
11+
val = ""
12+
info_file.seek(0)
13+
for line in info_file:
14+
if line.startswith('__{}__'.format(info)):
15+
val = line.split("=")[1].replace("'", "").replace('"', "").strip()
16+
return val
17+
18+
with open(os.path.join('swmmnetwork', '__init__.py')) as init_file:
19+
author = get_pkg_info(init_file, 'author')
20+
email = get_pkg_info(init_file, 'email')
21+
version = get_pkg_info(init_file, 'version')
22+
23+
824
with open('README.rst') as readme_file:
925
readme = readme_file.read()
1026

1127
with open('HISTORY.rst') as history_file:
1228
history = history_file.read()
1329

1430
requirements = [
15-
# TODO: put package requirements here
16-
]
17-
18-
setup_requirements = [
19-
'pytest-runner',
20-
# TODO(austinorr): put setup requirements (distutils extensions, etc.) here
31+
'networkx>=1.11,<2',
32+
'pandas',
33+
'numpy',
2134
]
2235

2336
test_requirements = [
2437
'pytest',
25-
# TODO: put package test requirements here
2638
]
2739

2840
package_data = {
@@ -31,19 +43,18 @@
3143

3244
setup(
3345
name='swmmnetwork',
34-
version='0.1.1',
46+
author=author,
47+
author_email=email,
48+
version=version,
3549
description="SWMMNetwork helps users of EPA SWMM 5.1 perform water quality and load reduction calculations. ",
3650
long_description=readme + '\n\n' + history,
37-
author="Austin Orr",
38-
author_email='[email protected]',
3951
url='https://github.com/austinorr/swmmnetwork',
4052
packages=find_packages(),
4153
package_data=package_data,
4254
include_package_data=True,
4355
install_requires=requirements,
4456
license="BSD license",
4557
zip_safe=False,
46-
py_modules=['swmmnetwork'],
4758
keywords='swmmnetwork',
4859
classifiers=[
4960
'Development Status :: 2 - Pre-Alpha',
@@ -60,5 +71,4 @@
6071
],
6172
test_suite='tests',
6273
tests_require=test_requirements,
63-
setup_requires=setup_requirements,
6474
)

swmmnetwork/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
__author__ = 'Austin Orr'
66
__email__ = '[email protected]'
7-
__version__ = '0.1.1'
7+
__version__ = '0.1.2'
88

99
from .swmmnetwork import SwmmNetwork, sum_edge_attr
1010
from .scenario import ScenarioHydro, ScenarioLoading

0 commit comments

Comments
 (0)