From 5d809df80ccba04caacc5d5a924beba5889478ef Mon Sep 17 00:00:00 2001 From: skullY Date: Sun, 30 Jun 2019 19:09:55 -0700 Subject: [PATCH] Python packaging stuff --- MANIFEST.in | 1 + setup.cfg | 6 +++++- setup.py | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..8bd3bb6 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include *.md LICENSE diff --git a/setup.cfg b/setup.cfg index 528512a..eabd44e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,8 @@ -# Python settings for QMK +[bdist_wheel] +universal = 1 + +[metadata] +license_file = LICENSE [yapf] # Align closing bracket with visual indentation. diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..6a823d1 --- /dev/null +++ b/setup.py @@ -0,0 +1,43 @@ +#!/usr/bin/env python +# Special thanks to Hynek Schlawack for providing excellent documentation: +# +# https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ +import os +from setuptools import setup, find_packages, Command + + +def read(*paths): + """Build a file path from *paths* and return the contents.""" + with open(os.path.join(*paths), 'r') as f: + return f.read() + + +setup( + name='qmk', + version='0.0.1', + description='Program to help you work with qmk_firmware.', + long_description=read('README.md'), + long_description_content_type='text/markdown', + url='https://github.com/qmk/qmk_cli', + license='MIT License', + author='skullydazed', + author_email='skullydazed@gmail.com', + install_requires=['argcomplete', 'colorama'], + packages=find_packages(), + py_modules=['milc'], + scripts=['qmk'], + include_package_data=True, + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Intended Audience :: End Users/Desktop', + 'License :: OSI Approved :: MIT License', + 'Natural Language :: English', + 'Programming Language :: Python :: 3 :: Only', + 'Topic :: Scientific/Engineering', + 'Topic :: Software Development', + 'Topic :: Utilities', + ], +)