From 9b48f545f62660f674e61875b8646593d9b87fe5 Mon Sep 17 00:00:00 2001 From: Charlie Crighton Date: Wed, 13 Sep 2023 15:17:04 +1200 Subject: [PATCH] Makefile and setup.py for building distribution --- Makefile | 16 ++++++++++++++++ setup.py | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 Makefile create mode 100755 setup.py diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..7d84955 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +#!/usr/bin/make -f +# +# SPDX-FileCopyrightText: 2023 Charles Crighton +# +# SPDX-License-Identifier: MIT + +dist: test license-check setup-sdist + +test: + python -m unittest + +license-check: + reuse lint + +setup-sdist: + python setup.py sdist diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..0c11d93 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2023 Charles Crighton +# +# SPDX-License-Identifier: MIT +from setuptools import setup + +setup( + name="mcp4xxx", + version="1.0.0", + description="Control a Microchip MCP4XXX digital potentiometer with Micropython", + long_description=open("README.md").read(), + long_description_content_type="text/markdown", + project_urls={ + "GitHub": "https://bitbucket/ccrighton/mcp4xxx" + }, + author="Charlie Crighton", + maintainer="Charlie Crighton", + maintainer_email="code@crighton.nz", + license="MIT", + license_files="LICENSES", + py_modules=["mcp4xxx"] +)