Skip to content

Commit e62c526

Browse files
authored
Merge pull request #2038 from mikedh/release-candidate
Release: 4.0.0
2 parents a2f89a6 + 03bdeea commit e62c526

271 files changed

Lines changed: 16343 additions & 14469 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- release-candidate
78

89
jobs:
910
formatting:
@@ -26,13 +27,10 @@ jobs:
2627
runs-on: ${{ matrix.os }}
2728
strategy:
2829
matrix:
29-
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", "3.11"]
30-
os: [ubuntu-20.04, macos-latest, windows-latest]
30+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
31+
os: [ubuntu-latest, macos-latest, windows-latest]
3132
exclude:
32-
# windows runners have gotten very flaky
33-
# exclude all windows test runs except for one
34-
- os: windows-latest
35-
python-version: 3.6
33+
# windows runners have gotten flaky
3634
- os: windows-latest
3735
python-version: 3.8
3836
- os: windows-latest
@@ -63,7 +61,7 @@ jobs:
6361
- name: Set up Python
6462
uses: actions/setup-python@v4
6563
with:
66-
python-version: '3.x'
64+
python-version: '3.11'
6765
- name: Install publishing dependencies
6866
run: |
6967
python -m pip install --upgrade pip

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ jobs:
1515
uses: actions/setup-python@v4
1616
with:
1717
python-version: "3.11"
18-
- name: Install Formatting
19-
run: pip install ruff
20-
- name: Check Formatting
18+
- name: Install
19+
run: pip install ruff black
20+
- name: Run Ruff
2121
run: ruff .
22+
# - name: Run Black
23+
# run: black --check .
24+
2225
tests:
2326
name: Run Unit Tests
2427
runs-on: ${{ matrix.os }}
2528
strategy:
2629
matrix:
27-
python-version: ["3.11"]
30+
python-version: ["3.7", "3.11"]
2831
os: [ubuntu-latest, windows-latest, macos-latest]
2932
steps:
3033
- uses: actions/checkout@v3
@@ -60,10 +63,10 @@ jobs:
6063
with:
6164
path: ~/.trimesh-cache
6265
key: trimesh-cache
63-
- name: Set up Python 3.10
66+
- name: Set up Python 3.11
6467
uses: actions/setup-python@v4
6568
with:
66-
python-version: "3.10"
69+
python-version: "3.11"
6770
- name: Install Trimesh
6871
run: pip install .[easy,test]
6972
- name: Run Corpus Check

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ RUN trimesh-setup --install build
2121

2222
# copy in essential files
2323
COPY --chown=499 trimesh/ /home/user/trimesh
24-
COPY --chown=499 setup.py /home/user/
24+
COPY --chown=499 pyproject.toml /home/user/
2525

2626
# switch to non-root user
2727
USER user
2828

2929
# install trimesh into .local
3030
# then delete any included test directories
3131
# and remove Cython after all the building is complete
32-
RUN pip install /home/user[all] && \
33-
find /home/user/.local -type d -name tests -prune -exec rm -rf {} \; && \
34-
pip uninstall -y cython
32+
RUN pip install --user /home/user[easy] && \
33+
find /home/user/.local -type d -name tests -prune -exec rm -rf {} \;
3534

3635
####################################
3736
### Build output image most things should run on
@@ -58,7 +57,6 @@ FROM output AS tests
5857
COPY --chown=499 tests ./tests/
5958
COPY --chown=499 trimesh ./trimesh/
6059
COPY --chown=499 models ./models/
61-
COPY --chown=499 setup.py .
6260
COPY --chown=499 pyproject.toml .
6361

6462
# codecov looks at the git history
@@ -69,7 +67,11 @@ RUN trimesh-setup --install=test,gltf_validator,llvmpipe,binvox
6967
USER user
7068

7169
# install things like pytest
72-
RUN pip install -e .[all,easy,recommends,test]
70+
RUN pip install -e .[all]
71+
72+
# check formatting
73+
RUN ruff trimesh
74+
RUN black --check trimesh
7375

7476
# run pytest wrapped with xvfb for simple viewer tests
7577
RUN xvfb-run pytest --cov=trimesh \
@@ -103,7 +105,7 @@ RUN make
103105

104106
### Copy just the docs so we can output them
105107
FROM scratch as docs
106-
COPY --from=build_docs /home/user/docs/_build/html/ ./
108+
COPY --from=build_docs /home/user/docs/built/html/ ./
107109

108110
### Make sure the output stage is the last stage so a simple
109111
# "docker build ." still outputs an expected image

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Michael Dawson-Haggerty
3+
Copyright (c) 2023 Michael Dawson-Haggerty
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MANIFEST.in

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

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
[![trimesh](https://trimsh.org/images/logotype-a.svg)](http://trimsh.org)
1+
[![trimesh](https://trimesh.org/images/logotype-a.svg)](http://trimesh.org)
22

33
-----------
4-
[![Github Actions](https://github.com/mikedh/trimesh/workflows/Release%20Trimesh/badge.svg)](https://github.com/mikedh/trimesh/actions) [![PyPI version](https://badge.fury.io/py/trimesh.svg)](https://badge.fury.io/py/trimesh) [![codecov](https://codecov.io/gh/mikedh/trimesh/branch/main/graph/badge.svg?token=4PVRQXyl2h)](https://codecov.io/gh/mikedh/trimesh) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/trimesh/trimesh?label=docker&sort=semver)](https://hub.docker.com/r/trimesh/trimesh/tags)
4+
[![Github Actions](https://github.com/mikedh/trimesh/workflows/Release%20Trimesh/badge.svg)](https://github.com/mikedh/trimesh/actions) [![codecov](https://codecov.io/gh/mikedh/trimesh/branch/main/graph/badge.svg?token=4PVRQXyl2h)](https://codecov.io/gh/mikedh/trimesh) [![Docker Image Version (latest by date)](https://img.shields.io/docker/v/trimesh/trimesh?label=docker&sort=semver)](https://hub.docker.com/r/trimesh/trimesh/tags) [![PyPI version](https://badge.fury.io/py/trimesh.svg)](https://badge.fury.io/py/trimesh)
55

66

7-
8-
Trimesh is a pure Python (2.7-3.5+) library for loading and using [triangular meshes](https://en.wikipedia.org/wiki/Triangle_mesh) with an emphasis on watertight surfaces. The goal of the library is to provide a full featured and well tested Trimesh object which allows for easy manipulation and analysis, in the style of the Polygon object in the [Shapely library](https://github.com/Toblerity/Shapely).
7+
Trimesh is a pure Python 3.7+ library for loading and using [triangular meshes](https://en.wikipedia.org/wiki/Triangle_mesh) with an emphasis on watertight surfaces. The goal of the library is to provide a full featured and well tested Trimesh object which allows for easy manipulation and analysis, in the style of the Polygon object in the [Shapely library](https://github.com/Toblerity/Shapely).
98

109
The API is mostly stable, but this should not be relied on and is not guaranteed: install a specific version if you plan on deploying something using trimesh.
1110

codecov.yml

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

0 commit comments

Comments
 (0)