walker: drop path categories
[mdis.git] / setup.py
index a71ae28842979f118eb540dbbcee241a03ff1861..85a50a47ea2fd04339d12794340e2affdb0f5768 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,24 +1,37 @@
-import toml
 from setuptools import setup
 
-if __name__ == "__main__":
-    with open("pyproject.toml", "r", encoding="UTF-8") as stream:
-        pyproject = toml.load(stream)
-        arguments = pyproject["project"]
-
-        arguments["packages"] = ["mdis"]
-        arguments["package_dir"] = {"": "src"}
-
-        authors = []
-        emails = []
-        for author in arguments.pop("authors"):
-            authors.append(author["name"])
-            emails.append(author["email"])
-        arguments["author"] = ", ".join(authors)
-        arguments["author_email"] = ", ".join(emails)
+project = {
+    "name": "mdis",
+    "author": "Dmitry Selyutin",
+    "author_email": "ghostmansd@gmail.com",
+    "version": "0.5.2",
+    "keywords": [
+        "dispatch",
+        "dispather",
+        "map",
+        "iterator",
+        "iterable",
+        "visitor",
+        "walker",
+    ],
+    "description": "Python dispatching library",
+    "classifiers": [
+        "Development Status :: 2 - Pre-Alpha",
+        "Intended Audience :: Developers",
+        "Topic :: Software Development :: Libraries",
+        "Topic :: Software Development :: Libraries :: Python Modules",
+        "Programming Language :: Python :: 3",
+        "Programming Language :: Python :: 3 :: Only",
+        "License :: OSI Approved :: BSD License",
+        "Operating System :: OS Independent",
+    ],
+    "packages": [
+        "mdis",
+    ],
+    "package_dir": {
+        "": "src",
+    },
+}
 
-        arguments.pop("urls")
-        arguments.pop("readme")
-        arguments.pop("requires-python")
-
-        setup(**pyproject["project"])
+if __name__ == "__main__":
+    setup(**project)