-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
44 lines (38 loc) · 1.61 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
# Copyright (c) 2022 Itz-fork
import os
from re import findall
from setuptools import setup, find_packages
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# Readme
if os.path.isfile("README.md"):
with open(("README.md"), encoding="utf-8") as readmeh:
big_description = readmeh.read()
else:
big_description = "Fake agent - Generate fake user agents on the fly"
# Version (Ref: https://github.com/pyrogram/pyrogram/blob/97b6c32c7ff707fd2721338581e7dad5072f745e/setup.py#L30)
with open("FakeAgent/__init__.py", encoding="utf-8") as f:
v = findall(r"__version__ = \"(.+)\"", f.read())[0]
setup(name="fake-agent",
version=v,
description="Generate fake user agents on the fly",
url="https://github.com/Itz-fork/Fake-agent",
author="Itz-fork",
author_email="itz-fork@users.noreply.github.com",
license="MIT",
packages=find_packages(),
download_url=f"https://github.com/Itz-fork/Fake-agent/releases/tag/fake-agent-{v}",
keywords=["user-agent", "fake-user-agent", "user agent generator"],
long_description=big_description,
long_description_content_type="text/markdown",
package_data={"FakeAgent": ["data/*.json"]},
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Education',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
)