depot package manager helps you manage pacakges
Project description
# depot-pm
a pacakge manager helps you to install packages from multiple package managers quickly
## Installation
```shell
pip install depot-pm
```
## Usage
* check version
```shell
depot-pm version
```
* install packages
```shell
depot-pm install
```
By default, depot-pm will find ```depot.yaml``` or ```depot.json``` from current working directory.
if depot-pm could not find these config files at currnet working directory, it will find in upper directory
until it reaches ```/```.
You could use ```--package-file``` to specify the path of package file.
## Congif file (depoy.yaml)
Check the sample file in source root (depot.yaml)
### Packages
It should contains at least one section: ```pacakges```. The packages section is a dictionary which
uses **installer name** as its key and **packages ot be installed** as value. (a list). So if you want to
use ```pip``` to install ```django 1.7``` and ```boto```, you should type:
```yaml
packages:
pip:
- django==1.7
- boto
```
So the sample file (depoy.yaml) will produce following commands on OS X (which uses ```brew``` but not ```yum```):
```shell
brew install youtube-dl
pip install taskr boto
gem install cocoapods
```
and following on CentOS (uses ```yum```):
```shell
sudo yum install -y wget
pip install taskr boto
gem install cocoapods
```
The format of package name could be any acceptable form of each installers.
### Installers
The ```installers``` section defines an installer. Installer configurations has following keys:
Key | Description | Default Value
----|-------------|---------------
sudo | boolean flag indicating wheather this installer should run with sudo command | False
os | boolean flag indicating this installer is an OS specific installer which be run before other installers. (non OS specific ones) | False
multiple | the installer could install multiple packages at ones | True
syntax | the template to generate command. Use [python's string format syntax](https://docs.python.org/3/library/string.html#formatspec) | {} install {}
command | the command name of this installer | {INSTALLER_NAME}
Currenty we have:
Installers | Config
-----------|--------
pip | {DEFAULT}
gem | {DEFAULT}
brew | {DEFAULE} but ```os``` is changed to ```true```
yum | {DEFAULE} but ```os``` and ```sudo``` are changed to ```true```. ```syntax``` is ```{} install -y {}```
## Contact
Use the issue tracker to contact me :smile:
## TODO
* support npm
* check package.json, requirements.txt, and other package file support.
a pacakge manager helps you to install packages from multiple package managers quickly
## Installation
```shell
pip install depot-pm
```
## Usage
* check version
```shell
depot-pm version
```
* install packages
```shell
depot-pm install
```
By default, depot-pm will find ```depot.yaml``` or ```depot.json``` from current working directory.
if depot-pm could not find these config files at currnet working directory, it will find in upper directory
until it reaches ```/```.
You could use ```--package-file``` to specify the path of package file.
## Congif file (depoy.yaml)
Check the sample file in source root (depot.yaml)
### Packages
It should contains at least one section: ```pacakges```. The packages section is a dictionary which
uses **installer name** as its key and **packages ot be installed** as value. (a list). So if you want to
use ```pip``` to install ```django 1.7``` and ```boto```, you should type:
```yaml
packages:
pip:
- django==1.7
- boto
```
So the sample file (depoy.yaml) will produce following commands on OS X (which uses ```brew``` but not ```yum```):
```shell
brew install youtube-dl
pip install taskr boto
gem install cocoapods
```
and following on CentOS (uses ```yum```):
```shell
sudo yum install -y wget
pip install taskr boto
gem install cocoapods
```
The format of package name could be any acceptable form of each installers.
### Installers
The ```installers``` section defines an installer. Installer configurations has following keys:
Key | Description | Default Value
----|-------------|---------------
sudo | boolean flag indicating wheather this installer should run with sudo command | False
os | boolean flag indicating this installer is an OS specific installer which be run before other installers. (non OS specific ones) | False
multiple | the installer could install multiple packages at ones | True
syntax | the template to generate command. Use [python's string format syntax](https://docs.python.org/3/library/string.html#formatspec) | {} install {}
command | the command name of this installer | {INSTALLER_NAME}
Currenty we have:
Installers | Config
-----------|--------
pip | {DEFAULT}
gem | {DEFAULT}
brew | {DEFAULE} but ```os``` is changed to ```true```
yum | {DEFAULE} but ```os``` and ```sudo``` are changed to ```true```. ```syntax``` is ```{} install -y {}```
## Contact
Use the issue tracker to contact me :smile:
## TODO
* support npm
* check package.json, requirements.txt, and other package file support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
depot-pm-0.0.7.tar.gz
(8.8 kB
view details)
File details
Details for the file depot-pm-0.0.7.tar.gz
.
File metadata
- Download URL: depot-pm-0.0.7.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 790ef1063337859d0ef0752846712b8f50633efcfa7be8f6546272395e312470 |
|
MD5 | 5bb06bef445272fb19a95508f6a65b05 |
|
BLAKE2b-256 | 61b54ac39f33aeb8b2d2224cd8538848c90f3dd38e3f45ef77f88a4a0c7c7ec9 |