From 1beba7587f89669e6782de03360cd32e072251c4 Mon Sep 17 00:00:00 2001 From: scito Date: Fri, 30 Dec 2022 15:44:58 +0100 Subject: [PATCH] enable setuptools-git-versioning --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 709d87f..3db3e6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools>=64.0.0", "wheel>=0.37.0", "pip", "setuptools-scm", + "setuptools>=64.0.0", "wheel>=0.37.0", "pip", "setuptools-git-versioning", ] build-backend = "setuptools.build_meta" @@ -26,7 +26,6 @@ classifiers = [ "Natural Language :: English", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", ] -version = "1.6.0" dependencies = [ "protobuf", "qrcode", @@ -37,7 +36,7 @@ dependencies = [ "typing_extensions; python_version<='3.7'", ] description = "Extract two-factor authentication (2FA, TFA, OTP) secret keys from export QR codes of 'Google Authenticator' app" -# TODO dynamic = ["version"] +dynamic = ["version"] keywords = ["python", "security", "json", "otp", "csv", "protobuf", "qrcode", "two-factor", "totp", "google-authenticator", "recovery", "proto3", "mfa", "two-factor-authentication", "tfa", "qr-codes", "otpauth", "2fa", "security-tools"] license = {text = "GNU General Public License v3 (GPLv3)"} readme = "README.md" @@ -51,7 +50,10 @@ urls = {Project-URL = "https://github.com/scito/extract_otp_secret_keys", Bug-Re py-modules = ["extract_otp_secret_keys"] [tool.setuptools.dynamic] -# TODO version = {attr = "extract_otp_secret_keys.VERSION"} +# version = {attr = "extract_otp_secret_keys.VERSION"} + +[tool.setuptools-git-versioning] +enabled = true [tool.setuptools.package-data] "extract_otp_secret_keys" = ["*.txt", "*.json", "*.csv", "*.png", "*.md"]