Skip to content

Commit 2ff2987

Browse files
committed
Adding setup.py
1 parent fcb1a18 commit 2ff2987

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ sudo service lxc-net restart
2626
## Running locally
2727

2828
```
29+
git clone https://github.com/m4n3dw0lf/flask-lxc
2930
sudo pip install -r requirements.txt
3031
sudo python run.py
3132
```
3233

3334
## Importing as blueprint on your flask app
3435

36+
- install the package
37+
38+
```
39+
pip install flask_lxc
40+
```
41+
42+
- register the blueprint
43+
3544
```
3645
from flask import Flask
3746
from flask_lxc import lxc_api

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from distutils.core import setup
2+
3+
setup(
4+
name='flask-lxc',
5+
packages=['flask_lxc'],
6+
version='0.0.1',
7+
description='Flask LXC API Blueprint',
8+
author='Angelo Moura',
9+
author_email='[email protected]',
10+
url='https://github.com/m4n3dw0lf/flask-lxc',
11+
download_url='https://github.com/m4n3dw0lf/flask-lxc/archive/0.0.1.tar.gz',
12+
install_requires=['Flask>=0.10.1','lxc-python2>=0.1']
13+
)

0 commit comments

Comments
 (0)