Skip to content

Commit d3185ab

Browse files
committed
upgrade to python 3.10
1 parent fd4d6ad commit d3185ab

File tree

5 files changed

+134
-6
lines changed

5 files changed

+134
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
12-
python: ["3.11", "3.10", "3.9", "3.8", "3.7", "3.6", "3.5"]
12+
python: ["3.10", "3.9", "3.8", "3.7", "3.6", "3.5"]
1313
steps:
1414
- uses: actions/checkout@v2
1515
with:

Pipfile.lock

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Python-OpenCTM
55

66
Python-OpenCTM is a Python interface for the [OpenCTM](https://github.com/Danny02/OpenCTM) file format. A format that allows a geometry to be compressed to a fraction of comparable file formats (3DS, STL, COLLADA...).
77

8-
Pre-built python (**3.5**-**3.8**) wheels available for **Linux**, **MacOS** and **Windows**
8+
Pre-built python (**3.5**-**3.10**) wheels available for **Linux**, **MacOS** and **Windows**
99

1010
## Installation
1111

openctm/io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ def import_mesh(_filename):
2929
vertex_ctm = ctmGetFloatArray(ctm_context, CTM_VERTICES)
3030

3131
vertices = np.fromiter(vertex_ctm,
32-
dtype=np.float,
32+
dtype=float,
3333
count=vertex_count * 3).reshape((-1, 3))
3434

3535
# read faces
3636
face_count = ctmGetInteger(ctm_context, CTM_TRIANGLE_COUNT)
3737
face_ctm = ctmGetIntegerArray(ctm_context, CTM_INDICES)
38-
faces = np.fromiter(face_ctm, dtype=np.int,
38+
faces = np.fromiter(face_ctm, dtype=int,
3939
count=face_count * 3).reshape((-1, 3))
4040

4141
# read face normals
4242
normals = None
4343
if ctmGetInteger(ctm_context, CTM_HAS_NORMALS) == CTM_TRUE:
4444
normals_ctm = ctmGetFloatArray(ctm_context, CTM_NORMALS)
4545
normals = np.fromiter(normals_ctm,
46-
dtype=np.float,
46+
dtype=float,
4747
count=face_count * 3).reshape((-1, 3))
4848
finally:
4949
ctmFreeContext(ctm_context)

openctm/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.11'
1+
__version__ = '1.0.12'

0 commit comments

Comments
 (0)