-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (50 loc) · 1.7 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (50 loc) · 1.7 KB
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
#!/usr/bin/env python
# long_description = """
# A python module for extraction of results from
# GGSIPU results pdf. It is capable of:-
#
# - Extraction of Results, Subjects details from pdfs.
# - Dumping the extracted data in JSON format.
# """
import sys
from os import path
from setuptools import setup
def version():
import re
base_dir = path.abspath(path.dirname(sys.argv[0]))
_VERSION = None
with open(path.join(base_dir, "ggsipu_result", "__init__.py")) as f:
_VERSION = re.search(r'__version__\s*=\s*"([^"]+)"', f.read()).group(1)
assert _VERSION
return _VERSION
with open(
path.join(path.abspath(path.dirname(__file__)), "README.md"), encoding="utf8"
) as f:
readme = f.read()
setup(
name="ggsipu_result",
version=version(),
packages=["ggsipu_result",],
install_requires=["pyxpdf>=0.2.1",],
description="GGSIPU Results PDF parser and analyzer",
long_description=readme,
long_description_content_type="text/markdown",
author="Ashutosh Varma",
author_email="ashutoshvarma11@live.com",
url="https://github.com/ashutoshvarma/ggsipu_result",
# scripts=[
# 'tools/dumppdf.py',
# ],
keywords=["ggsipu result", "ipu result converter", "cgpa calculator",],
python_requires=">=3.4",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3 :: Only",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Text Processing",
],
)