This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
85 lines (77 loc) · 3.03 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
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
# -*- coding: utf-8 -*-
#
# Copyright 2013-2021 European Commission (JRC);
# Licensed under the EUPL, Version 1.2 or – as soon they will be approved by the European Commission
# – subsequent versions of the EUPL (the "Licence");
#
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at: https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
"""
GEARSHIFT setup.
"""
import io
import os
import collections
import os.path as osp
import functools
from setuptools import setup, find_packages
name = "wltp-gearshift"
module_name = "gearshift"
mydir = osp.dirname(__file__)
proj_ver = "1.4.0"
def read_file(fpath):
with open(fpath) as fd:
return fd.read()
url = f"https://github.com/JRCSTU/{name}"
download_url = f"{url}/tarball/{proj_ver}"
project_urls = {
"Documentation": "https://gearshift-calculation-tool.readthedocs.io/en/latest/",
"Sources": "https://github.com/JRCSTU/gearshift_calculation_tool",
"Bug Tracker": f"{url}/issues",
"Live Demo": "https://mybinder.org/v2/gh/JRCSTU/gearshift_calculation_tool/HEAD?urlpath=lab/tree/Notebooks/GUI_binder_interface.ipynb",
}
setup(
name=name,
version=proj_ver,
packages=find_packages(exclude=["test", "test.*", "doc", "doc.*", "appveyor"]),
license="EUPL 1.1+",
author="GEARSHIFT-Team",
author_email="[email protected]",
description="Gearshift tool implement the Sub-Annex 1 and Sub-Annex 2 of the"
"COMMISSION REGULATION (EU) 2017/1151 of 1 June 2017 - Annex XXI",
long_description=read_file("README.rst"),
keywords="""GEARSHIFT WLTP vehicle automotive EU JRC IET
policy monitoring simulator
""".split(),
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 7 - Inactive",
"Natural Language :: English",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Manufacturing",
"Environment :: Console",
"License :: OSI Approved :: European Union Public Licence 1.1 " "(EUPL 1.1)",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
],
python_requires=">=3.5",
install_requires=["jrshift"],
entry_points={"console_scripts": [f"{module_name} = {module_name}.cli:cli"]},
tests_require=["nose>=1.0", "ddt"],
test_suite="nose.collector",
package_data={"gearshift": ["demos/*.xlsx", "core/load/speed_phases/*.ftr"]},
zip_safe=True,
options={"bdist_wheel": {"universal": True}},
platforms=["any"],
)