-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the repo in two to reduce runtime dependencies
- Loading branch information
Showing
75 changed files
with
254 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
max-line-length = 80 | ||
# required for compatibility with Black: | ||
extend-ignore = E203 | ||
exclude = .venv |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import partcad as pc | ||
|
||
if __name__ != "__cqgi__": | ||
from cq_server.ui import ui, show_object | ||
|
||
part = pc.get_part( | ||
# Part name | ||
"fastener/screw-buttonhead", | ||
# Package name | ||
"standard-metric-cqwarehouse", | ||
) | ||
pc.finalize(part, show_object) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[project] | ||
name = "partcad_cli" | ||
version = "0.2.20" | ||
description = "Command-line interface to PartCAD" | ||
readme = "README.md" | ||
keywords = ["cadquery", "build123d", "cad", "design", "openscad", "step", "stl"] | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE.txt"} | ||
authors = [ | ||
{name = "Roman Kuzmenko", email = "[email protected]" } | ||
] | ||
maintainers = [ | ||
{name = "Roman Kuzmenko", email = "[email protected]" } | ||
] | ||
dynamic = ["dependencies"] | ||
|
||
[tool.setuptools.package-data] | ||
"partcad_cli.template" = ["*.yaml"] | ||
|
||
[project.scripts] | ||
pc = "partcad_cli:main_cli" | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = "src" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/openvmp/partcad" | ||
Issues = "https://github.com/openvmp/partcad/issues" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
partcad==0.2.20 | ||
pycairo | ||
renderlab | ||
rlPyCairo | ||
svglib | ||
ocp_vscode | ||
progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from .cli import main as main_cli | ||
|
||
__all__ = [ | ||
"main_cli", | ||
] | ||
|
||
__version__: str = "0.2.20" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import: | ||
# Add dependencies here | ||
# <package-name>: | ||
# desc: <package description> # optional | ||
# type: <local|git|tar> | ||
# path: <relative path> # type:local only | ||
# url: <url of the package> # type:git|tar only | ||
# relPath: <relative path within the repo> # type:git|tar only | ||
# web: <package's or maintainer's url> # optional | ||
# poc: <maintainer's email> # optional | ||
partcad-index: | ||
type: git | ||
url: https://github.com/openvmp/partcad-index.git | ||
|
||
parts: | ||
# Add parts here | ||
|
||
assemblies: | ||
# Add assemblies here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[project] | ||
name = "partcad" | ||
description = "Package manager for CAD models and a modelling framework" | ||
readme = "README.md" | ||
keywords = ["cadquery", "build123d", "cad", "design", "openscad", "step", "stl"] | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE.txt"} | ||
authors = [ | ||
{name = "Roman Kuzmenko", email = "[email protected]" } | ||
] | ||
maintainers = [ | ||
{name = "Roman Kuzmenko", email = "[email protected]" } | ||
] | ||
dynamic = ["version", "dependencies"] | ||
|
||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
[tool.setuptools.package-data] | ||
"partcad.wrappers" = ["*.py"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "partcad.__version__"} | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[tool.bumpversion] | ||
current_version = "0.2.20" | ||
commit = "true" | ||
commit_args = "--no-verify" | ||
tag = "true" | ||
tag_name = "{new_version}" | ||
message = "Version updated from {current_version} to {new_version}" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = [ | ||
"src/partcad/__init__.py", | ||
"../partcad-cli/src/partcad_cli/__init__.py", | ||
"../partcad-cli/pyproject.toml", | ||
"../partcad-cli/requirements.txt" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/openvmp/partcad" | ||
Issues = "https://github.com/openvmp/partcad/issues" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
build123d>=0.2.0 | ||
cadquery>=2.3.1 | ||
numpy>=1.25.2 | ||
scipy>=1.11.1 | ||
pyyaml>=6.0.1 | ||
GitPython>=3.1.40 | ||
ruamel.yaml>=0.18.5 | ||
packaging>=23.1 | ||
setuptools | ||
jinja2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.