forked from italia/spid-cie-oidc-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (61 loc) · 1.91 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
import re
import os
import re
import sys
from glob import glob
from setuptools import setup, find_packages
SRC_FOLDER = '.'
PKG_NAME = 'spid_cie_oidc'
INSTALL_REQUIRES = [
"Django>=4.0,<5.0",
"cryptojwt>=1.8.2",
"pydantic>=1.8.2,<2.0",
"pytz>=2021.3",
"aiohttp>3.9,<3.10",
"requests>=2.20,<3.0",
"pydantic[email]",
"djagger"
]
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8') as readme:
README = readme.read()
with open(f'{SRC_FOLDER}{os.path.sep}{PKG_NAME}/__init__.py', 'r') as fd:
VERSION = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE
).group(1)
LICENSE = "License :: OSI Approved :: Apache Software License"
setup(
name=PKG_NAME,
version=VERSION,
description="SPID/CIE OIDC Federation Entity",
long_description=README,
long_description_content_type='text/markdown',
author='Giuseppe De Marco',
author_email='demarcog83@gmail.com',
license=LICENSE,
url=f"https://github.com/peppelinux/{PKG_NAME.replace('_', '-')}",
packages=[PKG_NAME, ],
package_dir={f"{PKG_NAME}": f"{SRC_FOLDER}/{PKG_NAME}"},
package_data={
f"{PKG_NAME}": [
i.replace(
f'{SRC_FOLDER}{os.path.sep}{PKG_NAME}{os.path.sep}', ''
)
for i in glob(
f'{SRC_FOLDER}{os.path.sep}{PKG_NAME}{os.path.sep}**',
recursive=True
)
if i and '__pycache__' not in i
]
},
classifiers=[
"Development Status :: 5 - Production/Stable",
LICENSE,
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules"],
install_requires=INSTALL_REQUIRES,
zip_safe=False,
)