Holger Frey
7 years ago
5 changed files with 56 additions and 35 deletions
@ -1,10 +1,43 @@ |
|||||||
=========================== |
============================================== |
||||||
Ordr2 - CPI Ordering System |
Ordr2 - CPI Ordering System, php2python branch |
||||||
=========================== |
============================================== |
||||||
|
|
||||||
|
This is a rewrite in Python of the original Ordr system by Sebastian Sebald |
||||||
|
that can still be found here: https://github.com/sebald/Ordr |
||||||
|
|
||||||
Features |
|
||||||
|
Installation |
||||||
|
------------ |
||||||
|
|
||||||
|
Installation consists of three steps: |
||||||
|
|
||||||
|
1. clone the project and checkout the php2python branch |
||||||
|
> git clone https://git.cpi.imtek.uni-freiburg.de/holgi/ordr2 |
||||||
|
> cd ordr2 |
||||||
|
> git checkout php2pyton |
||||||
|
|
||||||
|
2. create a python virtual environment and activate it |
||||||
|
> python3 -m venv ordr-venv |
||||||
|
> source ordr-venv/bin/activate |
||||||
|
|
||||||
|
3. install the cloned package and deactivate the environment |
||||||
|
(ordr-venv) > pip install . |
||||||
|
> deactivate |
||||||
|
|
||||||
|
|
||||||
|
Updating |
||||||
-------- |
-------- |
||||||
|
|
||||||
* TODO |
updating consists of three steps: |
||||||
|
|
||||||
|
1. Update the source code |
||||||
|
> cd ordr2 |
||||||
|
> git pull origin php2python |
||||||
|
|
||||||
|
2. activate the python virtual environment |
||||||
|
> source ordr-venv/bin/activate |
||||||
|
|
||||||
|
3. install the new version and deactivate the environment |
||||||
|
(ordr-venv) > pip install . |
||||||
|
> deactivate |
||||||
|
|
||||||
|
@ -1,25 +0,0 @@ |
|||||||
#!/usr/bin/env python |
|
||||||
# -*- coding: utf-8 -*- |
|
||||||
|
|
||||||
''' Tests for `ordr2` package. ''' |
|
||||||
|
|
||||||
import pytest |
|
||||||
|
|
||||||
|
|
||||||
import ordr2 |
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture |
|
||||||
def response(): |
|
||||||
''' Sample pytest fixture. |
|
||||||
|
|
||||||
See more at: http://doc.pytest.org/en/latest/fixture.html |
|
||||||
''' |
|
||||||
# import requests |
|
||||||
# return requests.get('https://github.com/audreyr/cookiecutter-pypackage') |
|
||||||
|
|
||||||
|
|
||||||
def test_content(response): |
|
||||||
''' Sample pytest test function with the pytest fixture as an argument. ''' |
|
||||||
# from bs4 import BeautifulSoup |
|
||||||
# assert 'GitHub' in BeautifulSoup(response.content).title.string |
|
Reference in new issue