mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
man page install support
This commit is contained in:
parent
65fea84bdd
commit
520fbdd484
4 changed files with 28 additions and 5 deletions
12
CHANGELOG
12
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
|
||||
|
||||
|
|
2
PKG-INFO
2
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
|
||||
|
|
|
@ -7,7 +7,7 @@ import sys
|
|||
import argparse
|
||||
import subprocess
|
||||
|
||||
__version__ = "0.0.3"
|
||||
__version__ = "1.0.1"
|
||||
__author__ = "dslackw"
|
||||
__license__ = "GPLv3"
|
||||
|
||||
|
|
17
setup.py
17
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))
|
||||
|
|
Loading…
Reference in a new issue