+++ /dev/null
-[build-system]
-requires = ["setuptools>=46.4.0", "toml", "wheel"]
-build-backend = "setuptools.build_meta"
-
-[project]
-name = "mdis"
-version = "0.5"
-authors = [
- { name="Dmitry Selyutin", email="ghostmansd@gmail.com" },
-]
-keywords = [
- "dispatch",
- "dispather",
- "map",
- "iterator",
- "iterable",
- "visitor",
- "walker",
-]
-description = "Python dispatching library"
-readme = "README.md"
-requires-python = ">=3.0"
-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",
-]
-
-[project.urls]
-"Homepage" = "https://git.libre-soc.org/?p=mdis.git"
-"Bug Tracker" = "https://bugs.libre-soc.org/"
-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)