From 3107b2433f5771bab466d5a915a5a41cd5733939 Mon Sep 17 00:00:00 2001 From: Blazej Michalik Date: Sun, 28 Mar 2021 03:29:20 +0200 Subject: [PATCH] Add a buildscript --- __build__.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 __build__.py diff --git a/__build__.py b/__build__.py new file mode 100644 index 0000000..b380c63 --- /dev/null +++ b/__build__.py @@ -0,0 +1,38 @@ +from wheelfile import WheelFile, __version__ +from pathlib import Path + +spec = { + 'distname': 'wheelfile', + 'version': __version__ +} + +requirements = [ + 'packaging ~= 20.8' +] + +with WheelFile(mode='w', **spec) as wf: + wf.metadata.requires_dists = requirements + wf.metadata.requires_python = '>=3.6' + + wf.metadata.summary = "API for inspecting and creating .whl files" + wf.metadata.description = Path('./README.md').read_text() + wf.metadata.description_content_type = 'text/markdown' + + wf.metadata.keywords = 'wheel packages packaging pip build distutils' + wf.metadata.classifiers = [ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Topic :: Software Development :: Build Tools', + 'Topic :: Software Development :: Libraries', + 'Topic :: System :: Archiving :: Packaging', + 'Topic :: System :: Software Distribution', + 'Topic :: Utilities', + ] + + wf.metadata.author = "Błażej Michalik" + wf.metadata.home_page = 'https://github.com/MrMino/wheelfile' + + wf.write('./wheelfile.py') + +# 🧀