-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (27 loc) · 1.04 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python
import re
from setuptools import setup, find_packages
from codecs import open
# dill extends the pickle module by adding support also for lambdas and other special built-in Python types
requires = ["mesa", "dill"]
extras_require = {"dev": ["flake8"]}
# loading the version from the init file is taken over from mesa setup.py
with open("mesa_replay/__init__.py") as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE
).group(1)
with open("README.md", "rb", encoding="utf-8") as f:
readme = f.read()
setup(
name="mesa-replay",
version=version,
description="Enables caching simulations of mesa models, persisting them on the file system and replaying them "
"later.",
long_description=readme,
url="https://github.com/Logende/mesa-replay",
packages=find_packages(),
install_requires=requires,
extras_require=extras_require,
keywords="agent based modeling model ABM simulation multi-agent mesa cache replay caching",
license="Apache 2.0",
)