-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to get passing github actions builds (#36)
* Add pyproject.toml * Add pip-compile in files for requirements * Add devcontainer for local development * Create requirements.txt from pip-compile * Remove typing step for now * Rename tests file to be picked up by pytest * Rename to attempt to get tests to be picked up * Remove old compat import * Correct import to proper import * Remove old setup cfg and setup py * Attempt to get redist image to run for github actions * Changing redis url away from localhost * Trying to change hardcoded urls away from localhost * Revert test changes and map redis to localhost * Corrected indent and missing EOF line
- Loading branch information
Showing
17 changed files
with
294 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "pallets-eco/flask-rq", | ||
"image": "mcr.microsoft.com/devcontainers/python:3.8", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"python.defaultInterpreterPath": "${workspaceFolder}/.venv", | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.terminal.launchArgs": [ | ||
"-X", | ||
"dev" | ||
] | ||
} | ||
} | ||
}, | ||
"onCreateCommand": ".devcontainer/on-create-command.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
python3 -m venv --upgrade-deps .venv | ||
. .venv/bin/activate | ||
pip install -r requirements/dev.txt | ||
pip install -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[project] | ||
name = "Flask-RQ" | ||
version = "0.2" | ||
description="RQ (Redis Queue) integration for Flask applications" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
author = [{ name = "Matthew Wright"}] | ||
maintainers = [{name = "Pallets Ecosystem", email = "contact@palletsprojects.com"}] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Framework :: Flask", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"flask>=2.3.0", | ||
"rq>=1.16.2", | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://pythonhosted.org/Flask-RQ/" | ||
Changes = "https://github.com/pallets-eco/flask-rq/releases" | ||
Source = "https://github.com/pallets-eco/flask-rq" | ||
Chat = "https://discord.gg/pallets" | ||
|
||
[build-system] | ||
requires = ["flit_core<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[tool.flit.module] | ||
name = "flask_rq" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
filterwarnings = [ | ||
"error", | ||
] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["flask_rq", "tests"] | ||
|
||
[tool.coverage.paths] | ||
source = ["flask_rq.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile build.in | ||
# | ||
build==1.2.1 | ||
# via -r build.in | ||
importlib-metadata==7.1.0 | ||
# via build | ||
packaging==24.0 | ||
# via build | ||
pyproject-hooks==1.1.0 | ||
# via build | ||
tomli==2.0.1 | ||
# via build | ||
zipp==3.18.2 | ||
# via importlib-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pre-commit | ||
tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile dev.in | ||
# | ||
cachetools==5.3.3 | ||
# via tox | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
chardet==5.2.0 | ||
# via tox | ||
colorama==0.4.6 | ||
# via tox | ||
distlib==0.3.8 | ||
# via virtualenv | ||
filelock==3.14.0 | ||
# via | ||
# tox | ||
# virtualenv | ||
identify==2.5.36 | ||
# via pre-commit | ||
nodeenv==1.8.0 | ||
# via pre-commit | ||
packaging==24.0 | ||
# via | ||
# pyproject-api | ||
# tox | ||
platformdirs==4.2.2 | ||
# via | ||
# tox | ||
# virtualenv | ||
pluggy==1.5.0 | ||
# via tox | ||
pre-commit==3.5.0 | ||
# via -r dev.in | ||
pyproject-api==1.6.1 | ||
# via tox | ||
pyyaml==6.0.1 | ||
# via pre-commit | ||
tomli==2.0.1 | ||
# via | ||
# pyproject-api | ||
# tox | ||
tox==4.15.0 | ||
# via -r dev.in | ||
virtualenv==20.26.2 | ||
# via | ||
# pre-commit | ||
# tox | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pallets-sphinx-themes | ||
sphinx | ||
sphinxcontrib-log-cabinet | ||
sphinx-tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile docs.in | ||
# | ||
alabaster==0.7.13 | ||
# via sphinx | ||
babel==2.15.0 | ||
# via sphinx | ||
certifi==2024.2.2 | ||
# via requests | ||
charset-normalizer==3.3.2 | ||
# via requests | ||
docutils==0.20.1 | ||
# via | ||
# sphinx | ||
# sphinx-tabs | ||
idna==3.7 | ||
# via requests | ||
imagesize==1.4.1 | ||
# via sphinx | ||
importlib-metadata==7.1.0 | ||
# via sphinx | ||
jinja2==3.1.4 | ||
# via sphinx | ||
markupsafe==2.1.5 | ||
# via jinja2 | ||
packaging==24.0 | ||
# via | ||
# pallets-sphinx-themes | ||
# sphinx | ||
pallets-sphinx-themes==2.1.3 | ||
# via -r docs.in | ||
pygments==2.18.0 | ||
# via | ||
# sphinx | ||
# sphinx-tabs | ||
pytz==2024.1 | ||
# via babel | ||
requests==2.32.2 | ||
# via sphinx | ||
snowballstemmer==2.2.0 | ||
# via sphinx | ||
sphinx==7.1.2 | ||
# via | ||
# -r docs.in | ||
# pallets-sphinx-themes | ||
# sphinx-tabs | ||
# sphinxcontrib-log-cabinet | ||
sphinx-tabs==3.4.5 | ||
# via -r docs.in | ||
sphinxcontrib-applehelp==1.0.4 | ||
# via sphinx | ||
sphinxcontrib-devhelp==1.0.2 | ||
# via sphinx | ||
sphinxcontrib-htmlhelp==2.0.1 | ||
# via sphinx | ||
sphinxcontrib-jsmath==1.0.1 | ||
# via sphinx | ||
sphinxcontrib-log-cabinet==1.0.1 | ||
# via -r docs.in | ||
sphinxcontrib-qthelp==1.0.3 | ||
# via sphinx | ||
sphinxcontrib-serializinghtml==1.1.5 | ||
# via sphinx | ||
urllib3==2.2.1 | ||
# via requests | ||
zipp==3.18.2 | ||
# via importlib-metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pytest | ||
rq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile tests.in | ||
# | ||
async-timeout==4.0.3 | ||
# via redis | ||
click==8.1.7 | ||
# via rq | ||
exceptiongroup==1.2.1 | ||
# via pytest | ||
iniconfig==2.0.0 | ||
# via pytest | ||
packaging==24.0 | ||
# via pytest | ||
pluggy==1.5.0 | ||
# via pytest | ||
pytest==8.2.1 | ||
# via -r tests.in | ||
redis==5.0.4 | ||
# via rq | ||
rq==1.16.2 | ||
# via -r tests.in | ||
tomli==2.0.1 | ||
# via pytest |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[tox] | ||
envlist = | ||
py3{13,12,11,10,9,8} | ||
docs | ||
skip_missing_interpreters = true | ||
|
||
[testenv] | ||
package = wheel | ||
wheel_build_env = .pkg | ||
constrain_package_deps = true | ||
use_frozen_constraints = true | ||
deps = -r requirements/tests.txt | ||
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs} | ||
|
||
[testenv:docs] | ||
deps = -r requirements/docs.txt | ||
commands = sphinx-build -E -W -b dirhtml docs docs/_build/dirhtml | ||
|
||
[testenv:update-requirements] | ||
base_python = 3.8 | ||
labels = update | ||
deps = pip-tools | ||
skip_install = true | ||
change_dir = requirements | ||
commands = | ||
pip-compile build.in -q {posargs:-U} | ||
pip-compile docs.in -q {posargs:-U} | ||
pip-compile tests.in -q {posargs:-U} | ||
pip-compile dev.in -q {posargs:-U} |