Skip to content

Commit 3b5ef73

Browse files
authored
Feature/remove requests (#6)
* removed python 3.9 moved requests to niquests * added a dependency for a higher urllib3
1 parent 65c3932 commit 3b5ef73

8 files changed

Lines changed: 51 additions & 549 deletions

File tree

cookiecutter.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
],
1717
"__app_name": "{{ cookiecutter.git_repo_name.lower().replace(' ', '_').replace('-', '_') }}",
1818
"minimum_python_version": [
19-
"3.9",
2019
"3.10",
2120
"3.11",
2221
"3.12",
@@ -27,7 +26,7 @@
2726
"uv",
2827
"pip"
2928
],
30-
"use_requests": [
29+
"use_niquests": [
3130
"n",
3231
"y"
3332
],
@@ -48,7 +47,7 @@
4847
"https"
4948
],
5049
"__template_repo": "https://github.com/btr1975/cookiecutter-python-fastapi-openapi",
51-
"__template_version": "2.0.4",
50+
"__template_version": "2.0.5",
5251
"_new_lines": "\n",
5352
"_copy_without_render": [
5453
"{{cookiecutter.__app_name}}/templates",
@@ -74,7 +73,6 @@
7473
},
7574
"minimum_python_version": {
7675
"__prompt__": "Which minimum Python version will be supported",
77-
"3.9": "3.9",
7876
"3.10": "3.10",
7977
"3.11": "3.11",
8078
"3.12": "3.12",
@@ -86,8 +84,8 @@
8684
"uv": "UV By Astral",
8785
"pip": "PIP (The built in Python Package Installer)"
8886
},
89-
"use_requests": {
90-
"__prompt__": "Will you use the requests library",
87+
"use_niquests": {
88+
"__prompt__": "Will you use the niquests library",
9189
"n": "No",
9290
"y": "Yes"
9391
},

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
name = "cookiecutter-python-fastapi-openapi"
1010
version = "2.0.4"
1111
dynamic = ["readme"]
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.10"
1313
description = "A cookiecutter for a python FastAPI Application"
1414
keywords = [
1515
]
@@ -34,7 +34,6 @@ classifiers = [
3434
"Operating System :: Microsoft :: Windows",
3535
"Programming Language :: Python :: 3",
3636
"Programming Language :: Python :: 3 :: Only",
37-
"Programming Language :: Python :: 3.9",
3837
"Programming Language :: Python :: 3.10",
3938
"Programming Language :: Python :: 3.11",
4039
"Programming Language :: Python :: 3.12",
@@ -44,6 +43,7 @@ classifiers = [
4443

4544
dependencies = [
4645
"cookiecutter~=2.6.0",
46+
"urllib3>=2.6.0",
4747
]
4848

4949
[dependency-groups]

requirements-dev.txt

Lines changed: 13 additions & 190 deletions
Large diffs are not rendered by default.

requirements.txt

Lines changed: 9 additions & 51 deletions
Large diffs are not rendered by default.

uv.lock

Lines changed: 21 additions & 290 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

{{cookiecutter.git_repo_name}}/pyproject.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ classifiers = [
3838
"Operating System :: Microsoft :: Windows",
3939
"Programming Language :: Python :: 3",
4040
"Programming Language :: Python :: 3 :: Only",
41-
{% if cookiecutter.minimum_python_version == '3.9' %}"Programming Language :: Python :: 3.9",
42-
"Programming Language :: Python :: 3.10",
43-
"Programming Language :: Python :: 3.11",
44-
"Programming Language :: Python :: 3.12",
45-
"Programming Language :: Python :: 3.13",
46-
"Programming Language :: Python :: 3.14",{% endif -%}
4741
{% if cookiecutter.minimum_python_version == '3.10' %}"Programming Language :: Python :: 3.10",
4842
"Programming Language :: Python :: 3.11",
4943
"Programming Language :: Python :: 3.12",
@@ -67,7 +61,7 @@ dependencies = [
6761
"fastapi",
6862
"pydantic",
6963
"uvicorn",
70-
{% if cookiecutter.use_requests == 'y' %}"requests",{% endif %}
64+
{% if cookiecutter.use_niquests == 'y' %}"niquests",{% endif %}
7165
{% if cookiecutter.use_cryptography == 'y' %}"cryptography",{% endif %}
7266
]
7367

@@ -84,7 +78,6 @@ dev = [
8478
"httpx",
8579
"bandit",
8680
"mypy",
87-
{% if cookiecutter.use_requests == 'y' %}"requests-mock",{% endif %}
8881
]
8982
{% endif %}
9083

{{cookiecutter.git_repo_name}}/requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ httpx
1616
twine
1717
bandit
1818
mypy
19-
{% if cookiecutter.use_requests == 'y' %}requests-mock{% endif %}

{{cookiecutter.git_repo_name}}/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
fastapi
55
pydantic
66
uvicorn
7-
{% if cookiecutter.use_requests == 'y' %}requests{% endif %}
7+
{% if cookiecutter.use_niquests == 'y' %}niquests{% endif %}
88
{% if cookiecutter.use_cryptography == 'y' %}cryptography{% endif %}

0 commit comments

Comments
 (0)