From 5b9f0237e3771acd57fa84b2ae8aa17170f484fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Sun, 4 Dec 2022 20:43:42 +0100 Subject: [PATCH] Move version in package --- getmyancestors/__init__.py | 3 +-- pyproject.toml | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) 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" -- 2.52.0