-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from web2py/master
Update forked copy of py4web
- Loading branch information
Showing
242 changed files
with
9,579 additions
and
5,065 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 |
---|---|---|
|
@@ -4,9 +4,11 @@ cache: pip | |
language: python | ||
|
||
python: | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
|
||
script: | ||
- make test |
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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"name": "Python: py4web", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "py4web.py", | ||
"args": [ | ||
"run", | ||
"run", "--errorlog=:stdout", "-L", "20", | ||
"apps" | ||
], | ||
"console": "integratedTerminal", | ||
"justMyCode": true, | ||
"justMyCode": true | ||
}, | ||
{ | ||
"name": "Python: File", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${file}", | ||
"justMyCode": true | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,42 +1,40 @@ | ||
.PHONY: clean docs clean-assets assets test setup run build deploy | ||
.PHONY: clean docs clean-assets assets tests setup run build deploy | ||
asset-apps := _dashboard _default _scaffold _minimal _documentation showcase | ||
asset-zips := $(asset-apps:%=py4web/assets/py4web.app.%.zip) | ||
clean: | ||
find . -name '*.pyc' -delete | ||
find . -name '*~' -delete | ||
find . -name '#*' -delete | ||
rm -rf dist/* | ||
clean-assets: | ||
clean-assets: clean | ||
rm -f py4web/assets/* | ||
mkdir -p py4web/assets | ||
assets: clean-assets $(asset-zips) | ||
py4web/assets/py4web.app.%.zip: apps/% | ||
cd $< && find . | \ | ||
egrep "\.(py|html|css|js|png|jpg|gif|json|yaml|md|txt|mm|ico)$$" | \ | ||
zip -@ $(addprefix ../../, $@) | ||
venv: | ||
python3 -m venv venv | ||
venv/bin/pip install -U pip | ||
venv/bin/pip install ./ | ||
docs: venv | ||
venv/bin/pip install -U -r docs/requirements.txt | ||
cd docs; . ../venv/bin/activate && ./updateDocs.sh html | ||
test: venv | ||
venv/bin/pip install -U -r test-requirements.txt | ||
venv/bin/python -m pytest --cov=py4web --cov-report html:cov.html -v -s tests/ | ||
docs: | ||
pip install -U -r docs/requirements.txt | ||
cd docs; ./updateDocs.sh html | ||
tests: | ||
pip install -U -r test-requirements.txt | ||
python -m pytest --cov=py4web --cov-report html:cov.html -v tests/ | ||
setup: | ||
venv/bin/python py4web.py setup apps | ||
venv/bin/python py4web.py set_password | ||
python py4web.py setup apps | ||
python py4web.py set_password | ||
run: | ||
venv/bin/python py4web.py run -p password.txt apps | ||
python py4web.py run -p password.txt apps -L20 | ||
upgrade-utils: | ||
find apps -name "utils.js" -exec cp apps/_dashboard/static/js/utils.js {} \; | ||
upgrade-vue: | ||
curl -L https://unpkg.com/vue/dist/vue.min.js > apps/_dashboard/static/js/vue.min.js | ||
find apps -name "vue.min.js" -exec cp apps/_dashboard/static/js/vue.min.js {} \; | ||
build: clean assets | ||
python3 -m pip install --upgrade build | ||
python3 -m pip install --upgrade twine | ||
python3 -m build | ||
pip install --upgrade build | ||
pip install --upgrade twine | ||
python -m build | ||
deploy: build | ||
python3 -m twine upload dist/* | ||
python -m twine upload dist/* | ||
install: | ||
python -m pip install . |
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
Oops, something went wrong.