Skip to content

Commit

Permalink
add test data to package dist, update setup for new pypi settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aerispaha committed Jun 18, 2019
1 parent 4971076 commit 6f7f324
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 22 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ include lib/linux/swmm5
include swmmio/reporting/basemaps/*.html
include swmmio/graphics/fonts/*.ttf
include swmmio/defs/*.json
include swmmio/tests/data/*.inp
include swmmio/tests/data/*.rpt
include swmmio/tests/data/*.csv
51 changes: 30 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

HERE = os.path.abspath(os.path.dirname(__file__))


def get_version(module='swmmio'):
"""Get version."""
with open(os.path.join(HERE, module, '__init__.py'), 'r') as f:
Expand All @@ -19,8 +20,12 @@ def get_version(module='swmmio'):
break
return version

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

def get_description():
"""Get long description."""
with open(os.path.join(HERE, 'README.md'), 'r') as f:
data = f.read()
return data


AUTHOR_NAME = 'Adam Erispaha'
Expand All @@ -32,32 +37,36 @@ def read(fname):
'pandas',
'pyshp',
'geojson',
]
]

tests_require = [
'pytest',
]

setup(name = 'swmmio',
version = get_version(),
description = 'Tools for reading, writing, visualizing, and versioning EPA SWMM5 models.',
author = AUTHOR_NAME,
url = 'https://github.com/aerispaha/swmmio',
author_email = AUTHOR_EMAIL,
packages = find_packages(exclude = ('tests')),
entry_points = {
"console_scripts": ['swmmio_run = swmmio.run_models.run:run_simple']
},
install_requires = install_requires,
tests_require = tests_require,
long_description = read('README.rst'),
include_package_data = True,
platforms = "OS Independent",
license = "MIT License",
classifiers = [
setup(name='swmmio',
version=get_version(),
description='Tools for interacting with, editing, and visualizing EPA SWMM5 models',
author=AUTHOR_NAME,
url='https://github.com/aerispaha/swmmio',
author_email=AUTHOR_EMAIL,
packages=find_packages(exclude=('tests')),
entry_points={
"console_scripts": ['swmmio_run = swmmio.run_models.run:run_simple']
},
install_requires=install_requires,
tests_require=tests_require,
long_description=get_description(),
long_description_content_type="text/markdown",
include_package_data=True,
platforms="OS Independent",
license="MIT License",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
]
)
)


Binary file removed swmmio/.DS_Store
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion swmmio/tests/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
MODEL_FULL_FEATURES__NET_PATH = os.path.join(
DATA_PATH, 'model_full_features_network.inp')
MODEL_FULL_FEATURES_INVALID = os.path.join(DATA_PATH, 'invalid_model.inp')
MODEL_BROWARD_COUNTY_PATH = os.path.join(DATA_PATH, 'RUNOFF46_SW5.INP')
MODEL_BROWARD_COUNTY_PATH = os.path.join(DATA_PATH, 'RUNOFF46_SW5.inp')

# version control test models
MODEL_XSECTION_BASELINE = os.path.join(DATA_PATH, 'baseline_test.inp')
Expand Down

0 comments on commit 6f7f324

Please sign in to comment.