diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2017-06-16 11:08:15 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cbosdonnat@suse.com> | 2017-06-16 18:04:00 +0200 |
commit | 6f80e1a8182acdbd1d49e21a4451850d6df4f05c (patch) | |
tree | 94f63829ac2a14ddcf6381fb456cd762f5e791bf /setup.py | |
parent | 2eac1ead9c973b42cd5524e8defb0d766b2b306a (diff) | |
download | virt-bootstrap.git-6f80e1a8182acdbd1d49e21a4451850d6df4f05c.tar.gz virt-bootstrap.git-6f80e1a8182acdbd1d49e21a4451850d6df4f05c.tar.xz virt-bootstrap.git-6f80e1a8182acdbd1d49e21a4451850d6df4f05c.zip |
Use setuptools (setup.py) for installation
- 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
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..3fe759f --- /dev/null +++ b/setup.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python +# -*- coding: utf-8; -*- + +import codecs +import os +from setuptools import setup + + +def read(fname): + """ + Utility function to read the text file. + """ + path = os.path.join(os.path.dirname(__file__), fname) + with codecs.open(path, encoding='utf-8') as fobj: + return fobj.read() + + +setup( + name='virt-bootstrap', + version='0.1.0', + author='Cedric Bosdonnat', + author_email='cbosdonnat@suse.com', + description='Container bootstrapping tool', + license="GPLv3", + long_description=read('README.md'), + url='https://github.com/cbosdo/virt-bootstrap', + # What does your project relate to? + keywords='virtualization container rootfs', + package_dir={"": "src"}, + packages=['virtBootstrap'], + entry_points={ + 'console_scripts': [ + 'virt-bootstrap=virtBootstrap.virt_bootstrap:main', + ] + }, + classifiers=[ + # How mature is this project? Common values are + # 3 - Alpha + # 4 - Beta + # 5 - Production/Stable + 'Development Status :: 3 - Alpha', + + # Indicate who your project is intended for + 'Intended Audience :: System Administrators', + 'Intended Audience :: Developers', + + # Pick your license as you wish (should match "license" above) + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', + + # Specify the Python versions you support here. In particular, ensure + # that you indicate whether you support Python 2, Python 3 or both. + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6' + ] +) |