A Concourse CI resource for Python PyPI packages.
Docker image publicly available on Docker Hub: https://hub.docker.com/r/cfplatformeng/concourse-pypi-resource/.
name
: Required The name of the package.username
: Required forout
The username for PyPI server authentication.password
: Required forout
The password for PyPI server authentication.test
: Optional, defaultfalse
Set totrue
to use the PyPI test server.repository_url
: Optional Set to a another pypi server such as pypicloud.repository
: Optional Set to a special index-server if it is specified in~/.pypirc
.
resource_types:
- name: pypi
type: docker-image
source:
repository: cfplatformeng/concourse-pypi-resource
resources:
- name: my-pypi-package
type: pypi
source:
name: my_package
username: user
password: pass
test: false
No parameters.
version
: the latest version
plan:
- get: my-pypi-package
glob
: Required A glob expression matching the package file to upload.
plan:
- put: my-pypi-package
params:
glob: my_package-*.tar.gz
To run the unit tests, go to the root of the repository and run:
PYTHONPATH=.:$PYTHONPATH python test/unittests.py
To build the docker image for the resource:
python setup.py sdist
docker build -t <username>/concourse-pypi-resource .