Skip to content

Commit f9dc651

Browse files
authored
[pypi] Change python version to supported in workflows (#8)
Add a lint workflow as well.
1 parent 9f1705f commit f9dc651

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: Lint and check
2+
on: [ push, pull_request ]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: chartboost/ruff-action@v1

.github/workflows/release.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,15 @@ jobs:
1717
- name: "Checkout code"
1818
uses: actions/checkout@v4
1919

20-
- name: Set up Python 3.12
21-
uses: actions/setup-python@v4
20+
- name: Set up Python 3.9
21+
uses: actions/setup-python@v5
2222
with:
23-
python-version: "3.12"
24-
25-
- name: Setup pdm
26-
uses: pdm-project/setup-pdm@v3
27-
with:
28-
python-version: "3.12"
23+
python-version: "3.9"
2924

3025
- name: Build package
31-
run: pdm build
26+
run: |
27+
pip install build
28+
python -m build
3229
3330
- name: Publish package distributions to PyPI
3431
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ maintainers = [
1313
description = "Stacked PRs for GitHub."
1414
readme = "README.md"
1515
license = { file = "LICENSE" }
16-
requires-python = ">=3.8"
16+
requires-python = ">=3.9"
1717
keywords = ["stacked-prs", "github", "pull-requests", "stack-pr", "git", "version-control"]
1818
classifiers = [
1919
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)