Skip to content

Commit

Permalink
Fix pyproject dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
paqstd-dev committed Oct 29, 2023
1 parent 91979fd commit a50bf6b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
with:
python-version: "3.11"

- name: Build the distribution
- name: Build source and wheel distributions
run: |
pip install -r requirements.txt
python -m pip install --upgrade build
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: Check code
on:
push:
branches: [main]
paths:
- '**.py'
pull_request:
branches: [main]
paths:
- '**.py'

jobs:
code-checks:
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[build-system]
requires = ["setuptools>=61.0"]
requires = [
"setuptools>=61.0",
"setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[project]
name = "django-simple-components"
version = "0.0.1"
dynamic = ["version"]
authors = [
{ name="Pavel Kutsenko", email="[email protected]" },
]
Expand Down

0 comments on commit a50bf6b

Please sign in to comment.