forked from Roastero/Openroast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (64 loc) · 2.2 KB
/
setup.py
File metadata and controls
71 lines (64 loc) · 2.2 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
from pathlib import Path
import os
from setuptools import find_packages, setup
version = {}
with open("./openroast/version.py", encoding="utf-8") as fp:
exec(fp.read(), version)
here = Path(__file__).resolve().parent
def package_files(directory):
paths = []
for (base, _directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", base, filename))
return paths
setup(
name="openroast",
version=version["__version__"],
description="An open source, cross-platform application for home coffee roasting",
long_description=(here / "README.rst").read_text(encoding="utf-8"),
long_description_content_type="text/x-rst",
url="https://github.com/Roastero/Openroast",
author="Roastero",
author_email="admin@roastero.com",
license="GPLv3",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
],
python_requires=">=3.13",
keywords="sr700 coffee roasting",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
# Keep hard requirements minimal; on Raspberry Pi use distro GUI packages.
install_requires=[
"freshroastsr700>=0.2.3",
],
extras_require={
"gui": [
"PyQt5>=5.15",
"pyqtgraph>=0.13",
],
"local-hw": [
"adafruit-blinka>=8.0",
"adafruit-circuitpython-max31855>=3.2",
],
},
package_data={
"": package_files("openroast/static"),
"localroaster": ["hardware_config.json"],
},
entry_points={
"console_scripts": [
"openroast=openroast.openroastapp:main",
"localroaster-demo=localroaster.demo:main",
],
},
)