-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
188 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% set name = "pyincore" %} | ||
{% set version = "1.9.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
path: .. | ||
|
||
about: | ||
home: https://incore.ncsa.illinois.edu | ||
license: MPL-2.0 | ||
summary: 'Python library for IN-CORE (Interdependent Networked Community Resilience Modeling Environment)' | ||
description: 'pyIncore is a component of IN-CORE. It is a python package consisting of two primary components: | ||
1) a set of service classes to interact with the IN-CORE web services, and 2) IN-CORE analyses. The pyIncore | ||
package allows users to apply various hazards to infrastructure in selected areas, propagating the effect of | ||
physical infrastructure damage and loss of functionality to social and economic impacts.' | ||
dev_url: https://github.com/IN-CORE/pyincore | ||
doc_url: https://incore.ncsa.illinois.edu/doc/incore | ||
|
||
build: | ||
# If this is a new build for the same version, increment the build | ||
# number. If you do not include this key, it defaults to 0. | ||
#number: 1 | ||
noarch: python | ||
script: "{{ PYTHON }} -m pip install --no-deps --ignore-installed -vv . " # verbose | ||
|
||
requirements: | ||
build: | ||
- python>=3.9 | ||
- pip | ||
- numpy>=1.26.0,<2.0a0 | ||
|
||
host: | ||
- python>=3.9 | ||
- pip | ||
- numpy>=1.26.0,<2.0a0 | ||
|
||
run: | ||
- python>=3.9 | ||
- ipopt>=3.11 | ||
- scip>=8.0.0 | ||
- {{ pin_compatible('numpy') }} | ||
- fiona>=1.9.5 | ||
- geopandas>=0.14.0 | ||
- matplotlib>=3.8.0 | ||
- networkx>=3.2.1 | ||
- pandas>=2.1.2 | ||
- pyomo>=6.6.2 | ||
- pyproj>=3.6.1 | ||
- rasterio>=1.3.9 | ||
- requests>=2.31.0 | ||
- rtree>=1.1.0 | ||
- scipy>=1.11.3 | ||
- shapely>=2.0.2 | ||
|
||
test: | ||
# Python imports | ||
imports: | ||
- pyincore | ||
|
||
requires: | ||
# Put any additional test requirements here. For example | ||
- pytest>=3.9.0 | ||
- pycodestyle>=2.6.0 | ||
- python-jose>=3.0 | ||
|
||
commands: | ||
# You can put built-in test commands to be run here. Use this to test that the entry points work. | ||
python -c "import pyincore; print('SUCCESS')" #; pyincore.test_client()" | ||
# You can also put a file called run_test.py in the recipe that will be run at test time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ pandas | |
pyomo | ||
pyproj | ||
rasterio | ||
requests | ||
rtree | ||
scipy | ||
shapely | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# Copyright (c) 2019 University of Illinois and others. All rights reserved. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Mozilla Public License v2.0 which accompanies this distribution, | ||
# and is available at https://www.mozilla.org/en-US/MPL/2.0/ | ||
|
||
from setuptools import setup, find_packages | ||
|
||
# version number of pyincore | ||
version = '1.17.0' | ||
|
||
with open("README.rst", encoding="utf-8") as f: | ||
readme = f.read() | ||
|
||
setup( | ||
name='pyincore', | ||
version=version, | ||
description='IN-CORE analysis tool python package', | ||
long_description=readme, | ||
long_description_content_type='text/x-rst', | ||
|
||
url='https://incore.ncsa.illinois.edu', | ||
|
||
license="Mozilla Public License v2.0", | ||
|
||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering" | ||
], | ||
|
||
keywords=[ | ||
"infrastructure", | ||
"resilience", | ||
"hazards", | ||
"data discovery", | ||
"IN-CORE", | ||
"earthquake", | ||
"tsunami", | ||
"tornado", | ||
"hurricane", | ||
"dislocation" | ||
], | ||
|
||
packages=find_packages(where=".", exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), | ||
include_package_data=True, | ||
package_data={ | ||
'': ['*.ini'] | ||
}, | ||
|
||
python_requires=">=3.9", | ||
|
||
install_requires=[ | ||
'fiona>=1.9.5', | ||
'geopandas>=0.14.0', | ||
'matplotlib>=3.8.0', | ||
'networkx>=3.2.1', | ||
'numpy>=1.26.0,<2.0a0', | ||
'pandas>=2.1.2', | ||
'pyomo>=6.6.2', | ||
'pyproj>=3.6.1', | ||
'rasterio>=1.3.9', | ||
'rtree>=1.1.0', | ||
'scipy>=1.11.3', | ||
'shapely>=2.0.2', | ||
'openssl<=3.2.0' | ||
], | ||
|
||
extras_require={ | ||
'test': [ | ||
'pycodestyle>=2.6.0', | ||
'pytest>=3.9.0', | ||
'python-jose>=3.0', | ||
] | ||
}, | ||
|
||
project_urls={ | ||
'Bug Reports': 'https://github.com/IN-CORE/pyincore/issues', | ||
'Source': 'https://github.com/IN-CORE/pyincore', | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters