| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Use pylint/pycodestyle modules instead of calling the executables
to ensure that Python 3 code is checked with Py 3 version of
pylint/pycodestyle.
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
|
|
|
|
| |
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
We should give Pylint the name of a python package or module. [1]
A python module is a file containing Python definitions and statements
or directory containing the input script (__init__.py) [2]
1: https://pylint.readthedocs.io/en/latest/user_guide/run.html#invoking-pylint
2: https://docs.python.org/2/tutorial/modules.html
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
|
|
|
|
|
|
| |
Clean up the file, tell the world we are now stable enough, generate
ChangeLog and AUTHORS files and add license header. Add the test files
to the distribution.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Later on when we will introduce libguestfs dependency, we would need
to add a dependency_links to setup.py. This is rather hacky and
https://caremad.io/posts/2013/07/setup-vs-requirement/ recommends
using requirements.txt.
Thus, to install the package when all dependencies are already
installed, the following command can be used:
python setup.py install
Otherwise, the recommended way is to use pip as follows:
pip install -r recommends.txt -e .
This will also download the guestfs python binding, build and install
it. However this would be skipped if installed from a linux distro
package if this one provides the egg-info.
|
|
|
|
|
|
|
| |
The find_packages() [1] function returns a list of package names
suitable for use as the packages argument to setup().
[1] http://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages
|
|
|
|
|
| |
Reduce the number of import statements and improve readability.
Update the unit tests to match these changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These changes aim to avoid the requirement for root privileges when
setting the password of root user on root file system.
The "-R, --root" flag of chpasswd is using chroot to apply changes in
root file system and this requires root privileges. [1]
Instead compute hash of the root password using passlib [2] and insert
the value in the /etc/shadow file in the rootfs.
[1] https://en.wikipedia.org/wiki/Chroot#Limitations
[2] http://passlib.readthedocs.io/en/stable/lib/passlib.hosts.html
|
|
|
|
|
| |
The project is now live on github's virt-manager/virt-bootstrap, reflect
this change in the setup.py
|
|
|
|
|
|
|
|
| |
To run the code style checks, run `python setup.py pylint`
Only errors could be reported using the option --errors-only.
Could be useful to run in interactive git rebase
Fix the reported pylint errors as well
|
|
- Rename "virt-bootstrap.py" to "virt_bootstrap.py" to avoid installation
issues. Reference: https://stackoverflow.com/a/30284007
Install:
$ sudo ./setup.py install
Clean:
$ sudo ./setup.py clean --all
Uninstall:
$ sudo pip uninstall virt-bootstrap
Or:
$ sudo ./setup.py install --record installed_files.txt
$ cat installed_files.txt | xargs sudo rm -rf
|