- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with devpi
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Manages devpi - PyPI server and packaging/testing/release tool
Installs devpi via pip, manages upstart/systemd script and service.
- Creates serverdir in /opt/devpi (configurable)
- Creates user devpi (configurable)
- Creates service devpi-server
- Installs pip package devpi-server
- Optionally installs pip package devpi-client
Requires python, pip and modern enough setuptools
Install it using PMT:
puppet module install unibet-devpi
Usage in its simplest form:
class { '::devpi': }
If you want the client installed as well:
class { '::devpi':
client => true
}
You may want to install devpi contained in a virtualenv in which case you could declare it as follows (using the stankevich-python module for virtualenv management):
$virtualenv = '/venv'
::python::virtualenv { $virtualenv:
ensure => present,
systempkgs => false,
timeout => 0,
}
::python::pip { 'devpi-server':
pkgname => 'devpi-server==2.1.5',
virtualenv => $virtualenv,
}
class { '::devpi':
virtualenv => $virtualenv
}
Setting custom port and host listener:
class { '::devpi':
listen_host => '127.0.0.1',
listen_port => 13141
}
The only external facing class should be "devpi". It uses the anchor pattern for class containment so you can form dependencies to Class['devpi'] and expect all resources declared within the devpi class to be realized.
Only tested on EL6 and EL7
We welcome all pull requests that comes with rspec tests covering the new functionality.
Tests can be executed locally using bundler:
bundle install
bundle exec rake lint
bundle exec rake validate
bundle exec rake spec