Skip to content

Commit

Permalink
Bump dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddbirchard committed Apr 9, 2024
1 parent 080d9e7 commit 0f9b1ed
Show file tree
Hide file tree
Showing 13 changed files with 464 additions and 449 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,26 @@ $(VIRTUAL_ENV):
python3 -m venv $(VIRTUAL_ENV); \
fi


.PHONY: run
run: env
$(LOCAL_PYTHON) -m wsgi
$(LOCAL_PYTHON) -m gunicorn -w 4 wsgi:app


.PHONY: install
install: env
$(LOCAL_PYTHON) -m pip install --upgrade pip setuptools wheel && \
$(LOCAL_PYTHON) -m pip install -r requirements.txt && \
echo "Installed dependencies in virtualenv \`${VIRTUAL_ENVIRONMENT}\`";


.PHONY: deploy
deploy:
make clean \
make install \
make run


.PHONY: test
test: env
$(LOCAL_PYTHON) -m \
Expand All @@ -54,18 +58,21 @@ test: env
coverage html --title='Coverage Report' -d .reports && \
open .reports/index.html


.PHONY: update
update: env
$(LOCAL_PYTHON) -m pip install --upgrade pip setuptools wheel && \
poetry update && \
poetry export -f requirements.txt --output requirements.txt --without-hashes && \
echo "Updated dependencies in virtualenv \`${VIRTUAL_ENVIRONMENT}\`";


.PHONY: format
format: env
$(LOCAL_PYTHON) -m isort --multi-line=3 . && \
$(LOCAL_PYTHON) -m black .


.PHONY: lint
lint: env
$(LOCAL_PYTHON) -m flake8 . --count \
Expand All @@ -75,6 +82,7 @@ lint: env
--show-source \
--statistics


.PHONY: clean
clean:
find . -name 'poetry.lock' -delete && \
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Replace the values in **.env.example** with your values and rename this file to
Get up and running with `make deploy`:

```shell
git clone https://github.com/hackersandslackers/flask-blueprint-tutorial.git
cd flask-blueprint-tutorial
make deploy
$ git clone https://github.com/toddbirchard/pythonmyadmin.git
$ cd pythonmyadmin
$ make deploy
```
1 change: 1 addition & 0 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Flask app configuration."""

from os import environ, path

from dotenv import load_dotenv
Expand Down
816 changes: 409 additions & 407 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ isort = "*"
cssmin = "*"
jsmin = "*"
lesscpy = "*"
uwsgi = "*"
flake8 = "*"
gunicorn = "*"

[tool.poetry.scripts]
run = "wsgi:app"
Expand Down
1 change: 1 addition & 0 deletions pythonmyadmin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Initialize app."""

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

Expand Down
1 change: 1 addition & 0 deletions pythonmyadmin/assets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Build static assets."""

from flask import Flask
from flask_assets import Bundle, Environment

Expand Down
1 change: 1 addition & 0 deletions pythonmyadmin/forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Form classes."""

from wtforms import Form, PasswordField, SelectField, StringField, SubmitField
from wtforms.validators import DataRequired, Length, Optional

Expand Down
1 change: 1 addition & 0 deletions pythonmyadmin/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data models."""

from flask import current_app as app

from pythonmyadmin import db
Expand Down
1 change: 1 addition & 0 deletions pythonmyadmin/routes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Core route declaration."""

from typing import List

