-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
Fixes (#89)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,13 @@ alembic_migrate: | |
benchmark_test: | ||
pytest -vvrx --durations=0 | ||
|
||
#black: | ||
# black . | ||
|
||
build_docs: | ||
sphinx-build -n -a -b html docs builddocs | ||
cd builddocs && zip -r ../builddocs.zip . -x ".*" && cd .. | ||
|
||
check_release: | ||
python setup.py sdist bdist_wheel | ||
twine check dist/* | ||
twine check dist/* --verbose | ||
|
||
clean: | ||
find . -name "*.pyc" -exec rm -rf {} \; | ||
|
@@ -35,104 +32,6 @@ clean: | |
rm -rf .mypy_cache/ | ||
rm -rf .ruff_cache/ | ||
|
||
#compile_requirements: | ||
# echo "common.in" | ||
# pip-compile examples/requirements/common.in | ||
# | ||
# echo "debug.in" | ||
# pip-compile examples/requirements/debug.in | ||
# | ||
# echo "deployment.in" | ||
# pip-compile examples/requirements/deployment.in | ||
# | ||
# echo "dev.in" | ||
# pip-compile examples/requirements/dev.in | ||
# | ||
# echo "django_5_0.in" | ||
# pip-compile examples/requirements/django_5_0.in | ||
# | ||
# echo "django_5_1.in" | ||
# pip-compile examples/requirements/django_5_1.in | ||
# | ||
# echo "django_4_2.in" | ||
# pip-compile examples/requirements/django_4_2.in | ||
# | ||
# echo "django_5_0_and_flask.in" | ||
# pip-compile examples/requirements/django_5_0_and_flask.in | ||
# | ||
# echo "django_5_1_and_flask.in" | ||
# pip-compile examples/requirements/django_5_1_and_flask.in | ||
# | ||
# echo "django_4_2_and_flask.in" | ||
# pip-compile examples/requirements/django_4_2_and_flask.in | ||
# | ||
# echo "docs.in" | ||
# pip-compile examples/requirements/docs.in | ||
# | ||
# echo "flask.in" | ||
# pip-compile examples/requirements/flask.in | ||
# | ||
# echo "ml.in" | ||
# pip-compile examples/requirements/ml.in | ||
# | ||
# echo "style_checkers.in" | ||
# pip-compile examples/requirements/style_checkers.in | ||
# | ||
# echo "test.in" | ||
# pip-compile examples/requirements/test.in | ||
# | ||
# echo "testing.in" | ||
# pip-compile examples/requirements/testing.in | ||
# | ||
#compile_requirements_upgrade: | ||
# echo "common.in" | ||
# pip-compile --upgrade examples/requirements/common.in | ||
# | ||
# echo "debug.in" | ||
# pip-compile --upgrade examples/requirements/debug.in | ||
# | ||
# echo "deployment.in" | ||
# pip-compile --upgrade examples/requirements/deployment.in | ||
# | ||
# echo "dev.in" | ||
# pip-compile --upgrade examples/requirements/dev.in | ||
# | ||
# echo "django_5_0.in" | ||
# pip-compile --upgrade examples/requirements/django_5_0.in | ||
# | ||
# echo "django_5_1.in" | ||
# pip-compile --upgrade examples/requirements/django_5_1.in | ||
# | ||
# echo "django_4_2.in" | ||
# pip-compile --upgrade examples/requirements/django_4_2.in | ||
# | ||
# echo "django_5_0_and_flask.in" | ||
# pip-compile --upgrade examples/requirements/django_5_0_and_flask.in | ||
# | ||
# echo "django_5_1_and_flask.in" | ||
# pip-compile --upgrade examples/requirements/django_5_1_and_flask.in | ||
# | ||
# echo "django_4_2_and_flask.in" | ||
# pip-compile --upgrade examples/requirements/django_4_2_and_flask.in | ||
# | ||
# echo "docs.in" | ||
# pip-compile --upgrade examples/requirements/docs.in | ||
# | ||
# echo "flask.in" | ||
# pip-compile --upgrade examples/requirements/flask.in | ||
# | ||
# echo "ml.in" | ||
# pip-compile --upgrade examples/requirements/ml.in | ||
# | ||
# echo "style_checkers.in" | ||
# pip-compile --upgrade examples/requirements/style_checkers.in | ||
# | ||
# echo "test.in" | ||
# pip-compile --upgrade examples/requirements/test.in | ||
# | ||
# echo "testing.in" | ||
# pip-compile --upgrade examples/requirements/testing.in | ||
|
||
compile_requirements: | ||
echo "common.in" | ||
uv pip compile --no-strip-extras examples/requirements/common.in -o examples/requirements/common.txt | ||
|
@@ -246,17 +145,13 @@ flask_runserver: | |
pre-commit: | ||
pre-commit run --all-files | ||
|
||
install: | ||
pip-compile examples/requirements/dev.in | ||
install: compile_requirements | ||
pip install -r examples/requirements/dev.txt | ||
pip install -e . | ||
mkdir -p var/logs examples/db examples/media examples/media/static | ||
python examples/django_example/manage.py collectstatic --noinput | ||
python examples/django_example/manage.py migrate --noinput | ||
|
||
#isort: | ||
# isort . --overwrite-in-place | ||
|
||
jupyter: | ||
cd examples/django_example/ && TOKENIZERS_PARALLELISM=true ./manage.py shell_plus --notebook | ||
|
||
|
@@ -287,7 +182,7 @@ mypy: | |
auto_build_docs: | ||
sphinx-autobuild docs docs/_build/html | ||
|
||
rebuild_docs: clean_up | ||
rebuild_docs: clean | ||
sphinx-apidoc src/faker_file --full -o docs -H 'faker-file' -A 'Artur Barseghyan <[email protected]>' -f -d 20 | ||
cp docs/conf.py.distrib docs/conf.py | ||
cp docs/index.rst.distrib docs/index.rst | ||
|
@@ -302,7 +197,7 @@ runserver: | |
cd examples/django_example/ && ./manage.py runserver 0.0.0.0:8000 --traceback -v 3 "$$@" | ||
|
||
serve_docs: | ||
cd builddocs/ && python -m http.server 5000 | ||
cd builddocs/ && python -m http.server 5001 | ||
|
||
shell: | ||
cd examples/django_example/ && ./manage.py shell --traceback -v 3 "$$@" | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.