-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
105 lines (98 loc) · 2.94 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
100
101
102
103
104
105
import setuptools
from pathlib import Path
with open("README.md", "r") as fh:
long_description = fh.read()
def find_in_path(module, path):
def find_files(cur_path):
files = []
for path in cur_path.iterdir():
if not path.is_dir():
files.append(str(path))
else:
files += find_files(path)
return files
module_path = Path.cwd() / module / path
return find_files(module_path)
setuptools.setup(
name="odoo-tools",
version="0.1.9",
author="Loïc Faure-Lacroix <[email protected]>",
author_email="[email protected]",
description="Odoo Tools",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://odoo-tools.readthedocs.io",
project_urls={
"Source": "https://github.com/llacroix/odoo-tools",
"Documentation": "https://odoo-tools.readthedocs.io",
},
packages=setuptools.find_packages(),
install_requires=[
"giturlparse",
"toposort",
"toml",
"requests",
"packaging",
"lxml",
"docutils",
"distro",
"polib",
"six>=1.12.0",
"cryptography",
"click",
"passlib",
"ptpython",
"pip>=10.0",
"password-strength",
"psycopg2",
"overlaymodule",
],
extras_require={
"docs": [
"sphinx",
"furo",
"sphinx-argparse",
"sphinx-click",
"sphinxcontrib.asciinema",
],
"test": [
"mock",
"pytest",
"pytest-cov"
]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
entry_points={
"console_scripts": [
"odootools = odoo_tools.cli.odot:command",
],
"odootools.registry": [
"registry = odoo_tools.cli.registry:registry",
],
"odootools.command": [
"module = odoo_tools.cli.click.module:module",
"addons_paths = odoo_tools.cli.click.path:addons_paths",
"config = odoo_tools.cli.click.config:config",
"entrypoint = odoo_tools.cli.click.entrypoint:entrypoint",
"shell = odoo_tools.cli.click.shell:shell",
"manage = odoo_tools.cli.click.manage:manage",
"service = odoo_tools.cli.click.services:service",
"platform = odoo_tools.cli.click.platform:platform",
"user = odoo_tools.cli.click.users:user",
"db = odoo_tools.cli.click.db:db",
"gen = odoo_tools.cli.click.gen:gen",
]
},
package_data={
"odoo_tools": (
find_in_path('odoo_tools', 'requirements') +
find_in_path('odoo_tools', 'overlays') +
find_in_path('odoo_tools', 'packages')
)
}
)