32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
try:
|
|
# Try using ez_setup to install setuptools if not already installed.
|
|
from ez_setup import use_setuptools
|
|
use_setuptools()
|
|
except ImportError:
|
|
# Ignore import error and assume Python 3 which already has setuptools.
|
|
pass
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
from codecs import open
|
|
from os import path
|
|
|
|
here = path.abspath(path.dirname(__file__))
|
|
|
|
# Get the long description from the README file
|
|
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
setup(name = 'Adafruit_MAX9744',
|
|
version = '1.0.4',
|
|
author = 'Tony DiCola',
|
|
author_email = 'tdicola@adafruit.com',
|
|
description = 'Library for controlling the MAX9744 class D amplifier with I2C volume control on a Raspberry Pi or Beaglebone Black.',
|
|
license = 'MIT',
|
|
url = 'https://github.com/adafruit/Adafruit_Python_MAX9744/',
|
|
dependency_links = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.9.0'],
|
|
install_requires = ['Adafruit-GPIO>=0.9.0'],
|
|
packages = find_packages(),
|
|
|
|
long_description = long_description,
|
|
long_description_content_type = 'text/markdown')
|