2010-02-21 11:14:57 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# -*- coding: iso-8859-1 -*-
|
|
|
|
# Copyright (C) 2010 Bastian Kleineidam
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
"""
|
|
|
|
Setup file for the distuils module.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import sys
|
2010-03-04 15:05:08 +00:00
|
|
|
if not hasattr(sys, "version_info") or sys.version_info < (2, 4, 0, "final", 0):
|
|
|
|
raise SystemExit("This program requires Python 2.4 or later.")
|
2010-03-01 15:01:23 +00:00
|
|
|
import os
|
2010-02-21 11:14:57 +00:00
|
|
|
from distutils.core import setup
|
|
|
|
|
|
|
|
AppName = "patool"
|
2010-03-18 18:32:54 +00:00
|
|
|
AppVersion = "0.9"
|
2010-02-21 11:14:57 +00:00
|
|
|
MyName = "Bastian Kleineidam"
|
|
|
|
MyEmail = "calvin@users.sourceforge.net"
|
|
|
|
|
2010-03-01 15:01:23 +00:00
|
|
|
data_files = []
|
|
|
|
if os.name == 'nt':
|
|
|
|
data_files.append(('share', ['doc/patool.txt']))
|
|
|
|
else:
|
|
|
|
data_files.append(('share/man/man1', ['doc/patool.1']))
|
|
|
|
|
2010-02-21 11:14:57 +00:00
|
|
|
setup (
|
|
|
|
name = AppName,
|
|
|
|
version = AppVersion,
|
2010-03-12 11:56:59 +00:00
|
|
|
description = "portable command line archive file manager",
|
2010-03-04 19:06:13 +00:00
|
|
|
long_description = """Various archive types can be created, extracted, tested and listed by
|
|
|
|
patool. The advantage of patool is its simplicity in handling archive
|
|
|
|
files without having to remember a myriad of programs and options.
|
|
|
|
|
|
|
|
The archive format is determined by the file(1) program and as a
|
|
|
|
fallback by the archive file extension.
|
|
|
|
|
2010-03-09 13:57:30 +00:00
|
|
|
patool supports 7z (.7z), ACE (.ace), ALZIP (.alz), AR (.a), ARC (.arc),
|
|
|
|
ARJ (.arj), BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO (.cpio),
|
|
|
|
DEB (.deb), GZIP (.gz), LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz),
|
2010-03-20 10:34:40 +00:00
|
|
|
LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), TAR (.tar),
|
2010-03-21 14:39:02 +00:00
|
|
|
XZ (.xz), ZIP (.zip, .jar) and ZOO (.zoo) formats. It relies on helper
|
|
|
|
applications to handle those archive formats (for example bzip2 for
|
|
|
|
BZIP2 archives).""",
|
2010-02-21 11:14:57 +00:00
|
|
|
author = MyName,
|
|
|
|
author_email = MyEmail,
|
|
|
|
maintainer = MyName,
|
|
|
|
maintainer_email = MyEmail,
|
|
|
|
license = "GPL",
|
2010-03-04 16:19:03 +00:00
|
|
|
url = "http://patool.sourceforge.net/",
|
|
|
|
download_url="http://sourceforge.net/projects/patool/files/",
|
2010-02-21 15:00:51 +00:00
|
|
|
packages = ['patoolib', 'patoolib.programs'],
|
2010-03-01 15:01:23 +00:00
|
|
|
data_files = data_files,
|
2010-02-21 11:14:57 +00:00
|
|
|
scripts = ['patool'],
|
2010-03-04 16:16:34 +00:00
|
|
|
keywords = "archive,manager",
|
|
|
|
classifiers = [
|
|
|
|
'Environment :: Console',
|
|
|
|
'Topic :: System :: Archiving',
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
],
|
2010-02-21 11:14:57 +00:00
|
|
|
)
|