-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.7 KB
/
setup.py
File metadata and controls
56 lines (50 loc) · 1.7 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
# -*- coding: utf-8 -*-
import importlib
import importlib.util
import os
import setuptools
"""This file is used to package the InvenTreeForecasting plugin.
- It was generated by the InvenTree Plugin Creator tool - version 1.3.0
- Ref: https://github.com/inventree/plugin_creator
"""
"""Read the plugin version from the source code."""
module_path = os.path.join(
os.path.dirname(__file__), "inventree_forecasting", "__init__.py"
)
spec = importlib.util.spec_from_file_location("inventree_forecasting", module_path)
inventree_forecasting = importlib.util.module_from_spec(spec)
spec.loader.exec_module(inventree_forecasting)
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setuptools.setup(
name="inventree-stock-forecasting",
version=inventree_forecasting.PLUGIN_VERSION,
author="Oliver Walters",
author_email="oliver.henry.walters@gmail.com",
description="Stock forecasting for InvenTree based on scheduled orders",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/inventree/inventree-stock-forecasting",
license="MIT",
packages=setuptools.find_packages(),
keywords="inventree plugin",
include_package_data=True,
install_requires=[
# Enter your plugin library dependencies here
],
setup_requires=[
"wheel",
"twine",
],
python_requires=">=3.9",
entry_points={
"inventree_plugins": [
"InvenTreeForecasting = inventree_forecasting.core:InvenTreeForecasting"
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Framework :: InvenTree",
],
)