Move package description into package docstring (#87)
Convert Windows/DOS line endings CR/LF to Unix LF (again!) Add Python 3.6 to classifiers, update project URLpull/98/head
parent
5ef5484bbe
commit
e39800f14c
|
@ -1,6 +1,16 @@
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Fork of PDFMiner using six for Python 2+3 compatibility
|
||||||
|
|
||||||
|
PDFMiner is a tool for extracting information from PDF documents.
|
||||||
|
Unlike other PDF-related tools, it focuses entirely on getting and analyzing
|
||||||
|
text data. PDFMiner allows to obtain the exact location of texts in a page,
|
||||||
|
as well as other information such as fonts or lines.
|
||||||
|
It includes a PDF converter that can transform PDF files into other text
|
||||||
|
formats (such as HTML). It has an extensible PDF parser that can be used for
|
||||||
|
other purposes instead of text analysis.
|
||||||
|
"""
|
||||||
__version__ = '20170720'
|
__version__ = '20170720'
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print (__version__)
|
print(__version__)
|
||||||
|
|
29
setup.py
29
setup.py
|
@ -1,45 +1,42 @@
|
||||||
#from distutils.core import setup
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from pdfminer import __version__
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import pdfminer as package
|
||||||
|
|
||||||
requires = ['six', 'pycryptodome']
|
requires = ['six', 'pycryptodome']
|
||||||
if sys.version_info >= (3, 0):
|
if sys.version_info >= (3, 0):
|
||||||
requires.append('chardet')
|
requires.append('chardet')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pdfminer.six',
|
name='pdfminer.six',
|
||||||
version=__version__,
|
version=package.__version__,
|
||||||
packages=['pdfminer'],
|
packages=['pdfminer'],
|
||||||
package_data={'pdfminer': ['cmap/*.pickle.gz']},
|
package_data={'pdfminer': ['cmap/*.pickle.gz']},
|
||||||
install_requires=requires,
|
install_requires=requires,
|
||||||
description='PDF parser and analyzer',
|
description='PDF parser and analyzer',
|
||||||
long_description='''fork of PDFMiner using six for Python 2+3 compatibility
|
long_description=package.__doc__,
|
||||||
|
|
||||||
PDFMiner is a tool for extracting information from PDF documents.
|
|
||||||
Unlike other PDF-related tools, it focuses entirely on getting
|
|
||||||
and analyzing text data. PDFMiner allows to obtain
|
|
||||||
the exact location of texts in a page, as well as
|
|
||||||
other information such as fonts or lines.
|
|
||||||
It includes a PDF converter that can transform PDF files
|
|
||||||
into other text formats (such as HTML). It has an extensible
|
|
||||||
PDF parser that can be used for other purposes instead of text analysis.''',
|
|
||||||
license='MIT/X',
|
license='MIT/X',
|
||||||
author='Yusuke Shinyama + Philippe Guglielmetti',
|
author='Yusuke Shinyama + Philippe Guglielmetti',
|
||||||
author_email='pdfminer@goulu.net',
|
author_email='pdfminer@goulu.net',
|
||||||
url='http://github.com/pdfminer/pdfminer',
|
url='https://github.com/pdfminer/pdfminer.six',
|
||||||
scripts=[
|
scripts=[
|
||||||
'tools/pdf2txt.py',
|
'tools/pdf2txt.py',
|
||||||
'tools/dumppdf.py',
|
'tools/dumppdf.py',
|
||||||
'tools/latin2ascii.py',
|
'tools/latin2ascii.py',
|
||||||
],
|
],
|
||||||
keywords=['pdf parser', 'pdf converter', 'layout analysis', 'text mining'],
|
keywords=[
|
||||||
|
'pdf parser',
|
||||||
|
'pdf converter',
|
||||||
|
'layout analysis',
|
||||||
|
'text mining',
|
||||||
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 2.6',
|
'Programming Language :: Python :: 2.6',
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
'Programming Language :: Python :: 3.4',
|
'Programming Language :: Python :: 3.4',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
@ -47,4 +44,4 @@ PDF parser that can be used for other purposes instead of text analysis.''',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
'Topic :: Text Processing',
|
'Topic :: Text Processing',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue