-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (45 loc) · 1.62 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
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from clarity_api.version import __version__, __author__
from pathlib import Path
import os
import re
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
readme = Path("README.md").read_text()
version = __version__
requirements = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"), session=PipSession()
)
readme = re.sub(r"Version: [0-9]*\.[0-9]*\.[0-9][0-9]*", f"Version: {version}", readme)
with open("README.md", "w") as readme_file:
readme_file.write(readme)
description = "Microsoft Clarity Data Export API"
setup(
name="clarity-api",
version=f"{version}",
description=description,
long_description=f"{readme}",
long_description_content_type="text/markdown",
url="https://github.com/Knuckles-Team/clarity-api",
author=__author__,
author_email="knucklessg1@gmail.com",
license="MIT",
packages=["clarity_api"],
include_package_data=True,
install_requires=[str(requirement.requirement) for requirement in requirements],
py_modules=["clarity_api"],
package_data={"clarity_api": ["clarity_api"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: Public Domain",
"Environment :: Console",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)