remove schedule dependency

This commit is contained in:
Frisk 2022-06-15 19:43:24 +02:00
parent 77849a89e6
commit 1dc07c0b05
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC
6 changed files with 5 additions and 6 deletions

View file

@ -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 ###

View file

@ -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

View file

@ -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"
) )

View file

@ -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

View file

@ -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

View file

@ -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