-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (55 loc) · 2.06 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
54
55
56
57
58
59
# setup.py
import sys
import os
from setuptools import setup, find_packages
import delete_me_discord
# Ensure Python 3.6+
if sys.version_info < (3, 6):
sys.exit("ERROR: delete-me-discord requires Python 3.6 or higher.")
# Read the long description from README.md
def read_long_description():
here = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
return fh.read()
except FileNotFoundError:
return "A tool to delete Discord messages."
setup(
name="delete-me-discord",
version=delete_me_discord.__version__,
packages=find_packages(exclude=["tests"]),
author="Jan T. Müller",
author_email="mail@jantmueller.com",
description="A tool to delete Discord messages.",
long_description=read_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/janthmueller/delete-me-discord",
project_urls={
"Documentation": "https://github.com/janthmueller/delete-me-discord/blob/main/README.md",
"Source": "https://github.com/janthmueller/delete-me-discord",
"Tracker": "https://github.com/janthmueller/delete-me-discord/issues",
},
license="MIT", # Replace with your license if different
classifiers=[
"Intended Audience :: Developers",
"Topic :: Communications :: Chat",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
],
python_requires=">=3.6",
install_requires=[
"requests",
],
entry_points={
"console_scripts": [
"delete-me-discord=delete_me_discord:main",
],
},
)