Skip to content

Commit 3d7bb01

Browse files
authored
Merge pull request #53 from dherrada/master
Added setup.py
2 parents 310bd0e + 32e7463 commit 3d7bb01

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Adafruit-Blinka
2-

setup.py

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
# To use a consistent encoding
10+
from codecs import open
11+
from os import path
12+
13+
here = path.abspath(path.dirname(__file__))
14+
15+
# Get the long description from the README file
16+
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
17+
long_description = f.read()
18+
19+
setup(
20+
name='adafruit-circuitpython-ble',
21+
22+
use_scm_version=True,
23+
setup_requires=['setuptools_scm'],
24+
25+
description='Bluetooth Low Energy (BLE) library for CircuitPython',
26+
long_description=long_description,
27+
long_description_content_type='text/x-rst',
28+
29+
# The project's main homepage.
30+
url='https://github.com/adafruit/Adafruit_CircuitPython_BLE',
31+
32+
# Author details
33+
author='Adafruit Industries',
34+
author_email='[email protected]',
35+
36+
install_requires=[
37+
'Adafruit-Blinka'
38+
],
39+
40+
# Choose your license
41+
license='MIT',
42+
43+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
44+
classifiers=[
45+
'Development Status :: 3 - Alpha',
46+
'Intended Audience :: Developers',
47+
'Topic :: Software Development :: Libraries',
48+
'Topic :: System :: Hardware',
49+
'License :: OSI Approved :: MIT License',
50+
'Programming Language :: Python :: 3',
51+
'Programming Language :: Python :: 3.4',
52+
'Programming Language :: Python :: 3.5',
53+
],
54+
55+
# What does your project relate to?
56+
keywords='adafruit blinka circuitpython micropython ble bluetooth',
57+
58+
# You can just specify the packages manually here if your project is
59+
# simple. Or you can use find_packages().
60+
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
61+
# CHANGE `py_modules=['...']` TO `packages=['...']`
62+
py_modules=['adafruit_ble'],
63+
)

0 commit comments

Comments
 (0)