-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (64 loc) · 2.15 KB
/
Copy pathsetup.py
File metadata and controls
71 lines (64 loc) · 2.15 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
#!/usr/bin/env python3.10
# -*- coding: utf-8 -*-
# author: NearlyHeadlessJack
# email: wang@rjack.cn
# datetime: 2025/1/6 11:01
# ide: PyCharm
# file: setup.py
from setuptools import find_packages, setup
from weauth.constants import core_constant
import os
NAME = core_constant.PACKAGE_NAME
VERSION = core_constant.VERSION_PYPI
DESCRIPTION = 'A python tool to managing your whitelist through WeChat. 使用微信公众号来管理MC服务器与注册白名单。'
PROJECT_URLS = {
'Homepage': core_constant.GITHUB_URL,
'Documentation': core_constant.DOCUMENTATION_URL,
}
AUTHOR = 'NearlyHeadlessJack'
REQUIRES_PYTHON = '>=3.8'
CLASSIFIERS = [
# https://pypi.org/classifiers/
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: Chinese (Simplified)',
'Operating System :: OS Independent',
'Topic :: Utilities',
'Framework :: Flask',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: 3.13',
]
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'requirements.txt')) as f:
REQUIRED = list(filter(None, map(str.strip, f)))
print('REQUIRED = {}'.format(REQUIRED))
ENTRY_POINTS = {
'console_scripts': [
'{} = {}.weauth_entrypoint:entrypoint'.format(core_constant.CLI_COMMAND, core_constant.PACKAGE_NAME)
]
}
print('ENTRY_POINTS = {}'.format(ENTRY_POINTS))
with open(os.path.join(here, 'docs/README.md'), encoding='utf8') as f:
LONG_DESCRIPTION = f.read()
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
author=AUTHOR,
author_email="wang@rjack.cn",
python_requires=REQUIRES_PYTHON,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
project_urls=PROJECT_URLS,
packages=find_packages(exclude=['tests', '*.tests', '*.tests.*', 'tests.*']),
include_package_data=True,
install_requires=REQUIRED,
entry_points=ENTRY_POINTS,
classifiers=CLASSIFIERS,
license="GPLv3",
)