This repository was archived by the owner on Aug 26, 2022. It is now read-only.
forked from Met4FoF/agentMET4FOF
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (83 loc) · 3.06 KB
/
setup.py
File metadata and controls
97 lines (83 loc) · 3.06 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# -*- coding: utf-8 -*-
"""
Install agentMET4FOF in Python path.
"""
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
# Get release version from agentMET4FOF/__init__.py
from agentMET4FOF import __version__ as VERSION
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def readme():
"""Print long description"""
with open("README.md") as f:
return f.read()
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = "Verify that the git tag matches our version"
def run(self):
tag = os.getenv("CIRCLE_TAG")
if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: " "{1}".format(
tag, VERSION
)
sys.exit(info)
setup(
name="agentMET4FOF",
version=VERSION,
description="A software package for the integration of metrological input "
"into an agent-based system for the consideration of measurement "
"uncertainty in current industrial manufacturing processes.",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/bangxiangyong/agentMET4FOF",
author=u"Bang Xiang Yong, Björn Ludwig, Anupam Prasad Vedurmudi, "
u"Maximilian Gruber, Haris Lulic",
author_email="bxy20@cam.ac.uk",
keywords="uncertainty metrology MAS agent-based agents",
packages=find_packages(exclude=["tests"]),
project_urls={
"Documentation": "https://agentmet4fof.readthedocs.io/",
"Source": "https://github.com/bangxiangyong/agentMET4FOF",
"Tracker": "https://github.com/bangxiangyong/agentMET4FOF/issues",
},
install_requires=[
"numpy",
"scipy",
"matplotlib<3.3.0", # Version 3.3 caused an error. Details you can find in
# docs/matplotlib3.3_pytest_error_log
# Actually the mpl_to_plotly feature is considered
# deprecated from version 3.3 on. See
# https://github.com/plotly/plotly.py/issues/1568
# for more details.
"pandas",
"osbrain",
"dash",
"dash_cytoscape",
"networkx",
"plotly",
"time-series-buffer",
"time-series-metadata",
"mpld3",
"mesa",
"pathos",
],
extras_require={"tutorials": ["notebook", "PyDynamic"]},
python_requires=">=3.8",
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
cmdclass={"verify": VerifyVersionCommand},
)