Skip to content

Commit c799c64

Browse files
committed
build: use dynamic version
1 parent 553e7d6 commit c799c64

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@ on:
66
paths:
77
- "src/**"
88
- "test/**"
9-
- "**.py"
10-
- "**.gpx"
11-
- "**.sh"
129
- "pyproject.toml"
1310
- ".github/workflows/ci.yml"
1411
pull_request:
1512
branches: ["main"]
1613
paths:
1714
- "src/**"
1815
- "test/**"
19-
- "**.py"
20-
- "**.gpx"
21-
- "**.sh"
2216
- "pyproject.toml"
2317
- ".github/workflows/ci.yml"
2418

@@ -32,6 +26,9 @@ jobs:
3226

3327
steps:
3428
- uses: actions/checkout@v4
29+
with:
30+
fetch-tags: "true"
31+
fetch-depth: "9"
3532
- name: Set up Python
3633
uses: actions/setup-python@v5
3734
with:

pyproject.toml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[project]
22
name = "ezon-gpx"
3-
version = "1.0.0"
4-
authors = [{ name = "Uiolee" }]
5-
maintainers = [{ name = "Uiolee" }]
3+
authors = [{ name = "uiolee" }]
4+
maintainers = [{ name = "uiolee" }]
65
description = "convert Ezon gpx files."
76
keywords = ["ezon", "gpx", "xml", "running_page"]
87
readme = "README.md"
9-
license = { text = "MPL-2.0" }
8+
license = { text = "MPL 2.0" }
109

1110
classifiers = [
1211
"Development Status :: 4 - Beta",
@@ -26,9 +25,19 @@ classifiers = [
2625
"Programming Language :: Python :: 3.11",
2726
]
2827

28+
dynamic = ["version"]
29+
2930
[project.urls]
3031
Homepage = "https://github.com/uiolee/ezon-gpx"
32+
Repository = "https://github.com/uiolee/ezon-gpx.git"
3133
Issues = "https://github.com/uiolee/ezon-gpx/issues"
3234

3335
[project.scripts]
3436
ezon-gpx = "cli:cli"
37+
38+
[build-system]
39+
requires = ["setuptools>=64", "setuptools_scm>=8"]
40+
build-backend = "setuptools.build_meta"
41+
42+
[tool.setuptools_scm]
43+
local_scheme = 'no-local-version'

0 commit comments

Comments
 (0)