Commit ae9cdff3 authored by Tara Evaz Zadeh's avatar Tara Evaz Zadeh
Browse files

Merge branch 'feature/fix-setup-py' into 'master'

Included formatting for setup.py

See merge request !16
parents f8fd7b20 8041f390
Pipeline #17478 passed with stage
in 51 seconds
SOURCES=losscalculator
SOURCES=losscalculator setup.py
LENGTH=96
check: $(SOURCES)
......
# Welcome to the loss calculator!
# losscalculator
This program computes damage-state probabilities for scenario earthquakes, given a
ground-motion field, an exposure model representing the assets in the region of interest and
fragility functions that model the probability of exceeding different damage states given an
intensity measure level.
## Copyright and copyleft
Copyright (C) 2020
Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
* Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
General Public License for more details.
You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
See the [LICENSE](./LICENSE) for the full license text.
See the [LICENSE](./LICENSE) for the full license text.
......@@ -2,20 +2,22 @@
from setuptools import setup, find_packages
tests_require = ["pytest", "pytest-asyncio", "pytest-docker", "requests", "pytest-celery"]
tests_require = ["pytest"]
linters_require = ["black>=20.8b1", "pylint", "flake8"]
setup(
name="lossCalculator",
name="losscalculator",
version="0.1",
description="This program computes the probabilities of occurence of different damage states for a scenario earthquake, given a ground-motion field for the area, an exposure model representing the assets in the region of interest and fragility functions that show the probability of exceeding a set of damage states, given an intensity measure level",
description="Compute damage-state probabilities for assets in scenario earthquakes",
license="AGPLv3+",
install_requires=["pandas", "numpy", "scipy"],
extras_require={
#"tests": tests_require,
"tests": tests_require,
"linters": linters_require,
},
packages=find_packages(),
entry_points={"console_scripts": ["losscalculator = losscalculator.damage_calculator:main"]},
entry_points={
"console_scripts": ["losscalculator = losscalculator.damage_calculator:main"]
},
python_requires=">=3.6",
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment