forked from ZeroPass/pymrtd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (35 loc) · 1.03 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
#!/usr/bin/env python3
import os
import sys
from setuptools import setup, find_packages
__version__ = '0.6.5'
__package_name__ = 'pymrtd'
__summery__ = 'Python implementation of ICAO 9303 MRTD standard aka Biometric Passport'
base_dir = os.path.dirname(__file__)
src_dir = os.path.join(base_dir, "src")
# When executing the setup.py, we need to be able to import ourselves, this
# means that we need to add the src/ directory to the sys.path.
sys.path.insert(0, src_dir)
setup(
name=__package_name__,
description=__summery__,
version=__version__,
package_dir={"": "src"},
packages=find_packages(where="src"),
include_package_data=True,
python_requires=">=3.9.11",
install_requires=[
'asn1crypto>=1.5.1',
'cryptography>=41.0.3'
],
extras_require={
'tests': [
'pytest>=7.1.0',
'pytest-depends>=1.0.1',
'pytest-datafiles>=2.0.0'
],
},
setup_requires=['pytest-runner'],
tests_require=['pytest>=7.1.0'],
test_suite='tests',
)