from flask import Blueprint
Expand Down
69 changes: 34 additions & 35 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ansi2html==1.8.0 ; python_version >= "3.10" and python_version < "4.0"
async-timeout==4.0.3 ; python_version >= "3.10" and python_full_version <= "3.11.2"
black==23.11.0 ; python_version >= "3.10" and python_version < "4.0"
async-timeout==4.0.3 ; python_version >= "3.10" and python_full_version < "3.11.3"
black==24.3.0 ; python_version >= "3.10" and python_version < "4.0"
blinker==1.7.0 ; python_version >= "3.10" and python_version < "4.0"
certifi==2023.11.17 ; python_version >= "3.10" and python_version < "4.0"
certifi==2024.2.2 ; python_version >= "3.10" and python_version < "4.0"
charset-normalizer==3.3.2 ; python_version >= "3.10" and python_version < "4.0"
click==8.1.7 ; python_version >= "3.10" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.10" and python_version < "4.0" and (sys_platform == "win32" or platform_system == "Windows")
Expand All @@ -11,53 +10,53 @@ dash-core-components==2.0.0 ; python_version >= "3.10" and python_version < "4.0
dash-html-components==2.0.0 ; python_version >= "3.10" and python_version < "4.0"
dash-renderer==1.9.1 ; python_version >= "3.10" and python_version < "4.0"
dash-table==5.0.0 ; python_version >= "3.10" and python_version < "4.0"
dash==2.14.2 ; python_version >= "3.10" and python_version < "4.0"
dash==2.16.1 ; python_version >= "3.10" and python_version < "4.0"
exceptiongroup==1.2.0 ; python_version >= "3.10" and python_version < "3.11"
flake8==6.1.0 ; python_version >= "3.10" and python_version < "4.0"
flake8==7.0.0 ; python_version >= "3.10" and python_version < "4.0"
flask-assets==2.1.0 ; python_version >= "3.10" and python_version < "4.0"
flask-sqlalchemy==3.1.1 ; python_version >= "3.10" and python_version < "4.0"
flask==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
greenlet==3.0.1 ; python_version >= "3.10" and python_version < "4.0" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
flask==3.0.3 ; python_version >= "3.10" and python_version < "4.0"
greenlet==3.0.3 ; python_version >= "3.10" and python_version < "4.0" and (platform_machine == "aarch64" or platform_machine == "ppc64le" or platform_machine == "x86_64" or platform_machine == "amd64" or platform_machine == "AMD64" or platform_machine == "win32" or platform_machine == "WIN32")
gunicorn==21.2.0 ; python_version >= "3.10" and python_version < "4.0"
idna==3.6 ; python_version >= "3.10" and python_version < "4.0"
importlib-metadata==7.0.0 ; python_version >= "3.10" and python_version < "4.0"
importlib-metadata==7.1.0 ; python_version >= "3.10" and python_version < "4.0"
iniconfig==2.0.0 ; python_version >= "3.10" and python_version < "4.0"
isort==5.12.0 ; python_version >= "3.10" and python_version < "4.0"
isort==5.13.2 ; python_version >= "3.10" and python_version < "4.0"
itsdangerous==2.1.2 ; python_version >= "3.10" and python_version < "4.0"
jinja2==3.1.2 ; python_version >= "3.10" and python_version < "4.0"
jinja2==3.1.3 ; python_version >= "3.10" and python_version < "4.0"
jsmin==3.0.1 ; python_version >= "3.10" and python_version < "4.0"
lesscpy==0.15.1 ; python_version >= "3.10" and python_version < "4.0"
markupsafe==2.1.3 ; python_version >= "3.10" and python_version < "4.0"
markupsafe==2.1.5 ; python_version >= "3.10" and python_version < "4.0"
mccabe==0.7.0 ; python_version >= "3.10" and python_version < "4.0"
mypy-extensions==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
nest-asyncio==1.5.8 ; python_version >= "3.10" and python_version < "4.0"
numpy==1.26.2 ; python_version >= "3.10" and python_version <= "3.11" or python_version >= "3.12" and python_version < "4.0"
packaging==23.2 ; python_version >= "3.10" and python_version < "4.0"
pandas==2.1.3 ; python_version >= "3.10" and python_version < "4.0"
pathspec==0.11.2 ; python_version >= "3.10" and python_version < "4.0"
platformdirs==4.1.0 ; python_version >= "3.10" and python_version < "4.0"
plotly==5.18.0 ; python_version >= "3.10" and python_version < "4.0"
pluggy==1.3.0 ; python_version >= "3.10" and python_version < "4.0"
nest-asyncio==1.6.0 ; python_version >= "3.10" and python_version < "4.0"
numpy==1.26.4 ; python_version >= "3.10" and python_version <= "3.11" or python_version >= "3.12" and python_version < "4.0"
packaging==24.0 ; python_version >= "3.10" and python_version < "4.0"
pandas==2.2.1 ; python_version >= "3.10" and python_version < "4.0"
pathspec==0.12.1 ; python_version >= "3.10" and python_version < "4.0"
platformdirs==4.2.0 ; python_version >= "3.10" and python_version < "4.0"
plotly==5.20.0 ; python_version >= "3.10" and python_version < "4.0"
pluggy==1.4.0 ; python_version >= "3.10" and python_version < "4.0"
ply==3.11 ; python_version >= "3.10" and python_version < "4.0"
pycodestyle==2.11.1 ; python_version >= "3.10" and python_version < "4.0"
pyflakes==3.1.0 ; python_version >= "3.10" and python_version < "4.0"
pyflakes==3.2.0 ; python_version >= "3.10" and python_version < "4.0"
pymysql==1.1.0 ; python_version >= "3.10" and python_version < "4.0"
pytest==7.4.3 ; python_version >= "3.10" and python_version < "4.0"
python-dateutil==2.8.2 ; python_version >= "3.10" and python_version < "4.0"
python-dotenv==1.0.0 ; python_version >= "3.10" and python_version < "4.0"
pytz==2023.3.post1 ; python_version >= "3.10" and python_version < "4.0"
redis==5.0.1 ; python_version >= "3.10" and python_version < "4.0"
pytest==8.1.1 ; python_version >= "3.10" and python_version < "4.0"
python-dateutil==2.9.0.post0 ; python_version >= "3.10" and python_version < "4.0"
python-dotenv==1.0.1 ; python_version >= "3.10" and python_version < "4.0"
pytz==2024.1 ; python_version >= "3.10" and python_version < "4.0"
redis==5.0.3 ; python_version >= "3.10" and python_version < "4.0"
requests==2.31.0 ; python_version >= "3.10" and python_version < "4.0"
retrying==1.3.4 ; python_version >= "3.10" and python_version < "4.0"
setuptools==69.0.2 ; python_version >= "3.10" and python_version < "4.0"
setuptools==69.2.0 ; python_version >= "3.10" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.10" and python_version < "4.0"
sqlalchemy==2.0.23 ; python_version >= "3.10" and python_version < "4.0"
sqlalchemy==2.0.29 ; python_version >= "3.10" and python_version < "4.0"
tenacity==8.2.3 ; python_version >= "3.10" and python_version < "4.0"
tomli==2.0.1 ; python_version >= "3.10" and python_version < "3.11"
typing-extensions==4.8.0 ; python_version >= "3.10" and python_version < "4.0"
tzdata==2023.3 ; python_version >= "3.10" and python_version < "4.0"
urllib3==2.1.0 ; python_version >= "3.10" and python_version < "4.0"
uwsgi==2.0.23 ; python_version >= "3.10" and python_version < "4.0"
typing-extensions==4.11.0 ; python_version >= "3.10" and python_version < "4.0"
tzdata==2024.1 ; python_version >= "3.10" and python_version < "4.0"
urllib3==2.2.1 ; python_version >= "3.10" and python_version < "4.0"
webassets==2.0 ; python_version >= "3.10" and python_version < "4.0"
werkzeug==3.0.1 ; python_version >= "3.10" and python_version < "4.0"
wtforms==3.1.1 ; python_version >= "3.10" and python_version < "4.0"
zipp==3.17.0 ; python_version >= "3.10" and python_version < "4.0"
werkzeug==3.0.2 ; python_version >= "3.10" and python_version < "4.0"
wtforms==3.1.2 ; python_version >= "3.10" and python_version < "4.0"
zipp==3.18.1 ; python_version >= "3.10" and python_version < "4.0"
1 change: 0 additions & 1 deletion table/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def update_output(n_clicks, value):
n_clicks
)'''


"""@dash_app.callback(
Output('callback-container', 'children'),
[Input('database-table', 'row_update'),
Expand Down
3 changes: 2 additions & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Application entry point."""

from pythonmyadmin import create_app

app = create_app()

if __name__ == "__main__":
app.run(host="0.0.0.0", load_dotenv=True, port=8091)
app.run(host="0.0.0.0", load_dotenv=True)

0 comments on commit 0f9b1ed

Please sign in to comment.