Skip to content

Commit

Permalink
Auto-release to pypi too
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Jun 28, 2018
1 parent e64be79 commit f91a08d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
38 changes: 20 additions & 18 deletions .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
# This is a common .travis.yml for generating library release zip files for
# CircuitPython library releases using circuitpython-build-tools.
# See https://github.com/adafruit/circuitpython-build-tools for detailed setup
# instructions.

dist: trusty
sudo: false
language: python
git:
depth: 1
python:
- "3.6"

- '3.6'
cache:
pip: true

pip: true
deploy:
provider: releases
api_key: $GITHUB_TOKEN
- provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: $TRAVIS_BUILD_DIR/bundles/*
file: "$TRAVIS_BUILD_DIR/bundles/*"
skip_cleanup: true
overwrite: true
on:
tags: true

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

install:
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme
script:
- pylint adafruit_register/*.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-register --library_location .
- cd docs && sphinx-build -E -W -b html . _build/html
- pylint adafruit_register/*.py
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-register --library_location
.
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..
5 changes: 4 additions & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@

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

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

# Author details
author='Adafruit Industries',
author_email='support@adafruit.com',
author_email='circuitpython@adafruit.com',

install_requires=[],

# Choose your license
license='MIT',
Expand Down

0 comments on commit f91a08d

Please sign in to comment.