PyPI Package Resource
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 for
outThe username for PyPI server authentication.
password: Required for
outThe password for PyPI server authentication.
test: Optional, default
trueto 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
python_version: Optional If multiple files have been uploaded for a package (e.g. source tarballs and wheels), download the file for the specified version instead of the file that was first uploaded.
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 python_version: source
get: Download the latest version
Additional files populated
version: the latest version
plan: - get: my-pypi-package
put: Upload a new version
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 .