Skip to content

Commit

Permalink
build: use dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee committed Jun 26, 2024
1 parent 553e7d6 commit c799c64
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ on:
paths:
- "src/**"
- "test/**"
- "**.py"
- "**.gpx"
- "**.sh"
- "pyproject.toml"
- ".github/workflows/ci.yml"
pull_request:
branches: ["main"]
paths:
- "src/**"
- "test/**"
- "**.py"
- "**.gpx"
- "**.sh"
- "pyproject.toml"
- ".github/workflows/ci.yml"

Expand All @@ -32,6 +26,9 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-tags: "true"
fetch-depth: "9"
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[project]
name = "ezon-gpx"
version = "1.0.0"
authors = [{ name = "Uiolee" }]
maintainers = [{ name = "Uiolee" }]
authors = [{ name = "uiolee" }]
maintainers = [{ name = "uiolee" }]
description = "convert Ezon gpx files."
keywords = ["ezon", "gpx", "xml", "running_page"]
readme = "README.md"
license = { text = "MPL-2.0" }
license = { text = "MPL 2.0" }

classifiers = [
"Development Status :: 4 - Beta",
Expand All @@ -26,9 +25,19 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]

dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/uiolee/ezon-gpx"
Repository = "https://github.com/uiolee/ezon-gpx.git"
Issues = "https://github.com/uiolee/ezon-gpx/issues"

[project.scripts]
ezon-gpx = "cli:cli"

[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
local_scheme = 'no-local-version'

0 comments on commit c799c64

Please # to comment.