Skip to content

Commit acc8afb

Browse files
authored
dynamic version + scripts section (#93)
1 parent 1901b16 commit acc8afb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
[project]
22
name = "waybar-crypto"
3-
version = "v1.5.4"
43
description = "A Waybar module for displaying cryptocurrency market information from CoinMarketCap."
54
authors = [{ name = "Ross", email = "git@ross.ch" }]
65
license = { file = "LICENSE.md" }
76
requires-python = ">=3.8"
8-
dependencies = ["requests"]
7+
dependencies = ["requests", "setuptools"]
8+
dynamic = ["version", "readme"]
9+
10+
[project.scripts]
11+
waybar-crypto = "waybar_crypto:main"
912

1013
[project.optional-dependencies]
1114
dev = ["ruff", "bandit", "pre-commit>=3"]
1215
tests = ["pytest>=8", "pytest-cov>=5"]
1316

17+
[tool.setuptools.dynamic]
18+
version = { attr = "waybar_crypto.VERSION" }
19+
readme = { file = ["README.md"] }
20+
1421
[tool.ruff]
1522
line-length = 100
1623

waybar_crypto.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import configparser
99
import argparse
1010

11+
VERSION = "1.5.5"
12+
1113
API_URL = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest"
1214
API_KEY_ENV = "COINMARKETCAP_API_KEY"
1315

0 commit comments

Comments
 (0)