-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
53 lines (47 loc) · 1.83 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
from importlib.util import module_from_spec, spec_from_file_location
from pathlib import Path
from setuptools import find_packages, setup
# See note below for more information about classifiers
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
current_directory = Path(__file__).parent.resolve()
long_description = (current_directory / "README.md").read_text(encoding="utf-8")
version_path = current_directory / "dislevel" / "_version.py"
module_spec = spec_from_file_location(version_path.name[:-3], version_path)
version_module = module_from_spec(module_spec)
module_spec.loader.exec_module(version_module)
with open("requirements.txt") as f:
requirements = f.read().splitlines()
setup(
name="dislevel",
version=version_module.__version__,
description="A leveling cog for discord bots",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/shahriyardx/dislevel/",
project_urls={
"Bug Reports": "https://github.com/shahriyardx/dislevel/issues",
"Source": "https://github.com/shahriyardx/dislevel/",
},
author="Md Shahriyar Alam",
author_email="mdshahriyaralam552@gmail.com",
license="MIT",
classifiers=classifiers,
keywords="discord discord-rank discord-profile discord-leveling",
packages=find_packages(),
python_requires=">=3.7, <4",
package_data={
"dislevel": ["assets/*.*"],
},
install_requires=requirements,
)