mirror of
https://github.com/KevinMidboe/delugeClient.git
synced 2025-10-29 12:00:13 +00:00
* Split wheel and tarball dist into separate make cmds * Add build for amd64 & arm64 arch + start of publish steps * test step indentation fking with lint * add missing pipenv command * test explicitly defining wheel version * try install requirements first * sync pipenv after install * fixed typo in pacakge name * Publish depends on build * Install python dependencies before publish * Twince check command before upload * If source is newer than pypi, exit 0 and continue pipeline * If source is newer than pypi, exit 0 and continue pipeline * Clearer output text for publish version * Clearer output text for publish version * Only run public package when interacting with master * Updated readme and license in setup.py * Remove test pypi publish ci step * Exclude publish step when PR towards master * Bumped package version to 0.3.2 * Try install built wheel with wildcard * Sign drone config file View docs for more info on signing: https://docs.drone.io/signature/
67 lines
1.0 KiB
YAML
67 lines
1.0 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Build and test amd64
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Build source
|
|
image: python:3.10
|
|
commands:
|
|
- make build
|
|
|
|
- name: Install
|
|
image: python:3.10
|
|
commands:
|
|
- make dist
|
|
- pip3 install -r requirements.txt
|
|
- pip3 install dist/*.whl
|
|
# - pipenv install pytest
|
|
|
|
# - name: Run tests
|
|
# image: python:3.10
|
|
# commands:
|
|
# pipenv run pytest
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Publish package to PyPi
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: Newer version to publish?
|
|
image: python:3.10
|
|
commands:
|
|
- pip3 install delugeClient-kevin -q -q
|
|
- bash publish_version?.sh
|
|
|
|
- name: PyPi publish
|
|
image: python:3.10
|
|
commands:
|
|
- make dist
|
|
- pip3 install twine
|
|
- twine upload dist/*
|
|
|
|
depends_on:
|
|
- Build and test amd64
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
|
|
---
|
|
kind: signature
|
|
hmac: 08793426ddd2274e2de166144dc15cd63fe6a2c0fd47382d28f20ececee84898
|
|
|
|
...
|