Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sickchill 6 7 rebuild with Py3.8.12-6 #4920

Merged
merged 26 commits into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f5bf3b6
Rebuild with Py3.8.12
BKSteve Oct 17, 2021
cfdda49
Sickchill inc 6&7 with new py3.8.12
BKSteve Oct 17, 2021
95d537d
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 18, 2021
fd19365
Sickchill cross and requirements updates
BKSteve Oct 18, 2021
ec6e327
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 20, 2021
1fc3295
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 23, 2021
ca98d0b
Sickchill with 3.8.12-6
BKSteve Oct 23, 2021
6641331
Sickchill for 3.8.12-6 missed a file
BKSteve Oct 23, 2021
e43c748
Update Makefile
BKSteve Oct 23, 2021
cef5f82
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 25, 2021
3b0727f
SickChill 6 7 with Py3.8.12-6 tested working!
BKSteve Oct 26, 2021
cf3d0b4
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 26, 2021
267bcde
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 30, 2021
f69ad99
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Oct 31, 2021
b1c559a
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Nov 2, 2021
8ddde6b
Update wizard
publicarray Nov 3, 2021
47cb257
Merge branch 'SynoCommunity:master' into Sickchill-6-7
BKSteve Nov 3, 2021
5a4fdd5
Update spk/sickchill/Makefile v3
BKSteve Nov 3, 2021
8432579
Update spk/sickchill/src/requirements.txt v3
BKSteve Nov 3, 2021
504081f
fix build
publicarray Nov 3, 2021
48b7d0b
Merge branch 'master' into Sickchill-6-7
publicarray Nov 4, 2021
0696846
revert some 47cb2579fb5a7c543d4c94b3161c1f696510c48c changes
publicarray Nov 4, 2021
24b205c
Revert "revert some 47cb2579fb5a7c543d4c94b3161c1f696510c48c changes"
publicarray Nov 4, 2021
7c5511d
python: Fix build issue of -j $(CPU) flag not always recognized
th0ma7 Nov 4, 2021
81dfac8
Revert "Revert "revert some 47cb2579fb5a7c543d4c94b3161c1f696510c48c …
publicarray Nov 5, 2021
51e2673
SickChill 6 7 update requirements* and makefile
BKSteve Nov 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions spk/sickchill/Makefile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
SPK_NAME = sickchill
SPK_VERS = 20210729
SPK_REV = 2
SPK_REV = 21
SPK_ICON = src/sickchill.png

DEPENDS = cross/$(SPK_NAME)
SPK_DEPENDS = "python38:git"
PIP=pip3
BUILD_DEPENDS = cross/python38 cross/poetry
# cross/cffi cross/setuptools cross/cryptography cross/lxml
DEPENDS = cross/PyNaCl cross/$(SPK_NAME)
SPK_DEPENDS = "python38"

WHEELS = src/requirements.txt
WHEELS = src/requirements-cross.txt src/requirements.txt

MAINTAINER = miigotu
DESCRIPTION = Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
DESCRIPTION_SPN = Gestor automático para bibliotecas de series. Busca nuevos episodios de tus series favoritas, y cuando son publicados hace su magia.
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
STARTABLE = yes
DISPLAY_NAME = SickChill
CHANGELOG = "Initial SickChill env fix and move to Python 3.8"
CHANGELOG = "Initial SickChill env fix and move to Python 3.8 without git"
BKSteve marked this conversation as resolved.
Show resolved Hide resolved

HOMEPAGE = https://sickchill.github.io/
LICENSE = GPL
LICENSE = GPLv3+

SERVICE_USER = auto
SERVICE_SETUP = src/service-setup.sh
Expand All @@ -31,9 +31,6 @@ WIZARDS_DIR = src/wizard/

POST_STRIP_TARGET = sickchill_extra_install

# Pure Python package, make sure ARCH is not defined
override ARCH=

include ../../mk/spksrc.spk.mk

