2 # -*- coding: utf-8 -*-
 
   4 # Note: To use the 'upload' functionality of this file, you must:
 
  11 from setuptools import setup, find_packages
 
  13 here = os.path.abspath(os.path.dirname(__file__))
 
  15 # Import the README and use it as the long-description.
 
  16 # Note: this will only work if 'README.md' is present in your MANIFEST.in file!
 
  17 with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
 
  18     long_description = '\n' + f.read()
 
  21     name='Adafruit-Blinka',
 
  23     setup_requires=["setuptools_scm"],
 
  24     description='CircuitPython APIs for non-CircuitPython versions of Python such as CPython on Linux and MicroPython.',
 
  25     long_description=long_description,
 
  26     long_description_content_type='text/x-rst',
 
  27     author='Adafruit Industries',
 
  28     author_email='circuitpython@adafruit.com',
 
  29     python_requires='>=3.4.0',
 
  30     url='https://github.com/adafruit/Adafruit_Blinka',
 
  31     package_dir={'': 'src'},
 
  32     packages=find_packages("src"),
 
  33     # py_modules lists top-level single file packages to include.
 
  34     # find_packages only finds packages in directories with __init__.py files.
 
  35     py_modules=['bitbangio', 'board', 'busio', 'digitalio', 'micropython', 'pulseio', 'neopixel_write'],
 
  36     package_data={'adafruit_blinka.microcontroller.bcm283x.pulseio': ['libgpiod_pulsein']},
 
  38         "Adafruit-PlatformDetect",
 
  40         "RPi.GPIO; platform_machine=='armv7l' or platform_machine=='armv6l'",
 
  41         "rpi_ws281x>=4.0.0; platform_machine=='armv7l' or platform_machine=='armv6l'",
 
  42         "spidev; sys_platform=='linux'",
 
  43         "sysv_ipc; platform_system != 'Windows'"
 
  48         # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
 
  49         'License :: OSI Approved :: MIT License',
 
  50         'Programming Language :: Python',
 
  51         'Programming Language :: Python :: 3',
 
  52         'Programming Language :: Python :: 3.4',
 
  53         'Programming Language :: Python :: Implementation :: MicroPython',