generated from pypa/sampleproject
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
99 lines (84 loc) · 2.86 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
import pathlib
import re
from glob import glob
from setuptools import setup, find_packages
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / "README.md").read_text(encoding="utf-8")
# Strip the build status as this only makes sense on github
long_description = re.sub(r'\[!\[Build status.*\)\n\n', '', long_description)
setup(
name="openinverter-can-tool",
version="0.2.3",
description="Tool to configure and operate openinverter systems over CAN",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/davefiddes/openinverter-can-tool",
author="David J. Fiddes",
author_email="[email protected]",
# For a list of valid classifiers, see https://pypi.org/classifiers/
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
],
keywords="openinverter, canopen",
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.8, <4",
install_requires=[
"click",
"canopen",
"appdirs",
"python-can",
"cantools"],
extras_require={
"dev": [
"check-manifest",
"flake8",
"pre-commit"
],
"test": [
"coverage",
"pytest",
"approvaltests",
"pytest-approvaltests",
"pytest-cov"
],
},
# No data files are expected within the package
package_data={},
# Pull in all our example parameter databases and documentation
data_files=[("parameter-databases",
glob("parameter-databases/*.json")),
("docs",
glob("docs/*.md") + glob("docs/*.png"))],
# The main command-line tool
entry_points={
"console_scripts": [
"oic=openinverter_can_tool.__main__:cli"
],
},
project_urls={
"Bug Reports":
"https://github.com/davefiddes/openinverter-can-tool/issues",
"Source":
"https://github.com/davefiddes/openinverter-can-tool",
},
)