Skip to content

Commit f91a08d

Browse files
committed
Auto-release to pypi too
1 parent e64be79 commit f91a08d

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

.travis.yml

100644100755
Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
1-
# This is a common .travis.yml for generating library release zip files for
2-
# CircuitPython library releases using circuitpython-build-tools.
3-
# See https://github.com/adafruit/circuitpython-build-tools for detailed setup
4-
# instructions.
5-
61
dist: trusty
72
sudo: false
83
language: python
4+
git:
5+
depth: 1
96
python:
10-
- "3.6"
11-
7+
- '3.6'
128
cache:
13-
pip: true
14-
9+
pip: true
1510
deploy:
16-
provider: releases
17-
api_key: $GITHUB_TOKEN
11+
- provider: releases
12+
api_key: "$GITHUB_TOKEN"
1813
file_glob: true
19-
file: $TRAVIS_BUILD_DIR/bundles/*
14+
file: "$TRAVIS_BUILD_DIR/bundles/*"
2015
skip_cleanup: true
2116
overwrite: true
2217
on:
2318
tags: true
2419

25-
install:
26-
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
20+
- provider: pypi
21+
user: adafruit-travis
22+
password:
23+
secure: Dj5qXdDsdy31S6MPBnDLDyorGywj0l3QQIl6isxCPbvUgcf29Cl5m15ThiAbl8bTV3NjpiW05Gu733O3fq4wnzGb5Abg+RTGOmT0uAd40oIdVNIgMX5A6/BVTsfePgsVrnM9IVCtfS7Cn0ygT2Ut+RCKMgweHtNa2+Kng1n4blUFb5lJNN1viZATKrXBYRksAh49fVMv1mH4HE3R85LD63wkIyfyv4dGyiD1YPC/EdhVYMCiE/7T8K3tg4bu3A/bGlpQlBZvxWPBAPInh6+wel5RaOzSGT1/br4oRxHvSf2Hua7Y8fJLC7lHf4Ob9GR7ONsUxmvKgYCcObYpVdm3wNM8Az8VfcJ2QzZb5q/YpWr7w6KZtN28P4HX8QdfuaqWLPPmj10+dN2OnwnCK0Me7DoKSrS9V6WXFEc0kbA0OQS2jYuQrLUPmEQdb5sEHJGgA6zKuP5rWJCY1f8MPvn2I4FaRD8XtB/YHeTyZsZzn6w07Ho2qkZe3Ev3KRb5R2qiXMq94GLI2RIFuEi6ZTB//51FxyzwqFFzSREin6t1XROAR1QG1CpPH5kJ4frUvUV+l/7Z74+T1pNv1npuTEt8pZg/pkF1gKA5480GVsKwYAxj4BNKf7ZGLsDoX3eGqrQsRLslcpphIQzhs4sGM2ZhxcQ+tA0UxdmhBXiwlYcV5Rk=
24+
on:
25+
tags: true
2726

27+
install:
28+
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
2829
script:
29-
- pylint adafruit_register/*.py
30-
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
31-
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-register --library_location .
32-
- cd docs && sphinx-build -E -W -b html . _build/html
30+
- pylint adafruit_register/*.py
31+
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
32+
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-register --library_location
33+
.
34+
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..

setup.py

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@
2525

2626
description='CircuitPython data descriptor classes to represent hardware registers on I2C and SPI devices.',
2727
long_description=long_description,
28+
long_description_content_type='text/x-rst',
2829

2930
# The project's main homepage.
3031
url='https://github.com/adafruit/Adafruit_CircuitPython_Register',
3132

3233
# Author details
3334
author='Adafruit Industries',
34-
author_email='[email protected]',
35+
author_email='[email protected]',
36+
37+
install_requires=[],
3538

3639
# Choose your license
3740
license='MIT',

0 commit comments

Comments
 (0)