Giter Club home page Giter Club logo

concourse-pypi-resource's Introduction

PyPI Package Resource

A Concourse CI resource for Python PyPI packages.

Docker image publicly available on Docker Hub: https://hub.docker.com/r/cfplatformeng/concourse-pypi-resource/.

Source Configuration

  • name: Required The name of the package.
  • username: Required for out The username for PyPI server authentication.
  • password: Required for out The password for PyPI server authentication.
  • test: Optional, default false Set to true 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.

Example

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

get: Download the latest version

No parameters.

Additional files populated

  • version: the latest version

Example

plan:
- get: my-pypi-package

put: Upload a new version

  • glob: Required A glob expression matching the package file to upload.

Example

plan:
- put: my-pypi-package
  params:
    glob: my_package-*.tar.gz

Development

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 .

concourse-pypi-resource's People

Contributors

mboldt avatar eramirez51 avatar drnic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.