Skip to content

Commit 0232d0a

Browse files
authored
Merge pull request #475 from CadQuery/pypi
Adding pyproject.toml
2 parents d746c8e + 02a7343 commit 0232d0a

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

cq_editor/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.0dev"
1+
__version__ = "0.3.0"

cq_editor/cqe_run.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os, sys, asyncio
2+
3+
if 'CASROOT' in os.environ:
4+
del os.environ['CASROOT']
5+
6+
if sys.platform == 'win32':
7+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
8+
9+
from cq_editor.__main__ import main
10+
11+
12+
if __name__ == '__main__':
13+
main()

cq_editor/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def prepare_console(self):
289289
def fill_dummy(self):
290290

291291
self.components['editor']\
292-
.set_text('import cadquery as cq\nresult = cq.Workplane("XY" ).box(3, 3, 0.5).edges("|Z").fillet(0.125)')
292+
.set_text('import cadquery as cq\nresult = cq.Workplane("XY" ).box(3, 3, 0.5).edges("|Z").fillet(0.125)\nshow_object(result)')
293293

294294
def setup_logging(self):
295295

pyproject.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "CQ-editor"
7+
version = "0.3.0"
8+
dependencies = [
9+
"cadquery",
10+
"pyqtgraph",
11+
"spyder==5",
12+
"path",
13+
"logbook",
14+
"requests",
15+
"qtconsole==5.4.1"
16+
]
17+
requires-python = ">=3.9,<3.13"
18+
authors = [
19+
{ name="CadQuery Developers" }
20+
]
21+
maintainers = [
22+
{ name="CadQuery Developers" }
23+
]
24+
description = "CadQuery plugin to create a mesh of an assembly with corresponding data"
25+
readme = "README.md"
26+
license = {file = "LICENSE"}
27+
keywords = ["cadquery", "CAD", "engineering", "design"]
28+
classifiers = [
29+
"Development Status :: 4 - Beta",
30+
"Programming Language :: Python"
31+
]
32+
33+
[project.scripts]
34+
CQ-editor = "cq_editor.cqe_run:main"
35+
36+
[project.optional-dependencies]
37+
test = [
38+
"pytest",
39+
"pluggy",
40+
"pytest-qt",
41+
"pytest-mock",
42+
"pytest-repeat",
43+
"pyvirtualdisplay"
44+
]
45+
dev = [
46+
"black",
47+
]
48+
49+
[project.urls]
50+
Repository = "https://github.com/CadQuery/CQ-editor.git"
51+
"Bug Tracker" = "https://github.com/CadQuery/CQ-editor/issues"

0 commit comments

Comments
 (0)