diff --git a/pyproject.toml b/pyproject.toml index bb33c1b..87a1372 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,23 @@ [project] name = "waybar-crypto" -version = "v1.5.4" description = "A Waybar module for displaying cryptocurrency market information from CoinMarketCap." authors = [{ name = "Ross", email = "git@ross.ch" }] license = { file = "LICENSE.md" } requires-python = ">=3.8" -dependencies = ["requests"] +dependencies = ["requests", "setuptools"] +dynamic = ["version", "readme"] + +[project.scripts] +waybar-crypto = "waybar_crypto:main" [project.optional-dependencies] dev = ["ruff", "bandit", "pre-commit>=3"] tests = ["pytest>=8", "pytest-cov>=5"] +[tool.setuptools.dynamic] +version = { attr = "waybar_crypto.VERSION" } +readme = { file = ["README.md"] } + [tool.ruff] line-length = 100 diff --git a/waybar_crypto.py b/waybar_crypto.py index b18f33a..987e12d 100755 --- a/waybar_crypto.py +++ b/waybar_crypto.py @@ -8,6 +8,8 @@ import configparser import argparse +VERSION = "1.5.5" + API_URL = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest" API_KEY_ENV = "COINMARKETCAP_API_KEY"