Dependencies: Separate runtime vs. test vs. development definitions

This commit is contained in:
Andreas Motl
2024-10-24 02:03:29 +02:00
committed by Andreas Motl
parent f7c6a3ae97
commit 55430a4366
4 changed files with 14 additions and 25 deletions
+1 -1
View File
@@ -25,5 +25,5 @@ jobs:
with:
python-version: "3.11"
- uses: yezz123/setup-uv@v4
- run: uv pip install -r requirements.txt --system
- run: uv pip install --editable '.[graphql,test]' --system
- run: pytest
+5
View File
@@ -0,0 +1,5 @@
-e .
pre-commit
ruff
twine
-15
View File
@@ -1,15 +0,0 @@
-e .
pytest
pytest-mock
twine
sphinx
marshmallow
pydantic
pytest-cov
ruff
pre-commit
httpx
apistar
typesystem==0.2.5
Flask
+8 -9
View File
@@ -22,23 +22,19 @@ if sys.argv[-1] == "publish":
sys.exit()
required = [
"starlette",
"starlette[full]",
"uvicorn[standard]",
"aiofiles",
"pyyaml",
"requests",
"jinja2",
"rfc3986",
"python-multipart",
"chardet",
"apispec>=1.0.0b1",
"marshmallow",
"whitenoise",
"docopt",
"docopt-ng",
"requests-toolbelt",
"graphene",
# "apistar",
"itsdangerous",
"apistar",
"typesystem<0.3",
]
@@ -123,7 +119,10 @@ setup(
python_requires=">=3.11",
setup_requires=[],
install_requires=required,
extras_require={},
extras_require={
"graphql": ["graphene"],
"test": ["pytest", "pytest-cov", "pytest-mock", "flask"]
},
include_package_data=True,
license="Apache 2.0",
classifiers=[