CPI Ordering System (the old version)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

101 lines
2.0 KiB

7 years ago
.. highlight:: shell
============
Installation
============
From sources
------------
7 years ago
The sources for Ordr2 can be downloaded from the `Git repo`_.
You can clone the public repository:
7 years ago
.. code-block:: console
$ git clone https://git.cpi.imtek.uni-freiburg.de/holgi/ordr2
7 years ago
You should create a new virtual environment prior to installing and activate it
7 years ago
.. code-block:: console
7 years ago
$ python3 -m venv venv-ordr2
$ source venv-ordr2/bin/activate
7 years ago
Once you have a copy of the source, you can install it with:
7 years ago
.. code-block:: console
7 years ago
$ pip install .
7 years ago
.. _Git repo: https://git.cpi.imtek.uni-freiburg.de/holgi/ordr2
7 years ago
Stable release (CURRENTLY NOT AVAILABLE)
----------------------------------------
7 years ago
To install Ordr2, run this command in your terminal:
7 years ago
.. code-block:: console
$ pip install ordr2
7 years ago
This is the preferred method to install Ordr2, as it will always install the
most recent stable release.
7 years ago
If you don't have `pip`_ installed, this `Python installation guide`_ can guide
you through the process.
7 years ago
.. _pip: https://pip.pypa.io
.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
7 years ago
Dependencies
------------
These are the top-level packages that are needed by the webapp and why. They
rely propably on other packages as well.
pyramid
the framework for the web applicatoin
pyramid_debugtoolbar
debugging the web application in the browser
pyramid_jinja2
Jina2 templating engine for the pyramid web framework
pyramid_tm
automatic transaction management based on the request life cycle
SQLAlchemy
database abstraction
transaction
transaction management
waitress
wsgi server for developement
zope.sqlalchemy
required by pyramid_tm transaction binding
For running tests
~~~~~~~~~~~~~~~~~
pytest
for testing python projects
pytest-cov
test coverage report for pytest
pytest-runner
required for `test` command in setup.py
WebTest
run functional or integration tests on the web application