Skip to content

Commit c02d004

Browse files
authored
pep 518 compliant (#68)
1 parent 98e9246 commit c02d004

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.github/workflows/build-wheels.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ jobs:
1818
- uses: actions/checkout@v2
1919

2020
- name: Build wheels
21-
uses: pypa/cibuildwheel@v2.3.0
21+
uses: pypa/cibuildwheel@v2.11.2
2222
env:
2323
# From rio-color here:
2424
# https://github.com/mapbox/rio-color/blob/0ab59ad8e2db99ad1d0c8bd8c2e4cf8d0c3114cf/appveyor.yml#L3
2525
CIBW_SKIP: "cp2* cp35* pp* *-win32 *-manylinux_i686"
26-
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
27-
CIBW_BEFORE_BUILD: python -m pip install oldest-supported-numpy Cython
26+
CIBW_ARCHS_MACOS: x86_64 arm64
2827

2928
- uses: actions/upload-artifact@v2
3029
with:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
language_version: python3
2424

2525
- repo: https://github.com/psf/black
26-
rev: 21.7b0
26+
rev: 22.10.0
2727
hooks:
2828
- id: black
2929
args:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.4.3] - 2022-11-18
4+
5+
- PEP 518-compliant with `pyproject.toml` and `build-system`
6+
37
## [0.4.2] - 2021-12-05
48

59
- Build wheels for Python 3.10

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "cython>=0.29.29", "oldest-supported-numpy"]

quantized_mesh_encoder/ellipsoid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class Ellipsoid:
1515
e2: float = attr.ib(init=False)
1616

1717
def __attrs_post_init__(self):
18-
self.e2 = 1 - (self.b ** 2 / self.a ** 2)
18+
self.e2 = 1 - (self.b**2 / self.a**2)

0 commit comments

Comments
 (0)