Use pyproject.toml
authorBenoît Fontaine <benoitfontaine.ba@gmail.com>
Sat, 3 Dec 2022 21:35:40 +0000 (22:35 +0100)
committerBenoît Fontaine <benoitfontaine.ba@gmail.com>
Sat, 3 Dec 2022 21:35:40 +0000 (22:35 +0100)
getmyancestors/__init__.py
pyproject.toml [new file with mode: 0644]
setup.cfg [deleted file]
setup.py [deleted file]

index 8a4f5067ba872681cddbbc381dc86e0f3e118fed..53b902265f37d5a3932f0d49bb13f7fc0f45dd42 100644 (file)
@@ -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 (file)
index 0000000..81f9fbb
--- /dev/null
@@ -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 (file)
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 (file)
index b908cbe..0000000
--- a/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-import setuptools
-
-setuptools.setup()