Giter Site home page Giter Site logo

anitya-devpi-demo's Introduction

Notes

  • anitya doesn't harvest package metadata (we would have to write this ourself)
  • anitya uses probably cron for scheduling (that's what upstream has)
  • we need to poll very likely
  • once a new release is found, anitya posts a message to fedmsg and new-hotness picks it up and processes it
  • will pipeline have message bus?
  • we can write our own fedmsg consumer which will forward messages about new releases
  • anitya has support for vast amount of backends (npm, PyPI, maven, ruby, cpan, github, ...)

Demo

Let's try a proof of concept where we try to release a package to our locally running devpi and let anitya to pick up the release.

Guide

Build and run both services

$ docker-compose up

(yes, it's one dead-simple command)

devpi

We need to set up an account on devpi:

$ docker exec -ti anityadevpidemo_devpi_1 bash
devpi $ devpi use http://localhost:5001
devpi $ devpi login root --password ''
devpi $ devpi user -m root password=123

And create index:

devpi index -c demo
devpi use demo

We are all set to upload our package:

cd demo_package/
devpi upload --no-vcs

test REST API:

$ curl -v -H "Accept: application/json" http://localhost:5001/root/demo/demo-package

URL is constructed like this:

/<user>/<namespace>/<project>

anitya-devpi-demo's People

Contributors

tomastomecek avatar

Watchers

 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.