DEPRECATED -- Rewritten and moved to https://github.com/NiklasRosenstein/shut/. 🌊 Shore is a distribution and release management tool for pure Python packages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
870 B

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: python:3.7
environment:
TEST_PYPI_TOKEN: {from_secret: TEST_PYPI_TOKEN}
commands:
- git fetch
- pip install twine pytest -e . -q
- pytest
- shore status
- shore verify --tag "$DRONE_TAG" --update-check=ignore
- shore bump git
- echo "[testpypi]\nusername = __token__\npassword = $TEST_PYPI_TOKEN\n" >> ~/.pypirc
- shore build setuptools
#- shore publish pypi --test
- name: publish
image: python:3.7
environment:
PYPI_TOKEN: {from_secret: PYPI_TOKEN}
commands:
- git checkout .
- pip install twine -e . -q
- shore verify --tag "$DRONE_TAG" --tag-check=require --update-check=ignore
- git diff
- echo "[pypi]\nusername = __token__\npassword = $PYPI_TOKEN\n" >> ~/.pypirc
- shore publish pypi
depends_on:
- build
when:
event:
- tag