forked from stlehmann/pdftools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·36 lines (30 loc) · 1.04 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·36 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
import os
import sys
from setuptools import setup
import versioneer
# use pandoc to convert README.md to README.rst
if any(s in sys.argv for s in ("upload", "register")):
os.system("pandoc {0} -o {1}".format("README.md", "README.rst"))
if os.path.exists("README.rst"):
long_description = open("README.rst").read()
os.remove("README.rst")
else:
long_description = ""
setup(
name='pdftools',
version=versioneer.get_version(),
packages=['pdftools'],
scripts=['pdfsplit.py', 'pdfmerge.py', 'pdfrotate.py', 'pdfzip.py',
'pdfinsert.py', 'pdfremove.py', 'pdfadd.py', 'pdfcopy.py'],
url='https://github.com/MrLeeh/pdftools',
license='MIT',
author='Stefan Lehmann',
author_email='Stefan.St.Lehmann@gmail.com',
description='A collection of convenience scripts for pdf manipulation, '
'based on the PyPdf2 package.',
long_description=long_description,
install_requires=['PyPdf2'],
maintainer='Stefan Lehmann',
cmdclass=versioneer.get_cmdclass()
)