Commit e0d2f66c authored by Birin Sanchez's avatar Birin Sanchez

Use Pipenv for virtual envs. Add .html templates to built Python package.

Signed-off-by: Birin Sanchez's avatarBirin Sanchez <birin.sanchez@puri.sm>
parent 18f5daa9
include *.md
recursive-include purist *.html
recursive-include limitmonitor *.html
recursive-include ldapregister *.html
graft conf
graft docs
\ No newline at end of file
......@@ -46,6 +46,7 @@ WooCommerce = "==1.2.1"
# Sphinx==1.6.6
# sphinxcontrib-websupport==1.0.1
# urllib3==1.22
twine = "==1.12.1"
[requires]
python_version = "3.6"
This diff is collapsed.
......@@ -38,6 +38,28 @@ Model diagram generated with:
./manage.py graph_models --all-applications --group-models \
--verbose-name --output models.png
Build
-----
Follow these instructions to build LDH as a Python package:
```
$ apt-get install git
$ apt-get install libsasl2-dev libldap2-dev libssl-dev python3-dev supervisor uwsgi uwsgi-emperor uwsgi-plugin-python3 virtualenv gcc pipenv
$ git clone https://source.puri.sm/liberty/ldh_middleware.git
$ cd ldh_middleware
$ pipenv install --dev
$ pipenv shell
$ python setup.py sdist bdist_wheel
```
If everything works as expected you should end up with the files:
* `ldh_middleware-<version>-py3-none-any.whl`
* `ldh_middleware-<version>.tar.gz`
under dist/ directory.
Sharing and contributions
-------------------------
......
[metadata]
name = ldh-middleware
name = ldh_middleware
version = 0.0.1
description = A middleware application (with a user-facing web interface) for managing subscription-based accounts on a Liberty Deckplan Host (LDH).
license = AGPL-3.0-or-later
......@@ -13,7 +13,7 @@ classifiers =
[options]
include_package_data = True
scripts = ldh-middleware
scripts = ldh_middleware
packages = find:
install_requires =
Jinja2==2.10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment