mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-22 00:14:10 +00:00
remove schedule dependency
This commit is contained in:
parent
77849a89e6
commit
1dc07c0b05
|
@ -14,7 +14,6 @@
|
||||||
* **Python 3.7+**
|
* **Python 3.7+**
|
||||||
* requests 2.18.4+
|
* requests 2.18.4+
|
||||||
* beautifulsoup 4.6.0+
|
* beautifulsoup 4.6.0+
|
||||||
* schedule 0.5.0+
|
|
||||||
* lxml 4.2.1+
|
* lxml 4.2.1+
|
||||||
|
|
||||||
### settings.json ###
|
### settings.json ###
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
beautifulsoup4 >= 4.6.0;
|
beautifulsoup4 >= 4.6.0;
|
||||||
python_version >= '3.7'
|
python_version >= '3.7'
|
||||||
requests >= 2.18.4
|
requests >= 2.18.4
|
||||||
schedule >= 0.5.0
|
|
||||||
lxml >= 4.2.1
|
lxml >= 4.2.1
|
2
setup.py
2
setup.py
|
@ -10,6 +10,6 @@ setup(
|
||||||
description='A set od scripts to fetch recent changes from MediaWiki wiki to a Discord channel using a webhook',
|
description='A set od scripts to fetch recent changes from MediaWiki wiki to a Discord channel using a webhook',
|
||||||
keywords=['MediaWiki', 'recent changes', 'Discord', 'webhook'],
|
keywords=['MediaWiki', 'recent changes', 'Discord', 'webhook'],
|
||||||
package_dir={"": "src"},
|
package_dir={"": "src"},
|
||||||
install_requires=["beautifulsoup4 >= 4.6.0", "requests >= 2.18.4", "schedule >= 0.5.0", "lxml >= 4.2.1"],
|
install_requires=["beautifulsoup4 >= 4.6.0", "requests >= 2.18.4", "lxml >= 4.2.1"],
|
||||||
python_requires=">=3.7"
|
python_requires=">=3.7"
|
||||||
)
|
)
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import src.misc, sched
|
import src.misc
|
||||||
|
import sched
|
||||||
from typing import Union, Callable
|
from typing import Union, Callable
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from typing import TYPE_CHECKING, Optional
|
from typing import TYPE_CHECKING, Optional
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with RcGcDw. If not, see <http://www.gnu.org/licenses/>.
|
# along with RcGcDw. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import logging, schedule, requests
|
import logging, requests
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from src.configloader import settings
|
from src.configloader import settings
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# WARNING! SHITTY CODE AHEAD. ENTER ONLY IF YOU ARE SURE YOU CAN TAKE IT
|
# WARNING! SHITTY CODE AHEAD. ENTER ONLY IF YOU ARE SURE YOU CAN TAKE IT
|
||||||
# You have been warned
|
# You have been warned
|
||||||
|
|
||||||
import time, logging.config, requests, datetime, math, os.path, sched, sys, re, importlib
|
import time, logging.config, requests, datetime, math, os.path, sys, importlib
|
||||||
|
|
||||||
import src.misc
|
import src.misc
|
||||||
import src.configloader
|
import src.configloader
|
||||||
|
|
Loading…
Reference in a new issue