forked from ociu/sphinx-traceability-extension
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
75 lines (70 loc) · 2.52 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
# -*- coding: utf-8 -*-
from css_html_js_minify import process_single_js_file
from setuptools import setup, find_namespace_packages
from setuptools_scm import get_version
version = get_version()
project_url = 'https://github.com/melexis/sphinx-traceability-extension'
requires = [
'Sphinx>=2.4.5,<9.0',
'sphinxcontrib-jquery>=2.0.0,!=3.0.0',
'docutils',
'matplotlib<4.0',
'natsort',
'python-decouple',
'requests',
]
js_file_path = 'mlx/traceability/assets/traceability.js'
process_single_js_file(js_file_path, output_path=js_file_path.replace('.js', f'-{version}.min.js'))
setup(
name='mlx.traceability',
url=project_url,
license='GNU General Public License v3 (GPLv3)',
author='Melexis',
author_email='[email protected]',
description='Sphinx traceability extension (Melexis fork)',
long_description=open("README.md").read(),
long_description_content_type='text/markdown',
project_urls={
'Documentation': 'https://melexis.github.io/sphinx-traceability-extension',
'Source': 'https://github.com/melexis/sphinx-traceability-extension',
'Tracker': 'https://github.com/melexis/sphinx-traceability-extension/issues',
},
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Framework :: Sphinx :: Extension',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'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',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
'Topic :: Utilities',
],
platforms='any',
packages=find_namespace_packages(where=".", exclude=("doc.*", "doc", "tests.*", "tests", "build*")),
package_dir={"": "."},
python_requires='>=3.8',
include_package_data=True,
install_requires=requires,
keywords=[
'traceability',
'requirements engineering',
'requirements management',
'software engineering',
'systems engineering',
'sphinx',
'requirements',
'ASPICE',
'ISO26262',
'ASIL',
],
package_data={'mlx.traceability': ['assets/traceability-*.js']},
)