Commit 6a15d66e authored by echel0n's avatar echel0n
Browse files

Added renovate.json file

parent 9a951a71
{ {
"name": "sickrage", "name": "sickrage",
"version": "10.0.3", "version": "10.0.67.dev0",
"private": true, "private": true,
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
}, },
"homepage": "https://www.sickrage.ca", "homepage": "https://www.sickrage.ca",
"scripts": { "scripts": {
"build": "webpack --config webpack.config.js -p" "build": "webpack --config webpack.config.js"
}, },
"devDependencies": { "devDependencies": {
"@fortawesome/fontawesome-free": "~5.14.0", "@fortawesome/fontawesome-free": "~5.14.0",
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
"eslint-loader": "~4.0.0", "eslint-loader": "~4.0.0",
"file-loader": "~6.0.0", "file-loader": "~6.0.0",
"gettext-parser": "~2.1.0", "gettext-parser": "~2.1.0",
"graceful-fs": "~4.2.4",
"imagesloaded": "~4.1.4", "imagesloaded": "~4.1.4",
"isotope-layout": "~3.0.6", "isotope-layout": "~3.0.6",
"jquery": "~3.5.1", "jquery": "~3.5.1",
...@@ -58,11 +59,12 @@ ...@@ -58,11 +59,12 @@
"tooltipster": "~4.2.6", "tooltipster": "~4.2.6",
"ttag": "~1.7.22", "ttag": "~1.7.22",
"underscore": "~1.9.1", "underscore": "~1.9.1",
"webpack": "~4.44.0", "webpack": "^4.44.2",
"webpack-cli": "~3.3.11", "webpack-cli": "^4.8.0",
"webpack-spritesmith": "~1.1.0" "webpack-spritesmith": "~1.1.0"
}, },
"dependencies": { "dependencies": {
"auto-changelog": "~2.2.1" "auto-changelog": "~2.2.1",
"yarn": "^1.22.15"
} }
} }
{ {
"extends": [ "extends": [
"config:base", "config:base"
":assignee(echel0n)"
], ],
"prHourlyLimit": 2,
"rebaseWhen": "conflicted",
"baseBranches": [ "baseBranches": [
"develop" "develop"
], ],
"enabledManagers": [
"pip_requirements",
"poetry"
],
"python": { "python": {
"commitMessageAction": "Update Python", "commitMessageAction": "Update Python",
"managerBranchPrefix": "py/", "managerBranchPrefix": "py/",
"labels": [ "labels": ["Update dep (Py)"]
"dependencies",
"python"
]
} }
} }
\ No newline at end of file
[bumpversion] [bumpversion]
current_version = 10.0.3 current_version = 10.0.67.dev0
commit = False commit = False
tag = False tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))? parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# along with SiCKRAGE. If not, see <http://www.gnu.org/licenses/>. # along with SiCKRAGE. If not, see <http://www.gnu.org/licenses/>.
# ############################################################################## # ##############################################################################
__version__ = "10.0.67.dev1" __version__ = "10.0.67.dev0"
__install_type__ = "" __install_type__ = ""
import sys import sys
...@@ -34,10 +34,13 @@ import gettext ...@@ -34,10 +34,13 @@ import gettext
import multiprocessing import multiprocessing
import os import os
import pathlib import pathlib
import re
import site import site
import subprocess
import threading import threading
import time import time
import traceback import traceback
import pkg_resources
# pywin32 for windows service # pywin32 for windows service
try: try:
...@@ -73,7 +76,7 @@ if not (LIBS_DIR in sys.path) and not getattr(sys, 'frozen', False): ...@@ -73,7 +76,7 @@ if not (LIBS_DIR in sys.path) and not getattr(sys, 'frozen', False):
sys.path.extend(remainder) sys.path.extend(remainder)
# set system default language # set system default language
gettext.install('messages', LOCALE_DIR, names=["ngettext"]) gettext.install('messages', LOCALE_DIR, codeset='UTF-8', names=["ngettext"])
if __install_type__ == 'windows': if __install_type__ == 'windows':
class SiCKRAGEService(win32serviceutil.ServiceFramework): class SiCKRAGEService(win32serviceutil.ServiceFramework):
...@@ -245,6 +248,31 @@ def changelog(): ...@@ -245,6 +248,31 @@ def changelog():
return f.read() return f.read()
def check_requirements():
if os.path.exists(REQS_FILE):
with open(REQS_FILE) as f:
for line in f.readlines():
try:
req_name, req_version = line.strip().split('==', 1)
if 'python_version' in req_version:
m = re.search('(\d+.\d+.\d+).*(\d+.\d+)', req_version)
req_version = m.group(1)
python_version = m.group(2)
python_version_major = int(python_version.split('.')[0])
python_version_minor = int(python_version.split('.')[1])
if sys.version_info.major == python_version_major and sys.version_info.minor != python_version_minor:
continue
if not pkg_resources.get_distribution(req_name).version == req_version:
print('Updating requirement {} to {}'.format(req_name, req_version))
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-deps", "--no-cache-dir", line.strip()])
except pkg_resources.DistributionNotFound:
print('Installing requirement {}'.format(line.strip()))
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-deps", "--no-cache-dir", line.strip()])
except ValueError:
continue
def verify_checksums(remove_unverified=False): def verify_checksums(remove_unverified=False):
valid_files = [] valid_files = []
exempt_files = [pathlib.Path(__file__), pathlib.Path(CHECKSUM_FILE), pathlib.Path(AUTO_PROCESS_TV_CFG_FILE)] exempt_files = [pathlib.Path(__file__), pathlib.Path(CHECKSUM_FILE), pathlib.Path(AUTO_PROCESS_TV_CFG_FILE)]
...@@ -456,9 +484,6 @@ def start(): ...@@ -456,9 +484,6 @@ def start():
app.pid = app.daemon.pid app.pid = app.daemon.pid
app.start() app.start()
from tornado.ioloop import IOLoop
IOLoop.current().start()
except (SystemExit, KeyboardInterrupt): except (SystemExit, KeyboardInterrupt):
if app: if app:
app.shutdown() app.shutdown()
......
This diff is collapsed.
10.0.3 10.0.67.dev0
\ No newline at end of file \ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment