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"] +)