Skip to content

Commit a50bf6b

Browse files
committed
Fix pyproject dynamic version
1 parent 91979fd commit a50bf6b

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
with:
1717
python-version: "3.11"
1818

19-
- name: Build the distribution
19+
- name: Build source and wheel distributions
2020
run: |
21-
pip install -r requirements.txt
22-
python -m pip install --upgrade build
21+
python -m pip install --upgrade build twine
2322
python -m build
23+
twine check --strict dist/*
2424
2525
- name: Publish distribution to PyPI
2626
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: Check code
33
on:
44
push:
55
branches: [main]
6+
paths:
7+
- '**.py'
68
pull_request:
79
branches: [main]
10+
paths:
11+
- '**.py'
812

913
jobs:
1014
code-checks:

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
2+
requires = [
3+
"setuptools>=61.0",
4+
"setuptools-scm>=8.0"]
35
build-backend = "setuptools.build_meta"
46

7+
[tool.setuptools_scm]
8+
59
[project]
610
name = "django-simple-components"
7-
version = "0.0.1"
11+
dynamic = ["version"]
812
authors = [
913
{ name="Pavel Kutsenko", email="[email protected]" },
1014
]

0 commit comments

Comments
 (0)