diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3b0653a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/README.md b/README.md index 1e0743c..3f82b9d 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,12 @@ See documentation [here](https://asosnovsky.github.io/pdfmajor/). `python setup.py install` +### Pypi + * Install Python 3.6.4 or newer. + * install repo + + `pip install pdfmajor` + ## Terms and Conditions (This is so-called MIT/X License) diff --git a/doc-src/index.md b/doc-src/index.md index 1e0743c..3f82b9d 100644 --- a/doc-src/index.md +++ b/doc-src/index.md @@ -36,6 +36,12 @@ See documentation [here](https://asosnovsky.github.io/pdfmajor/). `python setup.py install` +### Pypi + * Install Python 3.6.4 or newer. + * install repo + + `pip install pdfmajor` + ## Terms and Conditions (This is so-called MIT/X License) diff --git a/pdfmajor/__init__.py b/pdfmajor/__init__.py index 96aa565..bb874cd 100644 --- a/pdfmajor/__init__.py +++ b/pdfmajor/__init__.py @@ -8,9 +8,3 @@ It includes a PDF converter that can transform PDF files into other text formats (such as HTML, XML, JSON). It has an extensible PDF parser that can be used for other purposes instead of text analysis. """ -__version__ = '1.0.0' - -if __name__ == '__main__': - print(__version__) - -from .converters import convert_file \ No newline at end of file diff --git a/setup.py b/setup.py index b080cdb..b115cd2 100644 --- a/setup.py +++ b/setup.py @@ -1,19 +1,21 @@ from setuptools import setup, find_namespace_packages import sys -import pdfmajor as package packages = find_namespace_packages(include=['pdfmajor.*']) +with open('README.md') as file: + long_description = file.read() + setup( name='pdfmajor', - version=package.__version__, + version='1.0.1', packages=packages, install_requires=[ 'pycryptodome', 'chardet' ], description='PDF parser', - long_description=package.__doc__, + long_description=long_description, license='MIT/X', author='Ariel Sosnovsky + Yusuke Shinyama + Philippe Guglielmetti', author_email='ariel@sosnovsky.ca', @@ -28,7 +30,7 @@ setup( ], classifiers=[ 'Programming Language :: Python', - 'Programming Language :: Python :: 3.6.4', + 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Development Status :: 5 - Production/Stable', 'Environment :: Console',