From 2f2cdd13ae0a1173e9276c48e4144505b47f5d2c Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 8 Nov 2019 13:37:04 +0200 Subject: [PATCH 1/3] Deploy to PyPI from Travis CI --- .travis.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3d87fe5f..ff662675 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,4 +38,29 @@ after_script: - python debug-info.py after_success: - - codecov +- codecov + +deploy: + - provider: pypi + server: https://test.pypi.org/legacy/ + on: + tags: false + repo: html5lib/html5lib-python + branch: master + condition: $TOXENV = lint + user: __token__ + password: + secure: "TODO" + distributions: sdist --format=gztar bdist_wheel + skip_existing: true + - provider: pypi + on: + tags: true + repo: html5lib/html5lib-python + branch: master + condition: "$TOXENV = lint" + user: __token__ + password: + secure: "TODO" + distributions: sdist --format=gztar bdist_wheel + skip_existing: true From 98ff5ca7ccb84b9f383f06a9bfa864894a424c7d Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 14 Nov 2019 11:21:54 +0200 Subject: [PATCH 2/3] Update build job that performs the deploy --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff662675..c8381490 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,7 @@ deploy: tags: false repo: html5lib/html5lib-python branch: master - condition: $TOXENV = lint + condition: "$TOXENV = py36-base" user: __token__ password: secure: "TODO" @@ -58,7 +58,7 @@ deploy: tags: true repo: html5lib/html5lib-python branch: master - condition: "$TOXENV = lint" + condition: "$TOXENV = py36-base" user: __token__ password: secure: "TODO" From 9e35b4199bd3b69dafa1a87bfa9dc1c1f5850c2a Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 14 Nov 2019 11:44:26 +0200 Subject: [PATCH 3/3] Update build job that performs the deploy --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c8381490..7a1affba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,8 @@ deploy: tags: false repo: html5lib/html5lib-python branch: master - condition: "$TOXENV = py36-base" + python: "3.6" + condition: "$TOXENV = base" user: __token__ password: secure: "TODO" @@ -58,7 +59,8 @@ deploy: tags: true repo: html5lib/html5lib-python branch: master - condition: "$TOXENV = py36-base" + python: "3.6" + condition: "$TOXENV = base" user: __token__ password: secure: "TODO"