Skip to content

Commit a5dcac1

Browse files
committed
pythonocc update, pyproject
1 parent 00fbff3 commit a5dcac1

File tree

4 files changed

+53
-63
lines changed

4 files changed

+53
-63
lines changed

bladex/blade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ def generate_solid(self,
960960
sewer.Perform()
961961
result_shell = sewer.SewedShape()
962962
solid_maker = BRepBuilderAPI_MakeSolid()
963-
solid_maker.Add(OCC.Core.TopoDS.topods_Shell(result_shell))
963+
solid_maker.Add(OCC.Core.TopoDS.topods.Shell(result_shell))
964964
if not solid_maker.IsDone():
965965
raise RuntimeError('Unsuccessful assembling of solid blade')
966966
result_solid = solid_maker.Solid()

bladex/shaft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def generate_solid(self):
4444
sewer.Perform()
4545
result_sewed_shaft = sewer.SewedShape()
4646
shaft_solid_maker = BRepBuilderAPI_MakeSolid()
47-
shaft_solid_maker.Add(OCC.Core.TopoDS.topods_Shell(result_sewed_shaft))
47+
shaft_solid_maker.Add(OCC.Core.TopoDS.topods.Shell(result_sewed_shaft))
4848
if not shaft_solid_maker.IsDone():
4949
raise RuntimeError('Unsuccessful assembling of solid shaft')
5050
shaft_solid = shaft_solid_maker.Solid()

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>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "BladeX"
7+
version = "0.1.0"
8+
description = "Python Blade Morphing"
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
requires-python = ">=3.9"
11+
license = { text = "MIT" }
12+
authors = [
13+
{ name = "Marco Tezzele", email = "[email protected]" },
14+
{ name = "Mahmoud Gadalla", email = "[email protected]" }
15+
]
16+
keywords = ["blade-generation", "propeller", "iges", "procal"]
17+
classifiers = [
18+
"Development Status :: 5 - Production/Stable",
19+
"License :: OSI Approved :: MIT License",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Intended Audience :: Science/Research",
25+
"Topic :: Scientific/Engineering :: Mathematics"
26+
]
27+
dependencies = [
28+
"numpy",
29+
"scipy",
30+
"matplotlib",
31+
]
32+
33+
[project.optional-dependencies]
34+
docs = [
35+
"Sphinx",
36+
"sphinx_rtd_theme"
37+
]
38+
test = [
39+
"pytest",
40+
"pytest-cov"
41+
]
42+
43+
[project.urls]
44+
Homepage = "https://github.com/mathLab/BladeX"
45+
46+
[tool.setuptools]
47+
include-package-data = true
48+
49+
[tool.setuptools.packages.find]
50+
include = ["bladex*"]
51+

setup.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)