From d6ad5cc195ef3fd5546ed60c8a505ad68f1f0863 Mon Sep 17 00:00:00 2001 From: Nabor Torres Date: Sat, 14 Oct 2023 07:35:06 -0300 Subject: [PATCH 1/4] Create requirement files for dev and prod --- examples/fastapi-gql/requirements-dev.txt | 4 ++++ .../fastapi-gql/{requirements.txt => requirements-prod.txt} | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 examples/fastapi-gql/requirements-dev.txt rename examples/fastapi-gql/{requirements.txt => requirements-prod.txt} (72%) diff --git a/examples/fastapi-gql/requirements-dev.txt b/examples/fastapi-gql/requirements-dev.txt new file mode 100644 index 0000000..b8cef39 --- /dev/null +++ b/examples/fastapi-gql/requirements-dev.txt @@ -0,0 +1,4 @@ +-r requirements-prod.txt # Include the production dependencies +factory-boy +Faker +flake8 \ No newline at end of file diff --git a/examples/fastapi-gql/requirements.txt b/examples/fastapi-gql/requirements-prod.txt similarity index 72% rename from examples/fastapi-gql/requirements.txt rename to examples/fastapi-gql/requirements-prod.txt index 541537d..965125c 100644 --- a/examples/fastapi-gql/requirements.txt +++ b/examples/fastapi-gql/requirements-prod.txt @@ -1,7 +1,4 @@ -factory-boy -Faker fastapi -flake8 strawberry-graphql uvicorn[standard] tortoise-orm[asyncpg] From 170c6d369b692fa83f0cc248abe414008a1f1b29 Mon Sep 17 00:00:00 2001 From: Nabor Torres Date: Sat, 14 Oct 2023 07:43:33 -0300 Subject: [PATCH 2/4] Update Readmefile --- examples/fastapi-gql/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/fastapi-gql/README.md b/examples/fastapi-gql/README.md index 78b5639..4e80afd 100644 --- a/examples/fastapi-gql/README.md +++ b/examples/fastapi-gql/README.md @@ -29,8 +29,17 @@ 2. Install the requirements from requirements.txt + - For development + + ```bash + pip install -r requirements-dev.txt + ``` + + - For production + ```bash - pip install -r requirements.txt``` + pip install -r requirements-prod.txt + ``` ## Usage From 204f5010b63776088cef4864d8203a89f1b093c7 Mon Sep 17 00:00:00 2001 From: Nabor Torres Date: Sat, 14 Oct 2023 08:41:41 -0300 Subject: [PATCH 3/4] Fix readme instructions --- examples/fastapi-gql/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fastapi-gql/README.md b/examples/fastapi-gql/README.md index 4e80afd..5d657ca 100644 --- a/examples/fastapi-gql/README.md +++ b/examples/fastapi-gql/README.md @@ -27,7 +27,7 @@ source env/bin/activate ``` -2. Install the requirements from requirements.txt +2. Install the requirements from corresponding requirements file - For development From d99ae8d3016ef9447bc47a3e039190873fc07d78 Mon Sep 17 00:00:00 2001 From: Nabor Torres Date: Tue, 17 Oct 2023 12:51:53 -0300 Subject: [PATCH 4/4] Fix requirements naming --- examples/fastapi-gql/README.md | 4 ++-- .../{requirements-dev.txt => requirements.dev.txt} | 0 .../fastapi-gql/{requirements-prod.txt => requirements.txt} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename examples/fastapi-gql/{requirements-dev.txt => requirements.dev.txt} (100%) rename examples/fastapi-gql/{requirements-prod.txt => requirements.txt} (100%) diff --git a/examples/fastapi-gql/README.md b/examples/fastapi-gql/README.md index 5d657ca..4c7195c 100644 --- a/examples/fastapi-gql/README.md +++ b/examples/fastapi-gql/README.md @@ -32,13 +32,13 @@ - For development ```bash - pip install -r requirements-dev.txt + pip install -r requirements.dev.txt ``` - For production ```bash - pip install -r requirements-prod.txt + pip install -r requirements.txt ``` ## Usage diff --git a/examples/fastapi-gql/requirements-dev.txt b/examples/fastapi-gql/requirements.dev.txt similarity index 100% rename from examples/fastapi-gql/requirements-dev.txt rename to examples/fastapi-gql/requirements.dev.txt diff --git a/examples/fastapi-gql/requirements-prod.txt b/examples/fastapi-gql/requirements.txt similarity index 100% rename from examples/fastapi-gql/requirements-prod.txt rename to examples/fastapi-gql/requirements.txt