From 7915f5c294690864e2b1679f4e9ad336a0d05ec8 Mon Sep 17 00:00:00 2001 From: Gautam Sharma Date: Mon, 17 Apr 2023 21:38:04 +0530 Subject: [PATCH 1/4] requirements.txt file added --- requirements/requirements.txt | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 requirements/requirements.txt diff --git a/requirements/requirements.txt b/requirements/requirements.txt new file mode 100644 index 000000000..335f041c6 --- /dev/null +++ b/requirements/requirements.txt @@ -0,0 +1,48 @@ +alabaster==0.7.13 +Babel==2.12.1 +beautifulsoup4==4.12.2 +certifi==2022.12.7 +charset-normalizer==3.1.0 +colorama==0.4.6 +contourpy==1.0.7 +cycler==0.11.0 +distlib==0.3.6 +docutils==0.17.1 +filelock==3.11.0 +fonttools==4.39.3 +furo==2022.4.7 +idna==3.4 +imagesize==1.4.1 +Jinja2==3.1.2 +kiwisolver==1.4.4 +livereload==2.6.3 +MarkupSafe==2.1.2 +matplotlib==3.7.1 +numpy==1.24.2 +packaging==23.1 +Pillow==9.5.0 +platformdirs==3.2.0 +Pygments==2.15.0 +pyparsing==3.0.9 +python-dateutil==2.8.2 +requests==2.28.2 +six==1.16.0 +snowballstemmer==2.2.0 +soupsieve==2.4.1 +Sphinx==4.5.0 +sphinx-autobuild==2021.3.14 +sphinx-autodoc-typehints==1.19.1 +sphinx-copybutton==0.5.2 +sphinx-reredirects==0.1.1 +sphinx-resolve-py-references==0.1.0 +sphinx_design==0.4.1 +sphinxcontrib-applehelp==1.0.4 +sphinxcontrib-devhelp==1.0.2 +sphinxcontrib-htmlhelp==2.0.1 +sphinxcontrib-jsmath==1.0.1 +sphinxcontrib-qthelp==1.0.3 +sphinxcontrib-serializinghtml==1.1.5 +sphinxext-opengraph==0.8.2 +tornado==6.2 +urllib3==1.26.15 +virtualenv==20.21.0 From 31e9a302a7a573104dddadcac87f9c53a9ddce25 Mon Sep 17 00:00:00 2001 From: Gautam Sharma Date: Mon, 17 Apr 2023 23:37:17 +0530 Subject: [PATCH 2/4] updated Dockerfile with pinning all the packages --- docs/Dockerfile | 7 +++ requirements/requirements.txt | 113 +++++++++++++++++++++++++++++++++- 2 files changed, 119 insertions(+), 1 deletion(-) diff --git a/docs/Dockerfile b/docs/Dockerfile index 12e133d2c..62ae108df 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -15,11 +15,18 @@ RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" RUN pip install --upgrade pip + +# ------------ + + # Install ReactPy # ------------ COPY requirements ./requirements RUN pip install -r requirements/build-docs.txt +# Install Dependencies +RUN pip install --no-cache-dir -r requirements/requirements.txt + COPY src ./src COPY scripts ./scripts COPY setup.py ./ diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 335f041c6..573652ef0 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,32 +1,118 @@ +aiofiles==23.1.0 alabaster==0.7.13 +anyio==3.6.2 +argcomplete==2.1.2 +asgiref==3.6.0 +asttokens==2.2.1 Babel==2.12.1 +backcall==0.2.0 beautifulsoup4==4.12.2 +black==23.3.0 +bleach==6.0.0 +build==0.10.0 certifi==2022.12.7 charset-normalizer==3.1.0 +click==8.1.3 colorama==0.4.6 +colorlog==6.7.0 contourpy==1.0.7 +coverage==7.2.3 cycler==0.11.0 +decorator==5.1.1 distlib==0.3.6 docutils==0.17.1 +executing==1.2.0 +fastapi==0.95.1 +fastjsonschema==2.16.3 filelock==3.11.0 +flake8==6.0.0 +flake8-idom-hooks==0.6.4 +flake8-print==5.0.0 +Flake8-pyproject==1.2.3 +flake8-tidy-imports==4.8.0 +Flask==2.1.3 +Flask-Cors==3.0.10 +flask-sock==0.6.0 fonttools==4.39.3 furo==2022.4.7 +greenlet==2.0.1 +h11==0.14.0 +html5tagger==1.3.0 +httpcore==0.16.3 +httptools==0.5.0 +httpx==0.23.3 idna==3.4 imagesize==1.4.1 +importlib-metadata==6.4.1 +iniconfig==2.0.0 +ipython==8.12.0 +isort==5.12.0 +itsdangerous==2.1.2 +jaraco.classes==3.2.3 +jedi==0.18.2 Jinja2==3.1.2 +jsonpatch==1.32 +jsonpointer==2.3 +keyring==23.13.1 kiwisolver==1.4.4 livereload==2.6.3 -MarkupSafe==2.1.2 +lxml==4.9.2 +markdown-it-py==2.2.0 +MarkupSafe==2.0.1 matplotlib==3.7.1 +matplotlib-inline==0.1.6 +mccabe==0.7.0 +mdurl==0.1.2 +more-itertools==9.1.0 +multidict==6.0.4 +mypy==1.2.0 +mypy-extensions==1.0.0 +nox==2022.11.21 +noxopt==0.0.9 numpy==1.24.2 packaging==23.1 +parso==0.8.3 +pathspec==0.11.1 +pep8-naming==0.13.3 +pickleshare==0.7.5 Pillow==9.5.0 +pkginfo==1.9.6 platformdirs==3.2.0 +playwright==1.32.1 +pluggy==1.0.0 +prompt-toolkit==3.0.38 +pure-eval==0.2.2 +pycodestyle==2.10.0 +pydantic==1.10.7 +pydocstyle @ git+https://github.com/PyCQA/pydocstyle.git@bd4993345a241bd0d5128f21de56394b1cde3714 +pyee==9.0.4 +pyflakes==3.0.1 Pygments==2.15.0 pyparsing==3.0.9 +pyproject_hooks==1.0.0 +pytest==7.3.1 +pytest-asyncio==0.21.0 +pytest-mock==3.10.0 +pytest-rerunfailures==11.1.2 +pytest-timeout==2.1.0 python-dateutil==2.8.2 +python-dotenv==1.0.0 +pywin32-ctypes==0.2.0 +PyYAML==6.0 +readme-renderer==37.3 requests==2.28.2 +requests-toolbelt==0.10.1 +responses==0.23.1 +rfc3986==1.5.0 +rich==13.3.4 +sanic==23.3.0 +Sanic-Cors==2.2.0 +sanic-routing==22.8.0 +sanic-testing==23.3.0 +semver==2.13.0 +simple-websocket==0.10.0 six==1.16.0 +sniffio==1.3.0 snowballstemmer==2.2.0 soupsieve==2.4.1 Sphinx==4.5.0 @@ -43,6 +129,31 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphinxext-opengraph==0.8.2 +stack-data==0.6.2 +starlette==0.26.1 +tokenize-rt==5.0.0 tornado==6.2 +tracerite==1.1.0 +traitlets==5.9.0 +twine==4.0.2 +types-click==7.1.8 +types-Flask==1.1.6 +types-Jinja2==2.11.9 +types-MarkupSafe==1.1.10 +types-pkg-resources==0.1.3 +types-PyYAML==6.0.12.9 +types-requests==2.28.11.17 +types-tornado==5.1.1 +types-urllib3==1.26.25.10 +types-Werkzeug==1.0.9 +typing_extensions==4.5.0 urllib3==1.26.15 +uvicorn==0.21.1 virtualenv==20.21.0 +watchfiles==0.19.0 +wcwidth==0.2.6 +webencodings==0.5.1 +websockets==11.0.1 +Werkzeug==2.1.2 +wsproto==1.2.0 +zipp==3.15.0 From 55b206f54c9f9d48ff59097657b5081a8f4413b3 Mon Sep 17 00:00:00 2001 From: Gautam Sharma Date: Tue, 18 Apr 2023 07:40:22 +0530 Subject: [PATCH 3/4] removed testing packages and other modifications. --- docs/Dockerfile | 7 +------ .../{requirements.txt => docs-container-env.txt} | 11 +---------- 2 files changed, 2 insertions(+), 16 deletions(-) rename requirements/{requirements.txt => docs-container-env.txt} (93%) diff --git a/docs/Dockerfile b/docs/Dockerfile index 62ae108df..0fe208b4f 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -15,17 +15,12 @@ RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" RUN pip install --upgrade pip - -# ------------ - - # Install ReactPy # ------------ COPY requirements ./requirements -RUN pip install -r requirements/build-docs.txt # Install Dependencies -RUN pip install --no-cache-dir -r requirements/requirements.txt +RUN pip install --no-cache-dir -r requirements/docs-container-env.txt COPY src ./src COPY scripts ./scripts diff --git a/requirements/requirements.txt b/requirements/docs-container-env.txt similarity index 93% rename from requirements/requirements.txt rename to requirements/docs-container-env.txt index 573652ef0..c9f59a275 100644 --- a/requirements/requirements.txt +++ b/requirements/docs-container-env.txt @@ -16,7 +16,6 @@ click==8.1.3 colorama==0.4.6 colorlog==6.7.0 contourpy==1.0.7 -coverage==7.2.3 cycler==0.11.0 decorator==5.1.1 distlib==0.3.6 @@ -52,7 +51,6 @@ jaraco.classes==3.2.3 jedi==0.18.2 Jinja2==3.1.2 jsonpatch==1.32 -jsonpointer==2.3 keyring==23.13.1 kiwisolver==1.4.4 livereload==2.6.3 @@ -78,7 +76,6 @@ pickleshare==0.7.5 Pillow==9.5.0 pkginfo==1.9.6 platformdirs==3.2.0 -playwright==1.32.1 pluggy==1.0.0 prompt-toolkit==3.0.38 pure-eval==0.2.2 @@ -90,25 +87,19 @@ pyflakes==3.0.1 Pygments==2.15.0 pyparsing==3.0.9 pyproject_hooks==1.0.0 -pytest==7.3.1 -pytest-asyncio==0.21.0 -pytest-mock==3.10.0 -pytest-rerunfailures==11.1.2 -pytest-timeout==2.1.0 python-dateutil==2.8.2 python-dotenv==1.0.0 pywin32-ctypes==0.2.0 PyYAML==6.0 +reactpy==1.0.0 readme-renderer==37.3 requests==2.28.2 requests-toolbelt==0.10.1 -responses==0.23.1 rfc3986==1.5.0 rich==13.3.4 sanic==23.3.0 Sanic-Cors==2.2.0 sanic-routing==22.8.0 -sanic-testing==23.3.0 semver==2.13.0 simple-websocket==0.10.0 six==1.16.0 From 4bbccccdc6ef7cd2c8468e407f24aa77adf83a3c Mon Sep 17 00:00:00 2001 From: Gautam Sharma Date: Tue, 18 Apr 2023 22:19:58 +0530 Subject: [PATCH 4/4] updated package list docs-container-env.txt --- docs-container-env.txt | 83 +++++++++++++++ requirements/docs-container-env.txt | 150 ---------------------------- 2 files changed, 83 insertions(+), 150 deletions(-) create mode 100644 docs-container-env.txt diff --git a/docs-container-env.txt b/docs-container-env.txt new file mode 100644 index 000000000..a027470ab --- /dev/null +++ b/docs-container-env.txt @@ -0,0 +1,83 @@ +aiofiles==23.1.0 +alabaster==0.7.13 +anyio==3.6.2 +asgiref==3.6.0 +Babel==2.12.1 +beautifulsoup4==4.12.2 +certifi==2022.12.7 +charset-normalizer==3.1.0 +click==8.1.3 +colorama==0.4.6 +colorlog==6.7.0 +contourpy==1.0.7 +cycler==0.11.0 +docutils==0.17.1 +fastapi==0.95.1 +fastjsonschema==2.16.3 +Flask==2.1.3 +Flask-Cors==3.0.10 +flask-sock==0.6.0 +fonttools==4.39.3 +furo==2022.4.7 +greenlet==2.0.1 +h11==0.14.0 +html5tagger==1.3.0 +httptools==0.5.0 +idna==3.4 +imagesize==1.4.1 +itsdangerous==2.1.2 +Jinja2==3.1.2 +jsonpatch==1.32 +jsonpointer==2.3 +kiwisolver==1.4.4 +livereload==2.6.3 +lxml==4.9.2 +MarkupSafe==2.0.1 +matplotlib==3.7.1 +multidict==6.0.4 +mypy-extensions==1.0.0 +numpy==1.24.2 +packaging==23.1 +Pillow==9.5.0 +playwright==1.32.1 +pydantic==1.10.7 +pyee==9.0.4 +Pygments==2.15.0 +pyparsing==3.0.9 +python-dateutil==2.8.2 +python-dotenv==1.0.0 +PyYAML==6.0 +reactpy @ file:///C:/Users/Gautam/Desktop/py/reactpy +requests==2.28.2 +sanic==23.3.0 +Sanic-Cors==2.2.0 +sanic-routing==22.8.0 +simple-websocket==0.10.0 +six==1.16.0 +sniffio==1.3.0 +snowballstemmer==2.2.0 +soupsieve==2.4.1 +Sphinx==4.5.0 +sphinx-autobuild==2021.3.14 +sphinx-autodoc-typehints==1.19.1 +sphinx-copybutton==0.5.2 +sphinx-reredirects==0.1.1 +sphinx-resolve-py-references==0.1.0 +sphinx_design==0.4.1 +sphinxcontrib-applehelp==1.0.4 +sphinxcontrib-devhelp==1.0.2 +sphinxcontrib-htmlhelp==2.0.1 +sphinxcontrib-jsmath==1.0.1 +sphinxcontrib-qthelp==1.0.3 +sphinxcontrib-serializinghtml==1.1.5 +sphinxext-opengraph==0.8.2 +starlette==0.26.1 +tornado==6.3 +tracerite==1.1.0 +typing_extensions==4.5.0 +urllib3==1.26.15 +uvicorn==0.21.1 +watchfiles==0.19.0 +websockets==11.0.2 +Werkzeug==2.1.2 +wsproto==1.2.0 diff --git a/requirements/docs-container-env.txt b/requirements/docs-container-env.txt index c9f59a275..e69de29bb 100644 --- a/requirements/docs-container-env.txt +++ b/requirements/docs-container-env.txt @@ -1,150 +0,0 @@ -aiofiles==23.1.0 -alabaster==0.7.13 -anyio==3.6.2 -argcomplete==2.1.2 -asgiref==3.6.0 -asttokens==2.2.1 -Babel==2.12.1 -backcall==0.2.0 -beautifulsoup4==4.12.2 -black==23.3.0 -bleach==6.0.0 -build==0.10.0 -certifi==2022.12.7 -charset-normalizer==3.1.0 -click==8.1.3 -colorama==0.4.6 -colorlog==6.7.0 -contourpy==1.0.7 -cycler==0.11.0 -decorator==5.1.1 -distlib==0.3.6 -docutils==0.17.1 -executing==1.2.0 -fastapi==0.95.1 -fastjsonschema==2.16.3 -filelock==3.11.0 -flake8==6.0.0 -flake8-idom-hooks==0.6.4 -flake8-print==5.0.0 -Flake8-pyproject==1.2.3 -flake8-tidy-imports==4.8.0 -Flask==2.1.3 -Flask-Cors==3.0.10 -flask-sock==0.6.0 -fonttools==4.39.3 -furo==2022.4.7 -greenlet==2.0.1 -h11==0.14.0 -html5tagger==1.3.0 -httpcore==0.16.3 -httptools==0.5.0 -httpx==0.23.3 -idna==3.4 -imagesize==1.4.1 -importlib-metadata==6.4.1 -iniconfig==2.0.0 -ipython==8.12.0 -isort==5.12.0 -itsdangerous==2.1.2 -jaraco.classes==3.2.3 -jedi==0.18.2 -Jinja2==3.1.2 -jsonpatch==1.32 -keyring==23.13.1 -kiwisolver==1.4.4 -livereload==2.6.3 -lxml==4.9.2 -markdown-it-py==2.2.0 -MarkupSafe==2.0.1 -matplotlib==3.7.1 -matplotlib-inline==0.1.6 -mccabe==0.7.0 -mdurl==0.1.2 -more-itertools==9.1.0 -multidict==6.0.4 -mypy==1.2.0 -mypy-extensions==1.0.0 -nox==2022.11.21 -noxopt==0.0.9 -numpy==1.24.2 -packaging==23.1 -parso==0.8.3 -pathspec==0.11.1 -pep8-naming==0.13.3 -pickleshare==0.7.5 -Pillow==9.5.0 -pkginfo==1.9.6 -platformdirs==3.2.0 -pluggy==1.0.0 -prompt-toolkit==3.0.38 -pure-eval==0.2.2 -pycodestyle==2.10.0 -pydantic==1.10.7 -pydocstyle @ git+https://github.com/PyCQA/pydocstyle.git@bd4993345a241bd0d5128f21de56394b1cde3714 -pyee==9.0.4 -pyflakes==3.0.1 -Pygments==2.15.0 -pyparsing==3.0.9 -pyproject_hooks==1.0.0 -python-dateutil==2.8.2 -python-dotenv==1.0.0 -pywin32-ctypes==0.2.0 -PyYAML==6.0 -reactpy==1.0.0 -readme-renderer==37.3 -requests==2.28.2 -requests-toolbelt==0.10.1 -rfc3986==1.5.0 -rich==13.3.4 -sanic==23.3.0 -Sanic-Cors==2.2.0 -sanic-routing==22.8.0 -semver==2.13.0 -simple-websocket==0.10.0 -six==1.16.0 -sniffio==1.3.0 -snowballstemmer==2.2.0 -soupsieve==2.4.1 -Sphinx==4.5.0 -sphinx-autobuild==2021.3.14 -sphinx-autodoc-typehints==1.19.1 -sphinx-copybutton==0.5.2 -sphinx-reredirects==0.1.1 -sphinx-resolve-py-references==0.1.0 -sphinx_design==0.4.1 -sphinxcontrib-applehelp==1.0.4 -sphinxcontrib-devhelp==1.0.2 -sphinxcontrib-htmlhelp==2.0.1 -sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.3 -sphinxcontrib-serializinghtml==1.1.5 -sphinxext-opengraph==0.8.2 -stack-data==0.6.2 -starlette==0.26.1 -tokenize-rt==5.0.0 -tornado==6.2 -tracerite==1.1.0 -traitlets==5.9.0 -twine==4.0.2 -types-click==7.1.8 -types-Flask==1.1.6 -types-Jinja2==2.11.9 -types-MarkupSafe==1.1.10 -types-pkg-resources==0.1.3 -types-PyYAML==6.0.12.9 -types-requests==2.28.11.17 -types-tornado==5.1.1 -types-urllib3==1.26.25.10 -types-Werkzeug==1.0.9 -typing_extensions==4.5.0 -urllib3==1.26.15 -uvicorn==0.21.1 -virtualenv==20.21.0 -watchfiles==0.19.0 -wcwidth==0.2.6 -webencodings==0.5.1 -websockets==11.0.1 -Werkzeug==2.1.2 -wsproto==1.2.0 -zipp==3.15.0