From a6b70f6e7b054224952ea0b6651a8bf668c32917 Mon Sep 17 00:00:00 2001 From: sonelu Date: Fri, 8 May 2020 18:16:22 +0100 Subject: [PATCH 1/6] twine upload --- .travis.yml | 37 +++++++++++-------------------------- setup.py | 2 +- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5e26550..a029fc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ language: generic - env: global: - SETUP_DIR=$TRAVIS_BUILD_DIR/. @@ -11,14 +10,11 @@ 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 @@ -26,25 +22,21 @@ jobs: 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 @@ -52,44 +44,37 @@ jobs: 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 + python: 3.7 + os: linux + dist: bionic + if: "$TRAVIS_TAG =~ ^v[0-9]*" + before_install: + - pip install -U pip + - pip install twine 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" - + - pip install .[all] + script: + - python -m twine upload dist/* -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}" + script: - coverage run -m pytest -v tests.py - coverage xml 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=[ From 25e1c28e67374b98de0d0905423e71321e78e7f1 Mon Sep 17 00:00:00 2001 From: sonelu Date: Fri, 8 May 2020 18:27:35 +0100 Subject: [PATCH 2/6] try tag IS present --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a029fc9..583b4b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -66,7 +66,7 @@ jobs: python: 3.7 os: linux dist: bionic - if: "$TRAVIS_TAG =~ ^v[0-9]*" + if: tag IS present before_install: - pip install -U pip - pip install twine From f807eea054db245372deeff28f19728d322e6e78 Mon Sep 17 00:00:00 2001 From: sonelu Date: Fri, 8 May 2020 19:17:44 +0100 Subject: [PATCH 3/6] added language in travis --- .travis.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 583b4b7..e925565 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -language: generic +language: python env: global: - SETUP_DIR=$TRAVIS_BUILD_DIR/. @@ -62,16 +62,14 @@ jobs: dist: bionic language: python if: branch = master - - stage: Deploy - python: 3.7 + - stage: PyPi + python: 3.6 os: linux - dist: bionic + dist: xenial + language: python if: tag IS present before_install: - - pip install -U pip - pip install twine - install: - - pip install .[all] script: - python -m twine upload dist/* -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}" From 16c4c87fc91a736f98385bc756de3bc3b239dba4 Mon Sep 17 00:00:00 2001 From: sonelu Date: Fri, 8 May 2020 19:32:52 +0100 Subject: [PATCH 4/6] added wheel generation... --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index e925565..a9872b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -70,7 +70,9 @@ jobs: if: tag IS present before_install: - pip install twine + - pip install --upgrade setuptools wheel script: + - python setup.py sdist bdist_wheel - python -m twine upload dist/* -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}" script: From b072e5c73f451428adf59386c4576aed07565d63 Mon Sep 17 00:00:00 2001 From: sonelu Date: Fri, 8 May 2020 19:52:25 +0100 Subject: [PATCH 5/6] trying with .egg wheels don't seem to support direct dependency (embedded git+htpps) --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a9872b7..1506f2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,8 +72,8 @@ jobs: - pip install twine - pip install --upgrade setuptools wheel script: - - python setup.py sdist bdist_wheel - - python -m twine upload dist/* -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}" + - python setup.py install + - python -m twine upload dist/*.egg -u "${PYPI_USERNAME}" -p "${PYPI_PASSWORD}" script: - coverage run -m pytest -v tests.py From dd22b1ca3fa20fe432db782b39b0dc8ccfdb0b5b Mon Sep 17 00:00:00 2001 From: sonelu Date: Fri, 8 May 2020 20:04:29 +0100 Subject: [PATCH 6/6] version 0.0.8 with deplyment to PyPi --- .travis.yml | 19 +------------------ roboglia/_version.py | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1506f2d..b3c6023 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +os: linux env: global: - SETUP_DIR=$TRAVIS_BUILD_DIR/. @@ -17,56 +18,38 @@ jobs: 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: PyPi python: 3.6 - os: linux dist: xenial - language: python if: tag IS present before_install: - pip install twine 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'