rqr

Python ReQuiRements

Downloads
121
Stars
0
Committers
1

I am happy to see that the original idea of this project has been realised with pipenv. Please use it if you should end on this readme, thanks!

https://github.com/pypa/pipenv

rqr

Python ReQuiRements.

Handle requirements for python. Based on pip, inspired by npm. And get rid of all those different requirements.txt files.

WARNING: This is alpha and a pure prototype at the moment.

Installation

.. code:: bash

$ pip install rqr

Usage

Install


Just like ``pip install`` with the possibility to ``--save`` your required package.

.. code:: bash

    $ rqr install --save django ipython

    {'django': '1.9.7', 'ipython: '4.2.1'}

Does also support ``--save-development`` and ``--save-production``. Default is ``base`` which is shared across the other two.


List
~~~~

WARNING: This does display all managed requirements, but it does NOT say anything about the installed ones.

Shows all managed requirements, just like ``pip list``.

.. code:: bash

    $ rqr list

    base:
      - [email protected]
    development:
      - [email protected]

Update
~~~~~~

Checks for updates in your ``rqr.yaml`` file's packages. Does write new versions to file by default, to do otherwise use ``--dry-run`` flag.

.. code:: bash

    $ rqr update

    django 1.3.0 -> 1.9.7

Migrate

WARNING: Does override your rqr.yaml configuration if you had one before without any further warning.

Tries to discover existing requirements files or folders and migrate them. Uses current working directory and does not traverse directories deeply.

.. code:: bash

$ rqr migrate

Discovered dev-requirements.txt (development)
Discovered requirements/base.txt (base)
  - [email protected]
  - [email protected]
  - [email protected]
Discovered requirements/development.txt (development)
  - Invalid: -r base.txt
  - [email protected]
Discovered requirements/production.txt (production)
  - Invalid: -r base.txt
  - [email protected]
Discovered requirements-dev.txt (development)
Discovered requirements.txt (base)