-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
41 lines (36 loc) · 1.24 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
import os
import re
from setuptools import setup, find_packages
# Do not try to import the package to get its version.
_version_file = open(os.path.join(os.path.dirname(__file__), 'dokang_pdf', 'version.py'))
VERSION = re.compile(r"^VERSION = '(.*?)'", re.S).match(_version_file.read()).group(1)
def read(filename):
with open(filename) as fp:
return fp.read()
setup(
name='dokang_pdf',
version=VERSION,
description="PDF harvester for Dokang",
long_description='%s\n\n%s'.format(read('README.rst'), read('CHANGES.txt')),
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
author="Polyconseil",
author_email="[email protected]",
url='',
keywords='full-text search engine',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'dokang>=0.7.0',
'pdfminer3k>=1.3.4'
],
tests_require=[l for l in read('requirements_dev.txt').splitlines() if not l.startswith(('-', '#'))],
test_suite='tests',
)