🌊 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.
 

38 lines
870 B

  1. ---
  2. kind: pipeline
  3. type: docker
  4. name: default
  5. steps:
  6. - name: build
  7. image: python:3.7
  8. environment:
  9. TEST_PYPI_TOKEN: {from_secret: TEST_PYPI_TOKEN}
  10. commands:
  11. - git fetch
  12. - pip install twine pytest -e . -q
  13. - pytest
  14. - shore status
  15. - shore verify --tag "$DRONE_TAG" --update-check=ignore
  16. - shore bump git
  17. - echo "[testpypi]\nusername = __token__\npassword = $TEST_PYPI_TOKEN\n" >> ~/.pypirc
  18. - shore build setuptools
  19. #- shore publish pypi --test
  20. - name: publish
  21. image: python:3.7
  22. environment:
  23. PYPI_TOKEN: {from_secret: PYPI_TOKEN}
  24. commands:
  25. - git checkout .
  26. - pip install twine -e . -q
  27. - shore verify --tag "$DRONE_TAG" --tag-check=require --update-check=ignore
  28. - git diff
  29. - echo "[pypi]\nusername = __token__\npassword = $PYPI_TOKEN\n" >> ~/.pypirc
  30. - shore publish pypi
  31. depends_on:
  32. - build
  33. when:
  34. event:
  35. - tag