-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (34 loc) · 1.02 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
from re import MULTILINE, search
from setuptools import setup
version = ""
with open("cloudflare_scan/__init__.py") as f:
version = search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), MULTILINE
).group(1)
if not version:
raise ValueError("Unable to find version string.")
setup(
name="cloudflarescan",
author="alexraskin",
description="Cloudflare URL Scanner SDK",
version=version,
url="https://github.com/alexraskin/cloudflare-url-scan",
author_email="<[email protected]>",
license="Mozilla Public License 2.0",
keywords=[
"module",
"Cloudflare",
"library",
"package",
"python",
"Cloudflare URL Scanner SDK",
],
long_description_content_type="text/markdown",
long_description=open("README.md", encoding="utf-8").read(),
install_requires=["httpx", "yarl"],
packages=["cloudflare_scan"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
],
)