Skip to content

Commit 8699af7

Browse files
committed
dynamic version
1 parent 5258e5a commit 8699af7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ jobs:
1010

1111
linux:
1212
runs-on: ubuntu-latest
13+
1314
strategy:
1415
matrix:
15-
python-version: [ '3.10', '3.11' ]
16+
python-version: [ '3.10', '3.12' ]
17+
1618
name: Lint Python ${{ matrix.python-version }}
1719

1820
steps:
1921
- uses: actions/checkout@v4
20-
- uses: actions/setup-python@v4
22+
- uses: actions/setup-python@v5
2123
with:
2224
python-version: ${{ matrix.python-version }}
2325

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mozloc"
7-
version = "1.6.0"
87
description = "Using Mozilla Location services, log location vs. time using WiFi or convert to KML."
98
keywords = ["wifi", "geolocation"]
109
classifiers = ["Development Status :: 5 - Production/Stable",
@@ -19,11 +18,12 @@ classifiers = ["Development Status :: 5 - Production/Stable",
1918
"Topic :: Utilities"
2019
]
2120
requires-python = ">=3.10"
22-
dynamic = ["readme"]
21+
dynamic = ["readme","version"]
2322
dependencies = ["requests", "pandas"]
2423

2524
[tool.setuptools.dynamic]
2625
readme = {file = ["README.md"], content-type = "text/markdown"}
26+
version = {attr = "mozloc.__version__"}
2727

2828
[project.optional-dependencies]
2929
tests = ["pytest"]

src/mozloc/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from .base import log_wifi_loc
22
from .modules import get_signal, parse_signal, cli_config_check
33

4+
__version__ = "1.6.0"
5+
46
__all__ = ["log_wifi_loc", "get_signal", "parse_signal", "cli_config_check"]

0 commit comments

Comments
 (0)