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

Added CI and setup.py

parent ac18c502
image: python:3-buster
# Make pip cache the installed dependencies
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
before_script:
- python3 -V
- pip3 install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip3 install .
# - pip3 install .[tests]
linters:
script:
- pip3 install .[linters]
- make check
#tests:
# script:
# - pytest tests
#!/usr/bin/python3
from setuptools import setup, find_packages
tests_require = ["pytest", "pytest-asyncio", "pytest-docker", "requests", "pytest-celery"]
linters_require = ["black>=20.8b1", "pylint", "flake8"]
setup(
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",
license="AGPLv3+",
install_requires=["pandas", "numpy", "scipy"],
extras_require={
#"tests": tests_require,
"linters": linters_require,
},
packages=find_packages(),
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