/ setup.py
setup.py
 1  # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
 2  # SPDX-FileCopyrightText: Copyright (c) 2020 Bryan Siepert for Adafruit Industries
 3  #
 4  # SPDX-License-Identifier: MIT
 5  
 6  """A setuptools based setup module.
 7  
 8  See:
 9  https://packaging.python.org/en/latest/distributing.html
10  https://github.com/pypa/sampleproject
11  """
12  
13  from setuptools import setup, find_packages
14  
15  # To use a consistent encoding
16  from codecs import open
17  from os import path
18  
19  here = path.abspath(path.dirname(__file__))
20  
21  # Get the long description from the README file
22  with open(path.join(here, "README.rst"), encoding="utf-8") as f:
23      long_description = f.read()
24  
25  setup(
26      name="adafruit-circuitpython-lsm6ds",
27      use_scm_version=True,
28      setup_requires=["setuptools_scm"],
29      description="CircuitPython helper library for the LSM6DS family of motion sensors from ST",
30      long_description=long_description,
31      long_description_content_type="text/x-rst",
32      # The project's main homepage.
33      url="https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS",
34      # Author details
35      author="Adafruit Industries",
36      author_email="circuitpython@adafruit.com",
37      install_requires=[
38          "Adafruit-Blinka",
39          "adafruit-circuitpython-busdevice",
40          "adafruit-circuitpython-register",
41      ],
42      # Choose your license
43      license="MIT",
44      # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
45      classifiers=[
46          "Development Status :: 3 - Alpha",
47          "Intended Audience :: Developers",
48          "Topic :: Software Development :: Libraries",
49          "Topic :: System :: Hardware",
50          "License :: OSI Approved :: MIT License",
51          "Programming Language :: Python :: 3",
52          "Programming Language :: Python :: 3.4",
53          "Programming Language :: Python :: 3.5",
54      ],
55      # What does your project relate to?
56      keywords="adafruit blinka circuitpython micropython lsm6ds lsm6dsox lsmds33 lsm6dso32 st imu gyro accelerometer ism330dhcx imu gyro gyroscope inemo",
57      # You can just specify the packages manually here if your project is
58      # simple. Or you can use find_packages().
59      # TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
60      #       CHANGE `py_modules=['...']` TO `packages=['...']`
61      py_modules=["adafruit_lsm6ds"],
62  )