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

updated with fixes from flask-session2 #170

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
58 changes: 58 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: test
on:
push:
pull_request:

jobs:
test:
name: python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9, '3.10', 3.11]
fail-fast: true

steps:
- name: checkout
uses: actions/checkout@v3
- name: setup python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '5.0'
- name: Start MemCache
uses: niden/actions-memcached@v7
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 6
- name: Configure sysctl limits for elasticsearch
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start elasticsearch
uses: getong/[email protected]
with:
elasticsearch version: 8.3.3
host port: 9200
container port: 9200
host node port: 9300
node port: 9300
discovery type: single-node

- name: install deps
run: python -m pip install -r requirements/dev.txt
- name: test
run: python -m tox -e test
- name: upload cov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
verbose: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ __pycache__/
/.mypy_cache/
/.tox/
/docs/_build/
/.ruff_cache/
/.python-version
/sqlite
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ requires-python = ">=3.7"
dependencies = [
"flask>=2.2",
"cachelib",
"pytz"
]
dynamic = ["version"]

Expand Down
15 changes: 15 additions & 0 deletions requirements/dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pymongo
Flask-SQLAlchemy
pymemcache
tox
redis
coverage
elasticsearch
google-cloud-datastore
google-cloud-firestore
peewee
boto3
flask
pytz
cachelib
pip-compile-multi
196 changes: 196 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
# SHA1:f3cb68738f680faaea394a5b8721144fc18077e2
#
# This file is autogenerated by pip-compile-multi
# To update, run:
#
# pip-compile-multi
#
async-timeout==4.0.2
# via redis
blinker==1.6.2
# via flask
boto3==1.26.132
# via -r requirements/dev.in
botocore==1.29.132
# via
# boto3
# s3transfer
build==0.10.0
# via pip-tools
cachelib==0.10.2
# via -r requirements/dev.in
cachetools==5.3.0
# via
# google-auth
# tox
certifi==2023.5.7
# via
# elastic-transport
# requests
chardet==5.1.0
# via tox
charset-normalizer==3.1.0
# via requests
click==8.1.3
# via
# flask
# pip-compile-multi
# pip-tools
colorama==0.4.6
# via tox
coverage==7.2.5
# via -r requirements/dev.in
distlib==0.3.6
# via virtualenv
dnspython==2.3.0
# via pymongo
elastic-transport==8.4.0
# via elasticsearch
elasticsearch==8.7.0
# via -r requirements/dev.in
filelock==3.12.0
# via
# tox
# virtualenv
flask==2.3.2
# via
# -r requirements/dev.in
# flask-sqlalchemy
flask-sqlalchemy==3.0.3
# via -r requirements/dev.in
google-api-core[grpc]==2.11.0
# via
# google-cloud-core
# google-cloud-datastore
# google-cloud-firestore
google-auth==2.18.0
# via
# google-api-core
# google-cloud-core
google-cloud-core==2.3.2
# via
# google-cloud-datastore
# google-cloud-firestore
google-cloud-datastore==2.15.2
# via -r requirements/dev.in
google-cloud-firestore==2.11.1
# via -r requirements/dev.in
googleapis-common-protos==1.59.0
# via
# google-api-core
# grpcio-status
greenlet==2.0.2
# via sqlalchemy
grpcio==1.54.0
# via
# google-api-core
# grpcio-status
grpcio-status==1.54.0
# via google-api-core
idna==3.4
# via requests
importlib-metadata==6.6.0
# via flask
itsdangerous==2.1.2
# via flask
jinja2==3.1.2
# via flask
jmespath==1.0.1
# via
# boto3
# botocore
markupsafe==2.1.2
# via
# jinja2
# werkzeug
packaging==23.1
# via
# build
# pyproject-api
# tox
peewee==3.16.2
# via -r requirements/dev.in
pip-compile-multi==2.6.3
# via -r requirements/dev.in
pip-tools==6.13.0
# via pip-compile-multi
platformdirs==3.5.0
# via
# tox
# virtualenv
pluggy==1.0.0
# via tox
proto-plus==1.22.2
# via
# google-cloud-datastore
# google-cloud-firestore
protobuf==4.23.0
# via
# google-api-core
# google-cloud-datastore
# google-cloud-firestore
# googleapis-common-protos
# grpcio-status
# proto-plus
pyasn1==0.5.0
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.3.0
# via google-auth
pymemcache==4.0.0
# via -r requirements/dev.in
pymongo==4.3.3
# via -r requirements/dev.in
pyproject-api==1.5.1
# via tox
pyproject-hooks==1.0.0
# via build
python-dateutil==2.8.2
# via botocore
pytz==2023.3
# via -r requirements/dev.in
redis==4.5.5
# via -r requirements/dev.in
requests==2.30.0
# via google-api-core
rsa==4.9
# via google-auth
s3transfer==0.6.1
# via boto3
six==1.16.0
# via
# google-auth
# python-dateutil
sqlalchemy==2.0.13
# via flask-sqlalchemy
tomli==2.0.1
# via
# build
# pyproject-api
# pyproject-hooks
# tox
toposort==1.10
# via pip-compile-multi
tox==4.5.1
# via -r requirements/dev.in
typing-extensions==4.5.0
# via sqlalchemy
urllib3==1.26.15
# via
# botocore
# elastic-transport
# google-auth
# requests
virtualenv==20.23.0
# via tox
werkzeug==2.3.4
# via flask
wheel==0.40.0
# via pip-tools
zipp==3.15.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools
4 changes: 4 additions & 0 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ idna==3.4
# via requests
imagesize==1.4.1
# via sphinx
importlib-metadata==6.6.0
# via sphinx
jinja2==3.1.2
# via sphinx
markupsafe==2.1.2
Expand Down Expand Up @@ -47,3 +49,5 @@ sphinxcontrib-serializinghtml==1.1.5
# via sphinx
urllib3==2.0.2
# via requests
zipp==3.15.0
# via importlib-metadata
Loading