summaryrefslogtreecommitdiffstats
path: root/setup.py
Commit message (Collapse)AuthorAgeFilesLines
* setup: Use pylint/pycodestyle modulesRadostin Stoyanov2018-03-121-22/+14
| | | | | | | | 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>
* setup: Use pylint-3 and pycodestyle-3Radostin Stoyanov2018-03-011-2/+15
| | | | Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
* pylint: Provide modules instead of filesRadostin Stoyanov2018-03-011-1/+1
| | | | | | | | | | | | 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>
* Prepare setup.py for releaseCédric Bosdonnat2017-09-071-20/+99
| | | | | | 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.
* Add man page for virt-bootstrapRadostin Stoyanov2017-08-281-0/+27
|
* Add --version flagRadostin Stoyanov2017-08-281-1/+5
|
* Use requirements.txt for dependenciesCédric Bosdonnat2017-08-031-4/+0
| | | | | | | | | | | | | | | | | | | | 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.
* setup: Use find_packages()Radostin Stoyanov2017-08-031-1/+1
| | | | | | | 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
* Use explicit importRadostin Stoyanov2017-08-031-7/+6
| | | | | Reduce the number of import statements and improve readability. Update the unit tests to match these changes.
* tests: Add test suiteRadostin Stoyanov2017-07-241-1/+4
|
* Drop need of root privileges to set root passwordRadostin Stoyanov2017-07-211-0/+5
| | | | | | | | | | | | | | 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
* setup: update project URLCédric Bosdonnat2017-06-251-1/+1
| | | | | The project is now live on github's virt-manager/virt-bootstrap, reflect this change in the setup.py
* Add automated check for code styleRadostin Stoyanov2017-06-191-1/+65
| | | | | | | | 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
* Use setuptools (setup.py) for installationRadostin Stoyanov2017-06-161-0/+57
- 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