diff --git a/.travis.yml b/.travis.yml index 5e26550..b3c6023 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ -language: generic - +language: python +os: linux env: global: - SETUP_DIR=$TRAVIS_BUILD_DIR/. @@ -11,85 +11,53 @@ before_install: - pip install coverage - pip install codecov - pip install pytest - install: - pip install .[all] - jobs: fast_finish: true include: - - stage: AMD64 python: 3.6 - os: linux dist: xenial - language: python after_success: - bash <(curl -s https://codecov.io/bash) - - python: 3.6 - os: linux dist: bionic - language: python if: branch = master - - python: 3.7 - os: linux dist: xenial - language: python if: branch = master - - python: 3.7 - os: linux dist: bionic - language: python if: branch = master - - stage: ARM64 python: 3.6 - os: linux arch: arm64 dist: xenial - language: python if: branch = master - - python: 3.6 - os: linux arch: arm64 dist: bionic - language: python if: branch = master - - python: 3.7 - os: linux arch: arm64 dist: xenial - language: python if: branch = master - - python: 3.7 - os: linux arch: arm64 dist: bionic - language: python if: branch = master - - - stage: Deploy - before_install: skip - install: - - pip install .[all] --user - script: skip - deploy: - skip_cleanup: true - provider: pypi - user: __token__ - password: - secure: lWsCeSxHrsWBIip86Y/ZRpKQ1nXwIR+qSgky2njs+dxIhioTu4BC/gwVuHCfq77m4tJWhh5mHl0mbRd+fqj3T6L8QDuDE12sN4OOWPWzxnGqST6q9i/5e7EnwTEa62Ux4iPd6pv+kDt0rdUKDpB7De3PaJ2oVsHEnYBj6zdaTAqdDWD46ZQZAfdSpAQH7hgMhRsD8PO7ah8tIoKpjrdveqmf8S2txph90fExx81yCP8JPjFXBvPuge9wubY+Vg7Zf+uF1ARfftwopW7jKjD5jmJPE2q13A2dzGUSeyK0ht+FkB22EgLnBUDSBLxM+jEEb6XGmtLDon35iMQgxe7cEK8dtCz3kfHvfClf8givf3Qc8QzKHX+Vdczmo5iykXxfMpAmmbpV5DhM4yi5VZB6ZSQsHRpi6NsTykGqLoPPfCzEBunlmGuyfQM8J/7MO8O12HMsFqUO6RRlmu06AQAULYnyly3jYgif+tksiUNqaMdssVs26RRkeGkMK/oCgQTzjlxKqSCk2TOb0dcnWKX54GlorTM2moduRJ82labpfxNNam3yYPpQmOA4jjTW1/fq/fdWCBxfigXGelYe041xkA9QMWrJrKZSMvnxbm/13lzf+Z8L2yo62tXkdKTpiA39k3eWsr63T3ViR9bE1jYE423yhU4/lk7NQKQUUMV5Ulc= - on: - tags: true - condition: $TRAVIS_TAG =~ ^v[0-9]* - distributions: "sdist bdist_wheel" - + - stage: PyPi + python: 3.6 + dist: xenial + if: tag IS present + before_install: + - pip install twine + - pip install --upgrade setuptools wheel + script: + - python setup.py install + - python -m twine upload dist/*.egg -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}" + script: - coverage run -m pytest -v tests.py - coverage xml diff --git a/roboglia/_version.py b/roboglia/_version.py index 2792152..9123cf0 100755 --- a/roboglia/_version.py +++ b/roboglia/_version.py @@ -1 +1 @@ -__version__ = '0.0.7' +__version__ = '0.0.8' diff --git a/setup.py b/setup.py index 044f617..05e974a 100755 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ def version(): author='Alex Sonea', author_email='alex.sonea@gmail.com', description='Robotics Framework unsing Dynamixel SDK, I2C, SPI', - long_description=open('README.md').read(), + long_description=open('README.md', encoding='utf-8').read(), url='https://github.com/sonelu/roboglia', license='GNU GENERAL PUBLIC LICENSE Version 3', classifiers=[