-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·78 lines (74 loc) · 2.6 KB
/
setup.py
File metadata and controls
executable file
·78 lines (74 loc) · 2.6 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
72
73
74
75
76
77
78
#!/usr/bin/env python
# Solid Node - A framework for mechanical CAD projects
# Copyright (C) 2023-2026 Luis Henrique Cassis Fagundes
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""The setup script."""
import subprocess
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist
class DistWithFrontend(sdist):
# Build the web application inside the python library
def run(self):
viewer_dir = 'solid_node/viewers/web/app/'
subprocess.check_call(['npm', 'install'], cwd=viewer_dir)
subprocess.check_call(['npm', 'run', 'build'], cwd=viewer_dir)
sdist.run(self)
setup(
author="Luis Fagundes",
author_email='lhfagundes@gmail.com',
version='0.3.0',
python_requires='>=3.8',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
description="A framework to develop and manage mechanical projects in Python",
entry_points={
'console_scripts': [
'solid=solid_node.cli:manage',
],
},
install_requires=[
"watchdog",
"trimesh==4.4.*",
"solidpython2==2.1.*",
"cadquery==2.5.*",
"httpx==0.27.*",
"fastapi==0.111.*",
"termcolor==2.4.*",
"asgiref==3.8.*",
"uvicorn==0.30.*",
"numpy==2.2.*",
"manifold3d",
],
license="GNU Affero General Public License v3",
include_package_data=True,
keywords='solid_node',
name='solid_node',
packages=find_packages(include=['solid_node', 'solid_node.*']),
test_suite='tests',
tests_require=['pytest>=3'],
url='https://github.com/lfagundes/solid_node',
cmdclass={
'sdist': DistWithFrontend,
},
zip_safe=False,
)