chromium-dashboard/requirements.txt

36 строки
818 B
Plaintext
Исходник Обычный вид История

# Also see requirements.dev.txt
# Py3 Libraries
appengine-python-standard>=1.0.0
html5lib==1.1
funcsigs==1.0.2
google-api-python-client==2.47.0
# TODO(jrobbins): Add this back or replace it when python 3.10 is supported.
# google-python-cloud-debugger==2.18
# See https://github.com/GoogleCloudPlatform/cloud-debug-python/issues/33
google-cloud-tasks==2.7.0
google-cloud-ndb==1.11.1
google-cloud-logging==3.0.0
google-auth==1.31.0
requests==2.27.1
redis==4.4.4
fakeredis==1.10.1
2023-05-02 20:07:57 +03:00
Flask==2.3.2
flask-cors==3.0.10
funcsigs==1.0.2
Jinja2==3.1.2
MarkupSafe==2.1.1
2023-05-02 20:07:57 +03:00
Werkzeug==2.3.3
click==8.1.3
itsdangerous==2.1.2
# Work-around for failure to deploy
# https://stackoverflow.com/questions/69936420/google-cloud-platform-app-deploy-failure-due-to-pyparsing
pyparsing==2.4.7
Manual changes to support using openapi [3/5] (#2771) * Manual changes to support using openapi .devcontainer/Dockerfile - Install java in devcontainer .devcontainer/devcontainer.json - Make devcontainer automatically install VSCode OpenAPI plugin mentioned in #2769 - Make devcontainer automatically install VSCode plugin for Lit client-src/elements/chromedash-app.js - Use the generated client in the frontend. - Leverage lit-labs/context to provide the client. - Docs about context and use-cases: https://lit.dev/docs/data/context/ client-src/elements/chromedash-app_test.js - Add tests for the changes in client-src/elements/chromedash-app.js client-src/contexts/openapi-context.js - Declare a context for the openapi client. framework/basehandlers.py - add do_put function. previously, all other HTTP verbs had a `do_<verb>` version except PUT. - Add put function that uses defensive_jsonify. This enables XSSI for PUT requests. - This needed change is safe to do because the only route using PUT is the admin/blink page which I am migrating into the SPA. gulpfile.babel.js - Fix usage of rollupBabel. Previously, @rollup/plugin-node-resolve's default export was named rollupBabel. Which is the wrong package. Fixed to use @rollup/plugin-babel - Using the correct parameters to rollupBabel from https://www.npmjs.com/package/@rollup/plugin-babel - Add client-src/contexts/*.js to lint and watch targets - Add custom onwarn for rollup that comes from using the generated frontend code. Check comment for explanation package.json - Add lit-labs/context. Needed for changes in client-src/contexts/openapi-context.js - Tell NPM to use the generated javascript changes via the `workspaces` key. - Instead of adding as a dependency like [I initially did here](https://github.com/GoogleChrome/chromium-dashboard/pull/2734/commits/ccd5c8e71b14219299808575ec22e60ababa8cb6#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R101), rather keep the "dependencies" only for ones pulled from npm remotely. - workspaces are meant more for packages that comes from the filesystem - Docs: https://docs.npmjs.com/cli/v9/using-npm/workspaces?v=true requirements.txt - Tell pip to install the python package. package-lock.json - Generated changes from adding context and workspaces. * revert accidental Werkzeug upgrade * fix devcontainer * Remove context & failed attempt at global changes: - Remove the context - Move the openapi client to js-src - modify gulp task to: - ignore the test file - add the openapi-client to the rollup task instead of the js task since it is a es6 module (because it has an import / require statement) - Attempt to construct the object in the spa template. It failed to work at load time. More details below: When trying to call my exported class at page load like the regular client, I get a not defined error. There are thoughts about this: - https://stackoverflow.com/a/75026222 - https://stackoverflow.com/a/53630402 - https://stackoverflow.com/a/69888825 This commit serves as an attempt to try it out Turns out, script type "module" is automatically set to defer and cannot be disabled. * add new rollup for cjs for openapi client * add more tests * fix middleware
2023-03-25 00:46:28 +03:00
# OpenAPI files
./gen/py/chromestatus_openapi