Skip to content

Commit

Permalink
Makefile and setup.py for building distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrighton committed Sep 13, 2023
1 parent a76c7fc commit 9b48f54
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/make -f
#
# SPDX-FileCopyrightText: 2023 Charles Crighton <[email protected]>
#
# SPDX-License-Identifier: MIT

dist: test license-check setup-sdist

test:
python -m unittest

license-check:
reuse lint

setup-sdist:
python setup.py sdist
21 changes: 21 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPDX-FileCopyrightText: 2023 Charles Crighton <[email protected]>
#
# 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="[email protected]",
license="MIT",
license_files="LICENSES",
py_modules=["mcp4xxx"]
)

0 comments on commit 9b48f54

Please sign in to comment.