diff --git a/CHANGELOG b/CHANGELOG index 0205d0be..f6aac329 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,15 @@ +09-05-2014 +Version 1.0.1 + +[Feature] - Added support install man page + + +09-05-2014 +Version 1.0.0 + +[Feature] - Added man page + + 09-05-2014 Version 0.0.3 diff --git a/PKG-INFO b/PKG-INFO index 2bb41a6b..f0ffbbcf 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: slpkg -Version: 0.0.3 +Version: 1.0.1 Author: dslackw Author-email: d zlatanidis at gmail com Maintainer: dslackw diff --git a/bin/slpkg b/bin/slpkg index c006c77f..c2ac2eca 100755 --- a/bin/slpkg +++ b/bin/slpkg @@ -7,7 +7,7 @@ import sys import argparse import subprocess -__version__ = "0.0.3" +__version__ = "1.0.1" __author__ = "dslackw" __license__ = "GPLv3" diff --git a/setup.py b/setup.py index 76de2001..bb1352e0 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,20 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import os, sys, shutil + from distutils.core import setup setup( name='slpkg', py_modules=['slpkg'], - version='0.0.3', + version='1.0.1, description="Python tool to manage Slackware packages", keywords=["slpkg", "upgrade", "install", "remove", "view", "slackpkg", "tool"], author="dslackw", author_email="d.zlatanidis@gmail.com", url="https://github.com/dslackw/slpkg", - download_url="https://github.com/dslackw/slpkg/archive/v0.0.3.tar.gz", + download_url="https://github.com/dslackw/slpkg/archive/v1.0.1.tar.gz", scripts=['bin/slpkg'], package_data={"": ["LICENSE", "README.rst", "CHANGELOG"]}, classifiers=[ @@ -21,6 +23,15 @@ setup( "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Development Status :: 0 - Alpha", - "Topic :: Internet :: Utilities"], + "Topic :: Intersetup.pynet :: Utilities"], long_description=open("README.rst").read() ) + +if 'install' in sys.argv: + man_path = "/tmp/SBo/package-slpkg/usr/man/man8/" + os.system("mkdir -p {}".format(man_path)) + if os.path.exists(man_path): + print("Installing man pages") + man_page = "man/slpkg.8" + shutil.copy2(man_page, man_path) + os.chmod(man_path + 'slpkg.8', int('444', 8))