diff --git a/MANIFEST.in b/MANIFEST.in index 791946a..6895dd4 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 \ No newline at end of file diff --git a/setup.py b/setup.py index 2948f54..c507331 100644 --- a/setup.py +++ b/setup.py @@ -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: @@ -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' @@ -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", ] -) + ) + + diff --git a/swmmio/.DS_Store b/swmmio/.DS_Store deleted file mode 100644 index 6bc1530..0000000 Binary files a/swmmio/.DS_Store and /dev/null differ diff --git a/swmmio/tests/data/RUNOFF46_SW5.INP b/swmmio/tests/data/RUNOFF46_SW5.inp similarity index 100% rename from swmmio/tests/data/RUNOFF46_SW5.INP rename to swmmio/tests/data/RUNOFF46_SW5.inp diff --git a/swmmio/tests/data/__init__.py b/swmmio/tests/data/__init__.py index 771fa37..c8550be 100644 --- a/swmmio/tests/data/__init__.py +++ b/swmmio/tests/data/__init__.py @@ -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')