.PHONY: sickchill_extra_install
Expand Down
15 changes: 15 additions & 0 deletions spk/sickchill/src/requirements-cross.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cffi==1.14.6
chardet==4.0.0
click==8.0.1
###cryptography==3.4.7
future==0.18.2
greenlet==1.1.0
###importlib-metadata==1.7.0
kodipydent-alt==2021.7.16
###lxml==4.6.3
MarkupSafe==2.0.1
msgpack==1.0.2
###PyNaCl==1.4.0
sgmllib3k==1.0.0
SQLAlchemy==1.4.25 #py38
wrapt==1.12.1
107 changes: 48 additions & 59 deletions spk/sickchill/src/requirements.txt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,88 +1,77 @@
appdirs==1.4.4
attrdict==2.0.1
babelfish==0.5.5
beautifulsoup4==4.9.3
###beekeeper==0.9.2
###py38 appdirs==1.4.4
babelfish==0.6.0
beautifulsoup4==4.10.0
beekeeper-alt==2021.7.16
bencode.py==4.0.0
CacheControl==0.12.6
certifi==2020.11.8
###cffi==1.14.3
chardet==3.0.4
click==7.1.2
cloudscraper==1.2.48
cachecontrol==0.12.6
certifi==2021.5.30
BKSteve marked this conversation as resolved.
Show resolved Hide resolved
charset-normalizer==2.0.3
cloudscraper==1.2.58
colorama==0.4.4
configobj==5.0.6
###cryptography==3.2.1
decorator==4.4.2
decorator==5.0.9
deluge-client==1.9.0
Deprecated==1.2.10
dogpile.cache==1.0.2
deprecated==1.2.12
dogpile.cache==1.1.3
enzyme==0.4.1
feedparser==6.0.2
future==0.18.2
feedparser==6.0.8
gntp==1.0.3
guessit==3.1.1
guessit==3.3.1
html5lib==1.1
httplib2==0.18.1
idna==2.10
httplib2==0.19.1
###py38 idna==3.2
ifaddr==0.1.7
imagesize==1.2.0
IMDbPY==2020.9.25
ipaddress==1.0.23
Js2Py==0.70
IMDbPY==2021.4.18
###py38 ipaddress==1.0.23
Js2Py==0.71
jsonrpclib-pelix==0.4.2
###kodipydent==0.3.1
###lxml==4.6.1
Mako==1.1.3
markdown2==2.3.10
MarkupSafe==1.1.1
msgpack==1.0.0
Mako==1.1.4
markdown2==2.4.0
new-rtorrent-python==1.0.1a0
oauthlib==3.1.0
packaging==20.4
pbr==5.5.1
oauthlib==3.1.1
packaging==20.9
pbr==5.6.0
profilehooks==1.12.0
putio.py==8.7.0
pyaes==1.6.1
pycparser==2.20
PyGithub==1.53
###py38 pycparser==2.20
pygithub==1.55
pyjsparser==2.7.1
PyJWT==1.7.1
pymediainfo==4.3
PyNMA==1.0
pyOpenSSL==19.1.0
pyjwt==2.1.0
pymediainfo==5.1.0
pynma==1.0
###py38 pyopenssl==20.0.1
pyparsing==2.4.7
PySocks==1.7.1
pysocks==1.7.1
pysrt==1.1.2
python-dateutil==2.8.1
python-slugify==4.0.1
###python-dateutil==2.8.2
python-slugify==5.0.2
python-twitter==3.5
python3-fanart==2.0.0
pytz==2020.4
qbittorrent-api==2020.10.11
pytz==2021.1
qbittorrent-api==2021.5.22
rarfile==4.0
rebulk==2.0.1
requests==2.24.0
rebulk==3.0.1
requests==2.26.0
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
Send2Trash==1.5.0
sgmllib3k==1.0.0
six==1.15.0
soupsieve==2.0.1
SQLAlchemy==1.3.20
stevedore==3.2.2
send2trash==1.7.1
###py38 six==1.16.0
soupsieve==2.2.1
stevedore==3.3.0
subliminal==2.1.0
text-unidecode==1.3
timeago==1.0.14
tmdbsimple==2.6.6
timeago==1.0.15
tmdbsimple==2.8.0
tornado==6.1
tus.py==1.3.4
tvdbsimple==1.0.6
twilio==6.47.0
tzlocal==2.1
Unidecode==1.1.1
urllib3==1.26.0
validators==0.18.1
unidecode==1.2.0
urllib3==1.26.6
validators==0.18.2
webencodings==0.5.1
win-inet-pton==1.1.0
wrapt==1.12.1
xmltodict==0.10.1
xmltodict==0.12.0
###0.0.0 issue zipp==3.6.0
22 changes: 15 additions & 7 deletions spk/sickchill/src/service-setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
PYTHON_DIR="/var/packages/python38/target"
PIP=${SYNOPKG_PKGDEST}/env/bin/pip3
PATH="${SYNOPKG_PKGDEST}/bin:${SYNOPKG_PKGDEST}/env/bin:${PYTHON_DIR}/bin:${PATH}"
HOME="${SYNOPKG_PKGDEST}/var"
VIRTUALENV="${PYTHON_DIR}/bin/virtualenv"
HOME="${SYNOPKG_PKGVAR}"
VIRTUALENV="${PYTHON_DIR}/bin/python3 -m venv"
PYTHON="${SYNOPKG_PKGDEST}/env/bin/python3"
SC_INSTALL_DIR="${SYNOPKG_PKGDEST}/share/SickChill"
SC_BINARY="${SC_INSTALL_DIR}/SickChill.py"
SC_DATA_DIR="${SYNOPKG_PKGDEST}/var/data"
SC_DATA_DIR="${SYNOPKG_PKGVAR}/data"
SC_CFG_FILE="${SC_DATA_DIR}/config.ini"


