From bfe53783198f10f6a9f411aca986763b1bc07eb1 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Sat, 4 Feb 2017 17:41:28 -0800 Subject: [PATCH] Prepare for CI setup --- .travis.yml | 22 ++++++++++++++++++++++ MANIFEST.in | 3 ++- appveyor.yml | 25 +++++++++++++++++++++++++ requests.txt | 1 - requirements-test.txt | 2 ++ requirements.txt | 0 setup.py | 39 ++++++++++++++++++++++++--------------- tox.ini | 2 -- version.py | 1 + 9 files changed, 76 insertions(+), 19 deletions(-) create mode 100644 .travis.yml create mode 100644 appveyor.yml delete mode 100644 requests.txt create mode 100644 requirements-test.txt create mode 100644 requirements.txt create mode 100644 version.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..81f7829 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: python +sudo: false +python: +- '2.7' +- '3.4' +install: +- pip install --upgrade -r build_requirements.txt +script: +- tox +deploy: + skip_cleanup: true + provider: script + script: python scripts/release.py $TRAVIS_TAG + on: + branch: master + tags: true +notifications: + on_success: always + on_failure: always + email: false + slack: + secure: qhlI6ILuy40WHTkLoNipyfk9wyDUFUh4u1RiMuVUQi4K+kfU0U5xG08f0N2nSzbkevGMGRtBMRLnQaqqcIhR+xc0uH+1rlV8fXN/6RXKDWyhaBhNCvhqxRIzvI1E983NfW2YBIIOwQnRT2YFHE26og+9mp5OBhlY8E88c4rdfwR7hUHByLKC5213Zw8dZhdg1KfIWZ0P/7HVPeEXwuLCLmyr1sR2TVyM0MoIhvqLFPbDkbFqbWTfZWCkoUYvmxDEGgVb8yPdWSnaxBKgWshR3CAw9W1+YLL57qBL5jHO6DSeT1PxEpJasLhFtO3PoGRpZstFKffUyjGIO/650DlKQfv+sfmt6LARK3gbcK1dVFhJAM7vIDHEHSSEin6QtHsrNsWKmYslHwJReNy5x7hci8347Nvs7ap3hZyiwqPPT0vYKyKNAOC5Scd+7wVai06iE7NiM47LMXVQNcLSLTFCwF+BDda2fdsBHKOy3syKjSHnMrlywg1B9KVSldUa/cWmygFW/Dz2lrYv9PmgApdR26dEHuloEuZ2xID33xKIT5O5f2Cpbc3uF8YYJcCuhccCLX+3cfLlTjdcyy9Hp1cNEG3gpA0S/Nr1HElEDH/b4B7uESJJsC+cZE1qqtXBZNZMNsU5EKXc60aBn7ZgTQVbWu0YwOrZD5VBLKh80X4MhoQ= diff --git a/MANIFEST.in b/MANIFEST.in index 1a59b85..903bcec 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ include LICENSE include CHANGELOG.md -include README.md \ No newline at end of file +include README.md +include version.py \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..b8ac236 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,25 @@ +environment: + + matrix: + + # For Python versions available on Appveyor, see + # http://www.appveyor.com/docs/installed-software#python + # The list here is complete (excluding Python 2.6, which + # isn't covered by this document) at the time of writing. + + - PYTHON: "C:\\Python27" + - PYTHON: "C:\\Python27-x64" + - PYTHON: "C:\\Python34" + - PYTHON: "C:\\Python34-x64" + +install: + # We need wheel installed to build wheels + - "%PYTHON%\\python.exe -m pip install --upgrade -r build_requirements.txt" + - set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH% + - +build: off + +test_script: + - "pwd" + - "ls" + - ps: tox -r diff --git a/requests.txt b/requests.txt deleted file mode 100644 index f229360..0000000 --- a/requests.txt +++ /dev/null @@ -1 +0,0 @@ -requests diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..4b2cb9a --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,2 @@ +coverage==3.7.1 +coveralls \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 5240a7d..d095256 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,27 @@ from setuptools import setup +import version setup(name='iotile_cloud', - version='0.4.0', - description='Python client for https://iotile.cloud', - url='https://github.com/iotile/python_iotile_cloud', - author='David Karchmer', - author_email='david@arch-iot.com', - license='MIT', - packages=[ - 'iotile_cloud', - 'iotile_cloud.api', - 'iotile_cloud.stream' - ], - install_requires=[ - 'requests', - ], - zip_safe=False) \ No newline at end of file + version=version.version, + description='Python client for https://iotile.cloud', + url='https://github.com/iotile/python_iotile_cloud', + author='David Karchmer', + author_email='david@arch-iot.com', + license='MIT', + packages=[ + 'iotile_cloud', + 'iotile_cloud.api', + 'iotile_cloud.stream' + ], + install_requires=[ + 'requests' + ], + keywords=["iotile", "arch", "embedded", "hardware"], + classifiers=[ + "Programming Language :: Python", + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries :: Python Modules" + ], + zip_safe=False) diff --git a/tox.ini b/tox.ini index 5b3ab06..fb4a187 100644 --- a/tox.ini +++ b/tox.ini @@ -10,8 +10,6 @@ envlist = py27, py34, pypy, report deps = -r./requirements.txt -r./requirements-test.txt - coverage==3.7.1 - coveralls commands = coverage run --source=iotile_cloud setup.py test diff --git a/version.py b/version.py new file mode 100644 index 0000000..a371757 --- /dev/null +++ b/version.py @@ -0,0 +1 @@ +version = '0.4.1' \ No newline at end of file