updating py to 3.10, pulling docs

This commit is contained in:
andy 2022-07-28 07:00:27 +01:00
parent b5868fd69c
commit 18b990937f
6 changed files with 683 additions and 764 deletions

View File

@ -6,7 +6,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8']
python-version: ['3.10']
poetry-version: [1.1.14]
node: [18]
os: [ubuntu-latest]
@ -60,59 +60,59 @@ jobs:
# - name: Run JavaScript Tests
# run: npm test
documentation:
runs-on: ubuntu-latest
needs: build # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3 # get source
# documentation:
# runs-on: ubuntu-latest
# needs: build # for ignoring bad builds
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# steps:
# - uses: actions/checkout@v3 # get source
# PYTHON
- name: Install Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
# # PYTHON
# - name: Install Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: '3.10'
# PYTHON for dependency export only, not installing
- name: Install Poetry 1.1.14
uses: abatilo/actions-poetry@v2.1.0
with:
poetry-version: 1.1.14
# # PYTHON for dependency export only, not installing
# - name: Install Poetry 1.1.14
# uses: abatilo/actions-poetry@v2.1.0
# with:
# poetry-version: 1.1.14
# PYTHON install dependencies
- name: Install Python Dependencies
run: poetry install
# # PYTHON install dependencies
# - name: Install Python Dependencies
# run: poetry install
# JS setup for jsdoc
- name: Install Node 18
uses: actions/setup-node@v2
with:
node-version: 18
# # JS setup for jsdoc
# - name: Install Node 18
# uses: actions/setup-node@v2
# with:
# node-version: 18
# JS setup for jsdoc
- name: Install jsdoc
run: npm install jsdoc
# # JS setup for jsdoc
# - name: Install jsdoc
# run: npm install jsdoc
# JS setup for jsdoc
- name: Add node_modules/.bin to PATH
run: echo "${GITHUB_WORKSPACE}/node_modules/.bin" >> $GITHUB_PATH
# # JS setup for jsdoc
# - name: Add node_modules/.bin to PATH
# run: echo "${GITHUB_WORKSPACE}/node_modules/.bin" >> $GITHUB_PATH
# DEPLOY for setting up cloud API
- name: Set up Cloud SDK
uses: google-github-actions/auth@v0.7.3
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
export_environment_variables: true
create_credentials_file: true
# # DEPLOY for setting up cloud API
# - name: Set up Cloud SDK
# uses: google-github-actions/auth@v0.7.3
# with:
# credentials_json: '${{ secrets.GCP_SA_KEY }}'
# export_environment_variables: true
# create_credentials_file: true
- name: Generate Documentation
run: poetry run sphinx-build docs public -b html
# - name: Generate Documentation
# run: poetry run sphinx-build docs public -b html
- name: Deploy To Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
# - name: Deploy To Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./public
deploy:
runs-on: ubuntu-latest
@ -122,10 +122,10 @@ jobs:
- uses: actions/checkout@v3 # get source
# PYTHON
- name: Install Python 3.8
- name: Install Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.10'
# PYTHON for dependency export only, not installing
- name: Install Poetry 1.1.14

View File

