1
0
mirror of https://github.com/kanzure/pdfparanoia.git synced 2024-12-04 23:15:52 +01:00
pdfparanoia/setup.py
Cathal Garvey 95e92420c9 Modified the "pdfparanoia" script in bin/ so it uses Argparse and the "with" context statement.
As python 2.6 was already commented as a potential environment, there seemed little
reason to not use Argparse rather than a sys.argv popping system; argparse offers
automatically generated usage documentation and can offer useful errors when input
is incorrect.

The "with" context statement is also highly excellent and should be used wherever
legacy support for old-timers using 2.6 is not needed.
2013-03-21 23:37:34 +00:00

42 lines
1.2 KiB
Python

# -*- coding: utf-8 -*-
from setuptools import setup
import os
import pdfparanoia
long_description = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
packages = [
"pdfparanoia",
"pdfparanoia.plugins",
]
setup(
name="pdfparanoia",
version=pdfparanoia.__version__,
url="https://github.com/kanzure/pdfparanoia",
license="BSD",
author="Bryan Bishop",
author_email="kanzure@gmail.com",
maintainer="Bryan Bishop",
maintainer_email="kanzure@gmail.com",
description="pdf watermark remover library for academic papers",
long_description=long_description,
packages=packages,
install_requires=["pdfminer>=0"],
scripts=["bin/pdfparanoia"],
platforms="any",
zip_safe=False,
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
# Uses argparse and with statement; 2.7+
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
]
)