1
- from distutils . core import setup
1
+ """A setuptools based setup module.
2
2
3
+ See:
4
+ https://packaging.python.org/en/latest/distributing.html
5
+ https://github.com/pypa/sampleproject
6
+ """
7
+
8
+ # Always prefer setuptools over distutils
9
+ from setuptools import setup , find_packages
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 ()
3
19
4
20
setup (
5
- name = 'adafruit-pca9685' ,
6
- packages = [
7
- 'adafruit_pca9685' ,
8
- ],\
9
- version = "2.0.0" ,
10
- description = "Driver for PCA9685 for Adafruit CircuitPython." ,
11
- long_description = """\
12
- This library lets you control the motor, stepper, and servo drivers based on PCA9685.""" ,
21
+ name = 'adafruit-circuitpython-pca9865' ,
22
+
23
+ use_scm_version = True ,
24
+ setup_requires = ['setuptools_scm' ],
25
+
26
+ description = 'CircuitPython driver for motor, stepper, and servo based on PCA9865.' ,
27
+ long_description = long_description ,
28
+ long_description_content_type = 'text/x-rst' ,
29
+
30
+ # The project's main homepage.
31
+ url = 'https://github.com/adafruit/Adafruit_CircuitPython_PCA9865' ,
32
+
33
+ # Author details
13
34
author = 'Radomir Dopieralski & Adafruit Industries' ,
14
-
15
- classifiers = [
16
- 'Development Status :: 6 - Mature' ,
17
- 'Programming Language :: Python :: 3' ,
35
+
36
+
37
+ install_requires = ['adafruit-circuitpython-busdevice' , 'adafruit-circuitpython-register' ],
38
+
39
+ # Choose your license
40
+ license = 'MIT' ,
41
+
42
+ # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
43
+ classifiers = [
44
+ 'Development Status :: 3 - Alpha' ,
45
+ 'Intended Audience :: Developers' ,
46
+ 'Topic :: Software Development :: Libraries' ,
47
+ 'Topic :: System :: Hardware' ,
18
48
'License :: OSI Approved :: MIT License' ,
49
+ 'Programming Language :: Python :: 3' ,
50
+ 'Programming Language :: Python :: 3.4' ,
51
+ 'Programming Language :: Python :: 3.5' ,
19
52
],
20
- url = "https://github.com/adafruit/Adafruit_CircuitPython_PCA9685"
21
- )
53
+
54
+ # What does your project relate to?
55
+ keywords = 'adafruit pca9865 hardware micropython circuitpython' ,
56
+
57
+ # You can just specify the packages manually here if your project is
58
+ # simple. Or you can use find_packages().
59
+ py_modules = ['adafruit_pca9865' ],
60
+ )
0 commit comments