-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
64 lines (61 loc) · 1.88 KB
/
setup.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ==============
# Dependencies
# ==============
from setuptools import setup, find_packages
import sys
# ==============
# PARAMS
# ==============
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'
]
},
"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": '[email protected]',
"url": 'https://github.com/asosnovsky/pdfmajor',
"scripts": [
'tools/pdfconvert.py',
],
"keywords": [
'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',
],
}
# ==============
# 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"])
# ==============
# Run Setup
# ==============
setup(**SETUP)