updated version control and setup scripts

This commit is contained in:
ari committed 2018-10-17 16:32:53 -04:00
1 parent 8383056d38
commit d634527a64
6 files changed
+163 -47

No files matched your search

+50 -37
View File
@@ -1,42 +1,55 @@
# ==============
# Dependencies
# ==============
from setuptools import setup, find_namespace_packages
import sys
packages = find_namespace_packages(include=['pdfmajor.*'])
# ==============
# PARAMS
# ==============
with open('README.md') as readme_file:
SETUP = {
"name": "pdfmajor",
"version": "1.0.4",
"packages": find_namespace_packages(include=['pdfmajor.*']),
"install_requires": [
'pycryptodome',
'chardet'
],
"description": 'PDF parser',
"long_description": readme_file.read(),
"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',
],
"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',
],
}
with open('README.md') as file:
long_description = file.read()
# ==============
# Update __init__.py
# ==============
from bin.recreate_init import update_pdfmajor__init___
update_pdfmajor__init___(SETUP["version"], SETUP["long_description"])
setup(
name='pdfmajor',
version='1.0.2',
packages=packages,
install_requires=[
'pycryptodome',
'chardet'
],
description='PDF parser',
long_description=long_description,
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',
],
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',
],
)
# ==============
# Run Setup
# ==============
setup(**SETUP)