feature: add export function for requirements.txt

This commit is contained in:
winkidney
2022-05-04 21:40:04 +08:00
parent 0040d47b1e
commit 01082c63ef
4 changed files with 4 additions and 40 deletions

View File

@@ -23,6 +23,8 @@ serve-gunicorn:
poetry run gunicorn pinry.wsgi -b 0.0.0.0:8000 -w 4 --capture-output --timeout 30 --user www-data --group www-data
serve:
poetry run python manage.py runserver 0.0.0.0:8000
export-requirements:
poetry export -f requirements.txt -o requirements.txt
install:
poetry install
test:

View File

@@ -15,6 +15,7 @@ IMAGE_VERSION_TAG=`git tag -l --sort=-creatordate | head -n 1 | sed "s/v//g"`
# -f "${script_dir}/../Dockerfile.autobuild"
sudo docker buildx build \
--no-cache \
--output=type=docker \
--platform linux/amd64 \
-t getpinry/pinry:${IMAGE_LATEST_TAG} \

40
poetry.lock generated
View File

@@ -265,24 +265,6 @@ type = "legacy"
url = "https://pypi.doubanio.com/simple"
reference = "douban"
[[package]]
name = "django-restql"
version = "0.15.2"
description = "Turn your API made with Django REST Framework(DRF) into a GraphQL like API."
category = "main"
optional = false
python-versions = ">=3.5"
[package.dependencies]
django = ">=1.11"
djangorestframework = ">=3.5"
pypeg2 = ">=2.15.2"
[package.source]
type = "legacy"
url = "https://pypi.doubanio.com/simple"
reference = "douban"
[[package]]
name = "django-taggit"
version = "1.3.0"
@@ -696,19 +678,6 @@ type = "legacy"
url = "https://pypi.doubanio.com/simple"
reference = "douban"
[[package]]
name = "pypeg2"
version = "2.15.2"
description = "An intrinsic PEG Parser-Interpreter for Python"
category = "main"
optional = false
python-versions = "*"
[package.source]
type = "legacy"
url = "https://pypi.doubanio.com/simple"
reference = "douban"
[[package]]
name = "pytz"
version = "2022.1"
@@ -948,7 +917,7 @@ reference = "douban"
[metadata]
lock-version = "1.1"
python-versions = ">=3.7"
content-hash = "4743a937d2f117b186b4aab7d1e34e96c3784b7b2d7a589a9dc7105d0307d764"
content-hash = "2a27c7f77173f919d5fd4b277afd84e336960a0e8d5cf35c2feb681fe681bb09"
[metadata.files]
appdirs = [
@@ -1014,10 +983,6 @@ django-filter = [
{file = "django-filter-2.4.0.tar.gz", hash = "sha256:84e9d5bb93f237e451db814ed422a3a625751cbc9968b484ecc74964a8696b06"},
{file = "django_filter-2.4.0-py3-none-any.whl", hash = "sha256:e00d32cebdb3d54273c48f4f878f898dced8d5dfaad009438fe61ebdf535ace1"},
]
django-restql = [
{file = "django-restql-0.15.2.tar.gz", hash = "sha256:74315ab11955f7ea1b008ea39dd19cf4f78ab6011f270bb46a0053f81839e26d"},
{file = "django_restql-0.15.2-py3-none-any.whl", hash = "sha256:9a2d2202c5f59f5de892e131a8c75dc047007e6c6a7efb48c90012df5986bf62"},
]
django-taggit = [
{file = "django-taggit-1.3.0.tar.gz", hash = "sha256:4a833bf71f4c2deddd9745924eee53be1c075d7f0020a06f12e29fa3d752732d"},
{file = "django_taggit-1.3.0-py3-none-any.whl", hash = "sha256:609b0223d8a652f3fae088b7fd29f294fdadaca2d7931d45c27d6c59b02fdf31"},
@@ -1247,9 +1212,6 @@ pymdown-extensions = [
{file = "pymdown-extensions-6.2.1.tar.gz", hash = "sha256:3bbe6048275f8a0d13a0fe44e0ea201e67268aa7bb40c2544eef16abbf168f7b"},
{file = "pymdown_extensions-6.2.1-py2.py3-none-any.whl", hash = "sha256:dce5e17b93be0572322b7d06c9a13c13a9d98694d6468277911d50ca87d26f29"},
]
pypeg2 = [
{file = "pyPEG2-2.15.2.tar.gz", hash = "sha256:2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d"},
]
pytz = [
{file = "pytz-2022.1-py2.py3-none-any.whl", hash = "sha256:e68985985296d9a66a881eb3193b0906246245294a881e7c8afe623866ac6a5c"},
{file = "pytz-2022.1.tar.gz", hash = "sha256:1e760e2fe6a8163bc0b3d9a19c4f84342afa0a2affebfaa84b01b978a02ecaa7"},

View File

@@ -14,7 +14,6 @@ markdown = "<3.2"
django-filter = "==2.4.0"
coreapi = "^2.3.3"
psycopg2-binary = "^2.9.3"
django-restql = "^0.15.2"
django-taggit = "1.3.0"
django-braces = "^1.15.0"
django-compressor = "^4.0"