2013-02-05 10:10:14 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from setuptools import setup
|
2013-02-05 11:13:26 +01:00
|
|
|
import os
|
2013-07-14 12:01:27 +02:00
|
|
|
import platform
|
2013-02-05 11:13:26 +01:00
|
|
|
|
2013-07-20 03:19:44 +02:00
|
|
|
import pdfparanoia
|
|
|
|
|
2013-02-05 11:13:26 +01:00
|
|
|
long_description = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
|
2013-02-05 10:10:14 +01:00
|
|
|
|
2013-07-14 12:01:27 +02:00
|
|
|
# pdfminer isn't cross-version compatible but a py3k port is in PyPI
|
|
|
|
if platform.python_version() >= "3.0.0":
|
|
|
|
dependencies = ["pdfminer3k>=1.3.0"]
|
|
|
|
else:
|
2013-12-07 00:14:41 +01:00
|
|
|
dependencies = ["pdfminer>=20131113"]
|
2013-07-14 12:01:27 +02:00
|
|
|
|
2013-07-20 03:19:44 +02:00
|
|
|
packages = [
|
|
|
|
"pdfparanoia",
|
|
|
|
"pdfparanoia.plugins",
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="pdfparanoia",
|
|
|
|
version=pdfparanoia.__version__,
|
2013-02-05 10:10:14 +01:00
|
|
|
url="https://github.com/kanzure/pdfparanoia",
|
|
|
|
license="BSD",
|
|
|
|
author="Bryan Bishop",
|
|
|
|
author_email="kanzure@gmail.com",
|
2013-02-05 11:13:26 +01:00
|
|
|
maintainer="Bryan Bishop",
|
|
|
|
maintainer_email="kanzure@gmail.com",
|
2013-02-05 10:10:14 +01:00
|
|
|
description="pdf watermark remover library for academic papers",
|
2013-02-05 11:13:26 +01:00
|
|
|
long_description=long_description,
|
2020-09-07 16:21:07 +02:00
|
|
|
long_description_content_type="text/markdown",
|
2013-07-14 12:01:27 +02:00
|
|
|
install_requires=dependencies,
|
2013-07-20 03:19:44 +02:00
|
|
|
packages=packages,
|
2013-02-09 16:43:12 +01:00
|
|
|
scripts=["bin/pdfparanoia"],
|
2013-02-05 10:10:14 +01:00
|
|
|
platforms="any",
|
2013-02-05 11:28:42 +01:00
|
|
|
zip_safe=False,
|
2013-02-05 10:10:14 +01:00
|
|
|
classifiers=[
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
2013-03-22 00:37:34 +01:00
|
|
|
# Uses argparse and with statement; 2.7+
|
2013-02-05 10:10:14 +01:00
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.1",
|
|
|
|
"Programming Language :: Python :: 3.2",
|
|
|
|
"Programming Language :: Python :: 3.3",
|
|
|
|
]
|
|
|
|
)
|