-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
73 lines (65 loc) · 2.34 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
import codecs
from za_id_number import __version__
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
curr_dir = os.path.abspath(os.path.dirname(__file__))
long_description = (long_description,)
long_description_content_type = "text/markdown"
with codecs.open(os.path.join(curr_dir, "README.md"), encoding="utf-8") as readme:
long_description = readme.read()
tests_require = [
"pytest",
"pytest-cov",
"codecov",
"flake8",
"black",
"bandit",
"pytest-runner",
"python-dateutil",
]
setup(
name="za-id-number",
version=__version__,
description=" South African (RSA/ZA) ID number validation and easy data extraction Library.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/c-goosen/za_identity_number",
author="Christo Goosen",
author_email="[email protected]",
python_requires=">=3.5.0",
include_package_data=True,
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX :: BSD :: FreeBSD",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development",
"Typing :: Typed",
],
keywords="South Africa ID Number",
packages=find_packages(
exclude=["docs", "docs-src", "tests", "tests.*", "tutorial"]
),
setup_requires=["luhn >=0.2.0", "setuptools >= 67.4.0"],
install_requires=["luhn >= 0.2.0"],
test_suite="tests",
tests_require=tests_require,
extras_require={"dev": ["bandit", "black", "flake8"] + tests_require},
)