Skip to content

Commit

Permalink
dynamic version + scripts section
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed May 31, 2024
1 parent 1901b16 commit 9472ed2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" }]
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

Expand Down
2 changes: 2 additions & 0 deletions waybar_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 9472ed2

Please sign in to comment.