From: BenoƮt Fontaine Date: Sat, 3 Dec 2022 21:35:40 +0000 (+0100) Subject: Use pyproject.toml X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=4f12571bce52b3b0e597654e234cdecdaa27cd9f;p=gamesguru%2Fgetmyancestors.git Use pyproject.toml --- diff --git a/getmyancestors/__init__.py b/getmyancestors/__init__.py index 8a4f506..53b9022 100644 --- a/getmyancestors/__init__.py +++ b/getmyancestors/__init__.py @@ -1,6 +1,7 @@ # coding: utf-8 +from importlib.metadata import version as _version from . import getmyancestors from . import mergemyancestors -__version__ = "1.0.2-rc.2" +__version__ = _version(__name__) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..81f9fbb --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[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 = [ + "getmyancestors", + "familysearch", + "fstogedcom", + "gedcom", +] +classifiers = [ + "Environment :: Console", + "License :: OSI Approved :: GNU General Public License (GPL)", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3 :: Only", +] +dependencies = [ + "babelfish==0.6.0", + "diskcache==5.2.1", + "requests==2.25.1", + "fake-useragent==1.1.0", +] + +[build-system] +requires = ["flit_core>=3.2,<4"] +build-backend = "flit_core.buildapi" + +[project.urls] +HomePage = "https://github.com/Linekio/getmyancestors" + +[tool.setuptools.package-data] +getmyancestors = ["fstogedcom.png"] + +[project.scripts] +getmyancestors = "getmyancestors.getmyancestors:main" +mergemyancestors = "getmyancestors.mergemyancestors:main" +fstogedcom = "getmyancestors.fstogedcom:main" + diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 92d8d72..0000000 --- a/setup.cfg +++ /dev/null @@ -1,31 +0,0 @@ -[metadata] -name = getmyancestors -version = attr: getmyancestors.__version__ -description = Retrieve GEDCOM data from FamilySearch Tree -long_description = file:README.md -long_description_content_type = text/markdown -url = https://github.com/Linekio/getmyancestors -license = GNU -classifiers = - Environment :: Console - License :: OSI Approved :: GNU General Public License (GPL) - Operating System :: OS Independent - Programming Language :: Python :: 3 :: Only - -[options] -packages=getmyancestors, getmyancestors.classes -install_requires = - babelfish==0.6.0 - diskcache==5.2.1 - requests==2.25.1 - fake-useragent==1.1.0 - -[options.package_data] -* = fstogedcom.png - -[options.entry_points] -console_scripts = - getmyancestors=getmyancestors.getmyancestors:main - mergemyancestors=getmyancestors.mergemyancestors:main - fstogedcom=getmyancestors.fstogedcom:main - diff --git a/setup.py b/setup.py deleted file mode 100644 index b908cbe..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -import setuptools - -setuptools.setup()