Browse Source

Use virtualenv, rename src -> lxc_net

Fix imports accordingly
master
Théophile Bastian 2 years ago
parent
commit
003e774fc4
  1. 2
      .gitignore
  2. 0
      __init__.py
  3. 0
      lxc_net/__init__.py
  4. 6
      lxc_net/network.py
  5. 0
      lxc_net/settings.py
  6. 0
      lxc_net/templates/network.xml
  7. 2
      lxc_net/util.py
  8. 0
      lxc_net/xml_template.py
  9. 2
      requirements.txt

2
.gitignore vendored

@ -58,3 +58,5 @@ docs/_build/ @@ -58,3 +58,5 @@ docs/_build/
# PyBuilder
target/
# Virtualenv
venv/

0
src/__init__.py → __init__.py

0
lxc_net/__init__.py

6
src/network.py → lxc_net/network.py

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
""" Network objects """
import settings
import util
from xml_template import XMLTemplate
from . import settings
from . import util
from .xml_template import XMLTemplate
import uuid
import libvirt

0
src/settings.py → lxc_net/settings.py

0
src/templates/network.xml → lxc_net/templates/network.xml

2
src/util.py → lxc_net/util.py

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
""" Various utils """
import settings
from . import settings
class NumberedClass:

0
src/xml_template.py → lxc_net/xml_template.py

2
requirements.txt

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
libvirt-python
jinja2
Loading…
Cancel
Save