-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (23 loc) · 769 Bytes
/
setup.py
File metadata and controls
27 lines (23 loc) · 769 Bytes
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
from setuptools import setup
def get_long_description():
import codecs
with codecs.open('readme.md', encoding='utf-8') as f:
readme = f.read()
try:
from pypandoc import convert
return convert(readme, 'rst', 'md')
except ImportError:
return ""
setup(name='pdfrename',
version='0.1',
description='A tool for renaming a batch of pdf files',
long_description=get_long_description(),
license='MIT',
author='Xavier Olive',
author_email='xo.olive@gmail.com',
packages=['pdfrename', ],
entry_points={'console_scripts':
['pdfrename = pdfrename.pdfrename:main']},
install_requires=['pdfminer'],
url="https://github.com/xoolive/pdfrename",
)