From: Dmitry Selyutin Date: Wed, 21 Jun 2023 21:19:00 +0000 (+0300) Subject: all: deprecate pyproject.toml X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de8ae6d6e39e3a408c34ededc793ec474eed3106;p=mdis.git all: deprecate pyproject.toml --- diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index c613e58..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,36 +0,0 @@ -[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/" diff --git a/setup.py b/setup.py index a71ae28..85a50a4 100644 --- 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)