Skip to content

Commit c104e14

Browse files
committed
fix: use uv instead of poetry
1 parent 4fdf2c1 commit c104e14

File tree

6 files changed

+30
-346
lines changed

6 files changed

+30
-346
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717
with:
1818
python-version: 3.11
1919

20-
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
python -m pip install poetry
24-
poetry install
20+
- name: Install uv
21+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
2522

2623
- name: Build source distribution
2724
run: |

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include src/cytriangle/*.pyx
2+
include src/cytriangle/*.pxd
3+
include src/c/*.c
4+
include src/c/*.h

poetry.lock

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

pyproject.toml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["setuptools", "Cython>=3.0", "wheel", "numpy>=2.1.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
26
name = "cytriangle"
37
version = "2.0.0"
48
description = "Object-oriented Cython wrapper of Shewchuk's Triangle Library"
5-
authors = ["Maryanne Wachter <mclare@utsv.net>"]
9+
authors = [{name = "Maryanne Wachter", email = "mclare@utsv.net"}]
610
maintainers = [
7-
"Maryanne Wachter <mclare@utsv.net>",
8-
"Connor Ferster <connorferster@gmail.com>",
11+
{name = "Maryanne Wachter", email = "mclare@utsv.net"},
12+
{name = "Connor Ferster", email = "connorferster@gmail.com"}
913
]
10-
license = "LGPL 3.0"
11-
homepage = "https://github.com/m-clare/cytriangle"
12-
repository = "https://github.com/m-clare/cytriangle"
14+
license = {text = "LGPL 3.0"}
1315
readme = "README.md"
1416
keywords = [
1517
"finite-element-analysis",
@@ -29,24 +31,15 @@ classifiers = [
2931
"Programming Language :: Python :: 3.12",
3032
"Programming Language :: Python :: 3.13"
3133
]
32-
include = ["*.pyx", "*.pxd", "*.c", "src/c/*"]
34+
requires-python = ">=3.10"
35+
dependencies = ["numpy>=2.1.2"]
36+
37+
[project.optional-dependencies]
38+
dev = [
39+
"pytest>=7.4.2",
40+
"black>=23.9.1"
41+
]
3342

3443
[tool.cython-lint]
3544
max-line-length = 88
3645
ignore = ['E503', 'E504']
37-
38-
[tool.poetry.build]
39-
script = "build_ext.py"
40-
generate-setup-file = true
41-
42-
[tool.poetry.dependencies]
43-
python = ">=3.10"
44-
numpy = ">=2.1.2"
45-
46-
[tool.poetry.group.dev.dependencies]
47-
pytest = ">=7.4.2"
48-
black = ">=23.9.1"
49-
50-
[build-system]
51-
requires = ["poetry-core>=1.0.0", "Cython>=3.0", "setuptools", "numpy"]
52-
build-backend = "poetry.core.masonry.api"

requirements.txt

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

build_ext.py renamed to setup.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ def build_extensions(self):
3636
print(f"An exception occured: {type(e).__name__}: {e}")
3737

3838

39-
def build(setup_kwargs):
40-
setup_kwargs.update(
41-
dict(
42-
cmdclass=dict(build_ext=BuildExt),
43-
packages=["cytriangle"],
44-
ext_modules=cythonize(extensions, language_level=3),
45-
zip_safe=False,
46-
)
47-
)
39+
setuptools.setup(
40+
package_dir={"": "src"},
41+
packages=setuptools.find_packages(where="src"),
42+
cmdclass=dict(build_ext=BuildExt),
43+
ext_modules=cythonize(extensions, language_level=3),
44+
zip_safe=False,
45+
)

0 commit comments

Comments
 (0)