Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-unshare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nspawn
python-unshare
Commits
78045e98
Commit
78045e98
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Added Vagrantfile.
- Imporoved docmentation for development.
parent
9c0192b9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+4
-2
4 additions, 2 deletions
.gitignore
MANIFEST.in
+1
-1
1 addition, 1 deletion
MANIFEST.in
README.rst
+22
-2
22 additions, 2 deletions
README.rst
Vagrantfile
+18
-0
18 additions, 0 deletions
Vagrantfile
with
45 additions
and
5 deletions
.gitignore
+
4
−
2
View file @
78045e98
...
@@ -9,5 +9,7 @@ dist/
...
@@ -9,5 +9,7 @@ dist/
*.egg-info/
*.egg-info/
__pycache__/
__pycache__/
*.log
*.log
.tox
.tox/
.cache
.cache/
.vagrant/
.idea/
This diff is collapsed.
Click to expand it.
MANIFEST.in
+
1
−
1
View file @
78045e98
recursive-include unshare
recursive-include unshare
exclude .pre-commit-config.yaml Makefile
exclude .pre-commit-config.yaml Makefile
Vagrantfile
This diff is collapsed.
Click to expand it.
README.rst
+
22
−
2
View file @
78045e98
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.
This diff is collapsed.
Click to expand it.
Vagrantfile
0 → 100644
+
18
−
0
View file @
78045e98
# -*- 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment