Skip to content
Merged
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
56 changes: 56 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish to PyPI

on:
push:
branches:
- main

permissions:
contents: read

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install build dependencies
run: python -m pip install --upgrade build

- name: Build package
run: python -m build

- name: Upload distribution artifact
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/cudakima

permissions:
id-token: write # Required for OIDC trusted publishing

steps:
- name: Download distributions
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
19 changes: 17 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,26 @@ authors = [
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.11"
keywords = ["akima", "spline", "interpolation", "GPU", "CUDA", "numba"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Mathematics",
]

dependencies = [
"numpy==2.3.5",
"numba==0.63.1",
"numpy>=2.3.5",
"numba>=0.63.1",
]

[project.urls]
Homepage = "https://github.com/asantini29/CudAkima"
Repository = "https://github.com/asantini29/CudAkima"
Documentation = "https://asantini29.github.io/CudAkima/"
"Bug Tracker" = "https://github.com/asantini29/CudAkima/issues"

[project.optional-dependencies]
docs = [
"sphinx>=7.0.0",
Expand Down