forked from Arg0s1080/mrz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·43 lines (38 loc) · 1.5 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
#!/usr/bin/python3
# -*- coding: UTF8 -*-
from setuptools import setup
from sys import version_info, exit
from os import path
from mrz import __version__ as version
if version_info < (3, 4):
RED = "\33[31m"
END = "\033[0m"
print("%s%s%s" % (RED, "MRZ does not work on Python version < 3.4", END))
print("Your version is: %d.%d.%d" % (version_info.major, version_info.minor, version_info.micro))
exit(1)
parent = path.abspath(path.dirname(__file__))
with open(path.join(parent, "README.rst"), 'r') as readme:
long_description = readme.read()
setup(
name="mrz",
version=version,
description="Machine readable zone generator and checker for passports, visas, id cards and other travel documents",
license="GPLv3",
long_description=long_description,
author='Ivan Rincon',
author_email='ivan.rincon76@gmail.com',
url="https://github.com/Arg0s1080/mrz",
keywords="mrz passports visas id cards td1 td2 td3 mrva mrvb icao",
packages=["mrz", "mrz.base", "mrz.checker", "mrz.generator", "mrz.generator.dictionaries"],
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Security"
]
)