Skip to content
Snippets Groups Projects
Commit 78045e98 authored by nimrod's avatar nimrod
Browse files

- Added Vagrantfile.

- Imporoved docmentation for development.
parent 9c0192b9
No related branches found
No related tags found
No related merge requests found
...@@ -9,5 +9,7 @@ dist/ ...@@ -9,5 +9,7 @@ dist/
*.egg-info/ *.egg-info/
__pycache__/ __pycache__/
*.log *.log
.tox .tox/
.cache .cache/
.vagrant/
.idea/
recursive-include unshare recursive-include unshare
exclude .pre-commit-config.yaml Makefile exclude .pre-commit-config.yaml Makefile Vagrantfile
python-unshare python-unshare
############## ##############
This is a pure-Python module for accessing libc functions and macros needed This is a pure-Python module with no external dependecies for accessing libc
for dealing with Linux namespaces. functions and macros needed for dealing with Linux namespaces.
Development
-----------
Development has the following dependecies:
- Tox (install from PyPI by running (:code:`pip install tox`).
- libc headers, make and GCC (On Debian/Ubuntu install by running :code:`apt
install linux-libc-dev build-essential`).
Testing is done by running :code:`tox`. Auto-generated code (for now just
:code:`unshare/constants.py`) is generated by running :code:`make all`. For Mac
developers there's a Vagrant box defined (it optionally uses
`vagrant-gatling-rsync <https://github.com/smerrill/vagrant-gatling-rsync>`_).
TODO
----
- License.
- Changelog.
- Documentation.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "debian/jessie64"
if Vagrant.has_plugin?("vagrant-gatling-rsync")
config.gatling.latency = 2.5
config.gatling.time_format = "%H:%M:%S"
config.gatling.rsync_on_startup = true
end
config.vm.synced_folder ".", "/home/vagrant/python-unshare",
type: "rsync",
rsync__exclude: [".cache", ".tox", "*.egg-info", "*.swp", ".DS_Store", ".idea"]
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -yf build-essential linux-libc-dev python-pip python3-pip git
sudo pip install tox
SHELL
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment