-
Notifications
You must be signed in to change notification settings - Fork 101
PyPi setup. #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
PyPi setup. #29
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
_build | ||
*.mpy | ||
.idea | ||
__pycache__ | ||
_build | ||
*.pyc | ||
.env | ||
build* | ||
bundles | ||
*.DS_Store | ||
.eggs | ||
dist | ||
**/*.egg-info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
# 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 | ||
python: | ||
- "3.6" | ||
|
||
- '3.6' | ||
cache: | ||
pip: true | ||
|
||
pip: true | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_TOKEN | ||
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 | ||
|
||
- provider: pypi | ||
user: adafruit-travis | ||
on: | ||
tags: true | ||
password: | ||
secure: c8pmry40i83I1bhC6FqDztcB6YUgzOR6tVUwkEczcrOKD6Vu3bKrk1tDIBqiybuOB4Zi76AYn0NGfphqjAyfu0DL+4Sy28f/l8UyWsA61JbftqHA/HAguI872ggPltOf8Qxz7/T4oCpt2hAO3PTvESltlS0tLjWnoSdgs6zz/TSSe5tH97Tm5TfZ4NBVAbcUapqNbWNojZWevH7H/X4BZNoUwdjEOfMdMyJpRm4wjRxLA3okFkC3yPD5z/8TZoOOVicL4cvEIDmLPixd7PmN0Yn4KOWyWjTyVJTD4lcQxYgl+zj8N99eDbosyuBltaU/wzFcz4vuDgVIlS+pBp7TxA9WeE5vt0XwEr0CHx97+0vCO0RzZ3zY3KXUvo9TyIFCMJIOxftpGtTw0ZmnUi3Y2PsJChnQGmLIYGa5KR4e1R3jRlc12xH3+4KzXOfUgRImUfLQIHxuOswiZpT70cbmJSQe+kRhyGvsDr8KsCtbcD7ukACvpEu1QAcNrjkOsESKDcH6vmdJxNDaYR5vqSdQXiSrWBlwqrC662XuXfgqfRkJ/Y/7vWd5m+KFlzfvZV/sMDiqf2T8R6KhNnVa85kXB3Sl5w2vlMSSBXr6xJ4Qp9jlqjcdAuzw6rDm/09J1MDwUGt8ltkGHmP8t6Xjg4tNERCSzGYLLhOc9rT4jAAnhsY= | ||
install: | ||
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme | ||
|
||
- pip install -r requirements.txt | ||
- pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme | ||
- pip install --force-reinstall pylint==1.9.2 | ||
script: | ||
- pylint neopixel.py | ||
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py) | ||
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-neopixel --library_location . | ||
- cd docs && sphinx-build -E -W -b html . _build/html | ||
- pylint neopixel.py | ||
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py) | ||
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-neopixel --library_location | ||
. | ||
- cd docs && sphinx-build -E -W -b html . _build/html && cd .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
circuitpython-travis-build-tools | ||
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
"""A setuptools based setup module. | ||
|
||
See: | ||
https://packaging.python.org/en/latest/distributing.html | ||
https://github.com/pypa/sampleproject | ||
""" | ||
|
||
# Always prefer setuptools over distutils | ||
from setuptools import setup, find_packages | ||
# To use a consistent encoding | ||
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.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='adafruit-circuitpython-neopixel', | ||
|
||
use_scm_version=True, | ||
setup_requires=['setuptools_scm'], | ||
|
||
description='CircuitPython library for NeoPixel LEDs.', | ||
long_description=long_description, | ||
long_description_content_type='text/x-rst', | ||
|
||
# The project's main homepage. | ||
url='https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel', | ||
|
||
# Author details | ||
author='Adafruit Industries & Damien P. George', | ||
author_email='[email protected]', | ||
|
||
install_requires=['Adafruit-Blinka'], | ||
|
||
# Choose your license | ||
license='MIT', | ||
|
||
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: System :: Hardware', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
], | ||
|
||
# What does your project relate to? | ||
keywords='adafruit neopixel rgb rgbw led hardware micropython circuitpython', | ||
|
||
# You can just specify the packages manually here if your project is | ||
# simple. Or you can use find_packages(). | ||
py_modules=['adafruit_neopixel'], | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need
Adafruit-Blinka
here?