-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
49 lines (45 loc) · 1.64 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
from setuptools import find_packages
from setuptools import setup
plugin_name = "OctoPrint-MetadataPreprocessor"
plugin_description = "Read metadata block from gcode files to speed up the analyzing process."
plugin_version = "dev"
plugin_author = "Sven Lohrmann"
plugin_author_email = "[email protected]"
plugin_url = "https://github.com/malnvenshorn/octoprint-metadatapreprocessor"
plugin_license = "AGPLv3"
plugin_identifier = "metadatapreprocessor"
plugin_package = "octoprint_metadatapreprocessor"
plugin_source_folder = "src"
plugin_requires = [
"OctoPrint",
]
plugin_extras_require = {
"develop": {
"flake8 >= 4.0",
},
}
setup(
name=plugin_name,
version=plugin_version,
description=plugin_description,
author=plugin_author,
author_email=plugin_author_email,
url=plugin_url,
license=plugin_license,
# List of our packages
packages=find_packages(where=plugin_source_folder),
# Map package to directory names
package_dir={"": plugin_source_folder},
# Include additional data files that are specified in the MANIFEST.in file
include_package_data=True,
# We have package data that needs to be accessible on the file system, such as templates or static assets
# therefore this plugin is not zip_safe.
zip_safe=False,
install_requires=plugin_requires,
extras_require=plugin_extras_require,
# Hook the plugin into the "octoprint.plugin" entry point, mapping the plugin_identifier to the plugin_package.
# That way OctoPrint will be able to find the plugin and load it.
entry_points={
"octoprint.plugin": [f"{plugin_identifier} = {plugin_package}"],
},
)