@ -83,7 +83,7 @@ class Admin(Cmd):
subprocess.check_call(
f'gcloud functions deploy {name} '
f'--region {region} '
'--runtime=python38 '
'--runtime=python310 '
f'--trigger-topic {name} '
'--set-env-vars DEPLOY_DESTINATION=PROD '
f'--timeout={timeout}s', shell=True

View File

@ -1,4 +1,4 @@
runtime: python38
runtime: python310
service: spotify
#instance_class: F1

72
package-lock.json generated
View File

@ -2067,9 +2067,9 @@
"dev": true
},
"node_modules/@types/node": {
"version": "18.6.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.1.tgz",
"integrity": "sha512-z+2vB6yDt1fNwKOeGbckpmirO+VBDuQqecXkgeIqDlaOtmKn6hPR/viQ8cxCfqLU4fTlvM3+YjM367TukWdxpg==",
"version": "18.6.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.2.tgz",
"integrity": "sha512-KcfkBq9H4PI6Vpu5B/KoPeuVDAbmi+2mDBqGPGUgoL7yXQtcWGu2vJWmmRkneWK3Rh0nIAX192Aa87AqKHYChQ==",
"dev": true
},
"node_modules/@types/prop-types": {
@ -2078,9 +2078,9 @@
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
},
"node_modules/@types/react": {
"version": "17.0.47",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.47.tgz",
"integrity": "sha512-mk0BL8zBinf2ozNr3qPnlu1oyVTYq+4V7WA76RgxUAtf0Em/Wbid38KN6n4abEkvO4xMTBWmnP1FtQzgkEiJoA==",
"version": "18.0.15",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.15.tgz",
"integrity": "sha512-iz3BtLuIYH1uWdsv6wXYdhozhqj20oD4/Hk2DNXIn1kFsmp9x8d9QB6FnPhfkbhd2PgEONt9Q1x/ebkwjfFLow==",
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@ -2606,9 +2606,9 @@
}
},
"node_modules/browserslist": {
"version": "4.21.2",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.2.tgz",
"integrity": "sha512-MonuOgAtUB46uP5CezYbRaYKBNt2LxP0yX+Pmj4LkcDFGkn9Cbpi83d9sCjwQDErXsIJSzY5oKGDbgOlF/LPAA==",
"version": "4.21.3",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz",
"integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==",
"dev": true,
"funding": [
{
@ -2621,10 +2621,10 @@
}
],
"dependencies": {
"caniuse-lite": "^1.0.30001366",
"electron-to-chromium": "^1.4.188",
"caniuse-lite": "^1.0.30001370",
"electron-to-chromium": "^1.4.202",
"node-releases": "^2.0.6",
"update-browserslist-db": "^1.0.4"
"update-browserslist-db": "^1.0.5"
},
"bin": {
"browserslist": "cli.js"
@ -2653,9 +2653,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001370",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001370.tgz",
"integrity": "sha512-3PDmaP56wz/qz7G508xzjx8C+MC2qEm4SYhSEzC9IBROo+dGXFWRuaXkWti0A9tuI00g+toiriVqxtWMgl350g==",
"version": "1.0.30001372",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001372.tgz",
"integrity": "sha512-tBgBhIXBIqORB9ieUEYBKRfSlaF6YPq7WNNqcreF6Cl24UKNGIvE5/rP59dOGN6TRIS/5zOMHAMSRrVNmifWWw==",
"dev": true,
"funding": [
{
@ -3015,9 +3015,9 @@
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
},
"node_modules/electron-to-chromium": {
"version": "1.4.201",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.201.tgz",
"integrity": "sha512-87D0gEHbhLZgZxZl2e9/rC/I2BicPC/y9wR/cuaJSqvkgN41s5EImi89S7YExHc7F0OBXiKsABZt9mmb9bqFcQ==",
"version": "1.4.204",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.204.tgz",
"integrity": "sha512-5Ojjtw9/c9HCXtMVE6SXVSHSNjmbFOXpKprl6mY/5moLSxLeWatuYA7KTD+RzJMxLRH6yNNQrqGz9p6IoNBMgw==",
"dev": true
},
"node_modules/emojis-list": {
@ -6760,9 +6760,9 @@
"dev": true
},
"@types/node": {
"version": "18.6.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.1.tgz",
"integrity": "sha512-z+2vB6yDt1fNwKOeGbckpmirO+VBDuQqecXkgeIqDlaOtmKn6hPR/viQ8cxCfqLU4fTlvM3+YjM367TukWdxpg==",
"version": "18.6.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.2.tgz",
"integrity": "sha512-KcfkBq9H4PI6Vpu5B/KoPeuVDAbmi+2mDBqGPGUgoL7yXQtcWGu2vJWmmRkneWK3Rh0nIAX192Aa87AqKHYChQ==",
"dev": true
},
"@types/prop-types": {
@ -6771,9 +6771,9 @@
"integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
},
"@types/react": {
"version": "17.0.47",
"resolved": "https://registry.npmjs.org/@types/react/-/react-17.0.47.tgz",
"integrity": "sha512-mk0BL8zBinf2ozNr3qPnlu1oyVTYq+4V7WA76RgxUAtf0Em/Wbid38KN6n4abEkvO4xMTBWmnP1FtQzgkEiJoA==",
"version": "18.0.15",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.15.tgz",
"integrity": "sha512-iz3BtLuIYH1uWdsv6wXYdhozhqj20oD4/Hk2DNXIn1kFsmp9x8d9QB6FnPhfkbhd2PgEONt9Q1x/ebkwjfFLow==",
"requires": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@ -7230,15 +7230,15 @@
}
},
"browserslist": {
"version": "4.21.2",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.2.tgz",
"integrity": "sha512-MonuOgAtUB46uP5CezYbRaYKBNt2LxP0yX+Pmj4LkcDFGkn9Cbpi83d9sCjwQDErXsIJSzY5oKGDbgOlF/LPAA==",
"version": "4.21.3",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.3.tgz",
"integrity": "sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ==",
"dev": true,
"requires": {
"caniuse-lite": "^1.0.30001366",
"electron-to-chromium": "^1.4.188",
"caniuse-lite": "^1.0.30001370",
"electron-to-chromium": "^1.4.202",
"node-releases": "^2.0.6",
"update-browserslist-db": "^1.0.4"
"update-browserslist-db": "^1.0.5"
}
},
"buffer-from": {
@ -7258,9 +7258,9 @@
}
},
"caniuse-lite": {
"version": "1.0.30001370",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001370.tgz",
"integrity": "sha512-3PDmaP56wz/qz7G508xzjx8C+MC2qEm4SYhSEzC9IBROo+dGXFWRuaXkWti0A9tuI00g+toiriVqxtWMgl350g==",
"version": "1.0.30001372",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001372.tgz",
"integrity": "sha512-tBgBhIXBIqORB9ieUEYBKRfSlaF6YPq7WNNqcreF6Cl24UKNGIvE5/rP59dOGN6TRIS/5zOMHAMSRrVNmifWWw==",
"dev": true
},
"catharsis": {
@ -7525,9 +7525,9 @@
}
},
"electron-to-chromium": {
"version": "1.4.201",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.201.tgz",
"integrity": "sha512-87D0gEHbhLZgZxZl2e9/rC/I2BicPC/y9wR/cuaJSqvkgN41s5EImi89S7YExHc7F0OBXiKsABZt9mmb9bqFcQ==",
"version": "1.4.204",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.204.tgz",
"integrity": "sha512-5Ojjtw9/c9HCXtMVE6SXVSHSNjmbFOXpKprl6mY/5moLSxLeWatuYA7KTD+RzJMxLRH6yNNQrqGz9p6IoNBMgw==",
"dev": true
},
"emojis-list": {

1259
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -13,14 +13,14 @@ start = 'admin:run'
docs = 'admin:docs'
[tool.poetry.dependencies]
python = "~3.8"
fireo = "^1.3.3"
Flask = "^1.1.2"
google-cloud-firestore = "^1.7.0"
google-cloud-logging = "^1.15.0"
google-cloud-pubsub = "^1.6.0"
google-cloud-tasks = "^1.5.0"
requests = "^2.24.0"
python = "~3.10"
fireo = "^1.5.1"
Flask = "^2.1.3"
google-cloud-firestore = "<=2.3.4"
google-cloud-logging = "^3.2.1"
google-cloud-pubsub = "^2.13.4"
google-cloud-tasks = "^2.10.0"
requests = "^2.28.1"
spotframework = { git = "https://github.com/Sarsoo/spotframework.git" }
fmframework = { git = "https://github.com/Sarsoo/pyfmframework.git" }
@ -28,8 +28,6 @@ spotfm = { git = "https://github.com/Sarsoo/spotfm.git" }
[tool.poetry.dev-dependencies]
pylint = "^2.5.3"
Sphinx = "^3.5.3"
sphinx-js = "^3.1.2"
python-dotenv = "^0.17.1"
[build-system]