Expand Down Expand Up @@ -44,18 +44,26 @@ service_postinst() {
${VIRTUALENV} --system-site-packages ${SYNOPKG_PKGDEST}/env

# Install the wheels
${PIP} install --no-deps --no-index -U --force-reinstall -f ${SYNOPKG_PKGDEST}/share/wheelhouse ${SYNOPKG_PKGDEST}/share/wheelhouse/*.whl

# ${PIP} install -U --force-reinstall -f ${SYNOPKG_PKGDEST}/share/wheelhouse ${SYNOPKG_PKGDEST}/share/wheelhouse/*.whl
# ${PIP} install --extra-index-url https://wheel-index.linuxserver.io/ubuntu/ -U --force-reinstall -f ${SYNOPKG_PKGDEST}/share/wheelhouse ${SYNOPKG_PKGDEST}/share/wheelhouse/*.whl
# ${PIP} install --no-deps --no-index --upgrade --force-reinstall --find-links ${wheelhouse} ${wheelhouse}/*.whl
wheelhouse=${SYNOPKG_PKGDEST}/share/wheelhouse
${PIP} install --extra-index-url https://wheel-index.linuxserver.io/ubuntu/ --upgrade --force-reinstall --find-links ${wheelhouse} ${wheelhouse}/*.whl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious what is the --extra-index-url for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an initial suggestion from the SickChill team as there were lots of build issues with cryptography and this site has builds cp38 of crypography not on Pypi.org. So just giving those poor old DSM a chance to look here. Not sufficiently knowledge on this, so probably unnecessary. But my assumption was that if we install and have this here then the DSM can see if there are valid newer versions of some packages for their particular hardware not provided on pypi e.g. SickChill looks for cryptography 3.4.7.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation, yea the less the DSM has to compile the better 👍


if [ "${SYNOPKG_PKG_STATUS}" == "INSTALL" ]; then
set_config
fi

set_unix_permissions "${SYNOPKG_PKGDEST}"
if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 7 ]; then
set_unix_permissions "${SYNOPKG_PKGDEST}"
fi
}

service_postupgrade() {
set_config
set_unix_permissions "${SYNOPKG_PKGDEST}"
if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 7 ]; then
set_unix_permissions "${SYNOPKG_PKGDEST}"
fi
}

service_preupgrade ()
Expand Down