forked from TheAwiteb/fatoora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (40 loc) · 1.38 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
from setuptools import setup, find_packages
import re
KEYWORD = ["fatoora", "Fatoora", "ZATCA", "QR-Code"]
with open("fatoora/version.py", "r", encoding="utf-8") as f:
version = re.search(
r'^version\s*=\s*"(.*)".*$', f.read(), flags=re.MULTILINE
).group(1)
with open("README.md", "r", encoding="utf-8") as readme_file:
long_description = readme_file.read()
with open("requirements.txt", encoding="utf-8") as require_file:
requires = [require.strip() for require in require_file]
setup(
name="fatoora",
version=version,
description="An unofficial package help developers to implement ZATCA (Fatoora) QR code easily which required for e-invoicing",
long_description=long_description,
long_description_content_type="text/markdown",
author="TheAwiteb",
author_email="[email protected]",
url="https://github.com/TheAwiteb/fatoora",
packages=find_packages(),
license="MIT",
keywords=KEYWORD,
test_suite="tests",
setup_requires=[
"pytest-runner",
],
tests_require=[
"pytest",
],
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
install_requires=requires,
)