diff --git a/Makefile b/Makefile index 4293f35..fc3fae8 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,8 @@ clean: lint: black pdfmajor + bandit -r pdfmajor + mypy pdfmajor test: ./venv/bin/python -m unittest discover tests diff --git a/setup.py b/setup.py index 9a79dc4..36a5c48 100644 --- a/setup.py +++ b/setup.py @@ -7,50 +7,46 @@ import sys # ============== # PARAMS # ============== -with open('README.md') as readme_file: +with open("README.md") as readme_file: SETUP = { "name": "pdfmajor", "version": "1.3.13", - "packages": find_packages(include=['pdfmajor*']), - "install_requires": [ - 'pycryptodome==3.8.2', - 'chardet==3.0.4', - 'Pillow>=6.2.0' - ], - 'extras_require': { - 'dev': [ - 'tqdm==4.32.1', - 'mkdocs==1.0.4', - 'flake8==3.8.4', - 'mypy==0.790', - 'black==20.8b1' + "packages": find_packages(include=["pdfmajor*"]), + "install_requires": ["pycryptodome==3.8.2", "chardet==3.0.4", "Pillow>=6.2.0"], + "extras_require": { + "dev": [ + "tqdm==4.32.1", + "mkdocs==1.0.4", + "mypy==0.790", + "black==20.8b1", + "bandit==1.6.2", ] }, - "description": 'PDF parser', + "description": "PDF parser", "long_description": readme_file.read(), - 'long_description_content_type': 'text/markdown', - "license": 'MIT/X', - "author": 'Ariel Sosnovsky + Yusuke Shinyama + Philippe Guglielmetti', - "author_email": 'ariel@sosnovsky.ca', - "url": 'https://github.com/asosnovsky/pdfmajor', + "long_description_content_type": "text/markdown", + "license": "MIT/X", + "author": "Ariel Sosnovsky + Yusuke Shinyama + Philippe Guglielmetti", + "author_email": "ariel@sosnovsky.ca", + "url": "https://github.com/asosnovsky/pdfmajor", "scripts": [ - 'tools/pdfconvert.py', + "tools/pdfconvert.py", ], "keywords": [ - 'pdf parser', - 'pdf converter', - 'text mining', + "pdf parser", + "pdf converter", + "text mining", ], "classifiers": [ - 'Programming Language :: Python', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Intended Audience :: Developers', - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: MIT License', - 'Topic :: Text Processing', + "Programming Language :: Python", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Topic :: Text Processing", ], } @@ -58,6 +54,7 @@ with open('README.md') as readme_file: # Update __init__.py # ============== from bin.recreate_init import update_pdfmajor__init___, update_current_version_lock + update_pdfmajor__init___(SETUP["version"], SETUP["long_description"]) update_current_version_lock(SETUP["version"])