Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: publish-pypi

on:
push:
tags:
- v*

jobs:
publish-pypi:
name: Publish distribution 📦s to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sdf
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install pypa/build
run: python -m pip install build twine --upgrade --user

- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .

- name: Check with twine
run: twine check dist/*

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[project]
name = "sdf"
version = "0.1"
description = "Generate 3D meshes from signed distance functions."
authors = [{ name = "Michael Fogleman", email = "[email protected]" }]
license = { text = "MIT" }
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
dependencies = [
"matplotlib",
"meshio",
"numpy",
"scikit-image>=0.17",
"scipy",
"Pillow",
]

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["sdf"]
27 changes: 0 additions & 27 deletions setup.py

This file was deleted.