Skip to content

Commit 57c25af

Browse files
authored
Merge pull request #8 from mpes-kit/release
add release workflow
2 parents a5a4269 + 097c64a commit 57c25af

File tree

3 files changed

+56
-4
lines changed

3 files changed

+56
-4
lines changed

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish to PyPI
2+
3+
# Workflow runs a release job on every published tag.
4+
on:
5+
release:
6+
types: [published]
7+
8+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
9+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
10+
concurrency:
11+
group: "release"
12+
cancel-in-progress: false
13+
14+
env:
15+
UV_SYSTEM_PYTHON: true
16+
17+
jobs:
18+
release:
19+
name: Upload release to PyPI
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: pypi
23+
url: https://pypi.org/p/fuller
24+
permissions:
25+
id-token: write
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: "3.x"
36+
37+
- name: Install dependencies
38+
run: |
39+
curl -LsSf https://astral.sh/uv/install.sh | sh
40+
uv pip install build
41+
42+
- name: Build package
43+
run: |
44+
git reset --hard HEAD
45+
python -m build
46+
47+
- name: Publish package distributions to PyPI
48+
uses: pypa/gh-action-pypi-publish@release/v1
49+
with:
50+
verbose: true

MANIFEST.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
include README.md
2-
include requirements.txt
1+
prune *
2+
exclude *
3+
recursive-include fuller *.py
4+
include pyproject.toml README.md

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ authors = [
1515
]
1616
description = "Integrated computational framework for electronic band structure reconstruction and parametrization"
1717
readme = "README.md"
18-
license = { file = "LICENSE" }
19-
requires-python = ">=3.9,<3.13"
18+
license-files = ["LICENSE"]
19+
requires-python = ">=3.8"
2020
classifiers = [
2121
"Development Status :: 3 - Alpha",
2222
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)