From: BenoƮt Fontaine Date: Sun, 4 Dec 2022 19:43:42 +0000 (+0100) Subject: Move version in package X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=5b9f0237e3771acd57fa84b2ae8aa17170f484fb;p=gamesguru%2Fgetmyancestors.git Move version in package --- diff --git a/getmyancestors/__init__.py b/getmyancestors/__init__.py index 53b9022..2ef62b4 100644 --- a/getmyancestors/__init__.py +++ b/getmyancestors/__init__.py @@ -1,7 +1,6 @@ # coding: utf-8 -from importlib.metadata import version as _version from . import getmyancestors from . import mergemyancestors -__version__ = _version(__name__) +__version__ = "1.0.3" diff --git a/pyproject.toml b/pyproject.toml index 81f9fbb..fc8915d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,6 @@ [project] name = "getmyancestors" -version = "1.0.3" description = "Retrieve GEDCOM data from FamilySearch Tree" -readme = "README.md" requires-python = ">=3.7" license = {text = "GNU"} keywords = [ @@ -23,10 +21,11 @@ dependencies = [ "requests==2.25.1", "fake-useragent==1.1.0", ] +dynamic = ["version", "readme"] -[build-system] -requires = ["flit_core>=3.2,<4"] -build-backend = "flit_core.buildapi" +[tool.setuptools.dynamic] +version = {attr = "getmyancestors.__version__"} +readme = {file = ["README.md"]} [project.urls] HomePage = "https://github.com/Linekio/getmyancestors"