Skip to content

Commit 41c8597

Browse files
authored
Merge pull request #7 from kattni/pypi
Deploy to PyPI.
2 parents f82389f + 839aa20 commit 41c8597

File tree

3 files changed

+55
-7
lines changed

3 files changed

+55
-7
lines changed

examples/debug_i2c_simpletest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""This example uses the LIS3DH accelerometer. Debug_I2C can be used with any I2C device."""
2-
import busio
32
import board
43
import digitalio
5-
from adafruit_debug_i2c import DebugI2C
64
import adafruit_lis3dh
5+
from adafruit_debug_i2c import DebugI2C
76

8-
i2c = DebugI2C(busio.I2C(board.SCL, board.SDA))
7+
i2c = DebugI2C(board.I2C())
98
int1 = digitalio.DigitalInOut(board.ACCELEROMETER_INTERRUPT)
109
accelerometer = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19, int1=int1)
1110

setup.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
"""A setuptools based setup module.
2+
3+
See:
4+
https://packaging.python.org/en/latest/distributing.html
5+
https://github.com/pypa/sampleproject
6+
"""
7+
8+
from setuptools import setup, find_packages
9+
10+
# To use a consistent encoding
11+
from codecs import open
12+
from os import path
13+
14+
here = path.abspath(path.dirname(__file__))
15+
16+
# Get the long description from the README file
17+
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
18+
long_description = f.read()
19+
20+
setup(
21+
name="adafruit-circuitpython-debug-i2c",
22+
use_scm_version=True,
23+
setup_requires=["setuptools_scm"],
24+
description="Wrapper library for debugging I2C.",
25+
long_description=long_description,
26+
long_description_content_type="text/x-rst",
27+
# The project's main homepage.
28+
url="https://github.com/adafruit/Adafruit_CircuitPython_Debug_I2C",
29+
# Author details
30+
author="Adafruit Industries",
31+
author_email="circuitpython@adafruit.com",
32+
install_requires=["Adafruit-Blinka"],
33+
# Choose your license
34+
license="MIT",
35+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
36+
classifiers=[
37+
"Development Status :: 3 - Alpha",
38+
"Intended Audience :: Developers",
39+
"Topic :: Software Development :: Libraries",
40+
"Topic :: System :: Hardware",
41+
"License :: OSI Approved :: MIT License",
42+
"Programming Language :: Python :: 3",
43+
"Programming Language :: Python :: 3.4",
44+
"Programming Language :: Python :: 3.5",
45+
],
46+
# What does your project relate to?
47+
keywords="adafruit blinka circuitpython micropython debug_i2c i2c debug",
48+
# You can just specify the packages manually here if your project is
49+
# simple. Or you can use find_packages().
50+
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
51+
# CHANGE `py_modules=['...']` TO `packages=['...']`
52+
py_modules=["adafruit_debug_i2c"],
53+
)

setup.py.disabled

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)