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 URL
pull/98/head
Peter Bittner 2017-08-18 08:13:15 +02:00 committed by Goulu
parent 5ef5484bbe
commit e39800f14c
3 changed files with 52 additions and 45 deletions

View File

@ -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__)

View File

@ -1,50 +1,47 @@
#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',
'Development Status :: 5 - Production/Stable', 'Programming Language :: Python :: 3.6',
'Environment :: Console', 'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers', 'Environment :: Console',
'Intended Audience :: Science/Research', 'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License', 'Intended Audience :: Science/Research',
'Topic :: Text Processing', 'License :: OSI Approved :: MIT License',
'Topic :: Text Processing',
], ],
) )