This repository was archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
82 lines (67 loc) · 2.21 KB
/
Copy pathsetup.py
File metadata and controls
82 lines (67 loc) · 2.21 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
import os
import pathlib
import re
import setuptools
def get_version():
"""
Return package version as listed in `__version__`.
"""
with open(file=os.path.join(pathlib.Path(__file__).parent, "unalix", "__version__.py"), mode="r") as file:
content = file.read()
result = re.search('__version__ = "([0-9\.]+)"', content)
return result.group(1)
def get_long_description():
"""
Return the README.
"""
with open(file="README.md", mode="r") as file:
content = file.read()
return content
version = get_version()
long_description = get_long_description()
package_data = {
"unalix": [
"package_data/ca/ca-bundle.crt",
"package_data/other/redirects_from_body.json",
"package_data/policies/cookies_allow.json",
"package_data/rulesets/data.min.json",
"package_data/rulesets/unalix.json"
]
}
classifiers = [
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: Android",
"Topic :: Internet",
"Topic :: Security",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy"
]
setuptools.setup(
name="Unalix",
version=version,
author="SnwMds",
author_email="snwmds@tutanota.com",
description="Small, dependency-free, fast Python package for removing tracking fields from URLs.",
license="LGPL-3.0",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/AmanoTeam/Unalix",
project_urls={
"Bug Tracker": "https://github.com/AmanoTeam/Unalix/issues",
},
packages=setuptools.find_packages(),
include_package_data=True,
package_data=package_data,
classifiers=classifiers,
python_requires=">=3.6",
)