Skip to content

Commit b5b8d31

Browse files
redjaxredjax
redjax
authored andcommitted
Remove optional dependencies, update script to lock pdm file when creating dist
1 parent 58f3d89 commit b5b8d31

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

pyproject.toml

+5-22
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,6 @@ text = "MIT"
2121
Repository = "https://github.com/redjax/red-utils"
2222

2323
[project.optional-dependencies]
24-
diskcache-utils = [
25-
"diskcache>=5.6.1",
26-
]
27-
fastapi-utils = [
28-
"fastapi>=0.100.0",
29-
"uvicorn[standard]>=0.23.0",
30-
"loguru>=0.7.0",
31-
]
32-
httpx-utils = [
33-
"httpx>=0.24.1",
34-
]
35-
loguru-utils = [
36-
"loguru>=0.7.0",
37-
]
38-
msgpack-utils = [
39-
"msgpack>=1.0.5",
40-
]
4124
all = [
4225
"diskcache>=5.6.1",
4326
"fastapi>=0.100.0",
@@ -79,16 +62,16 @@ cmd = "pdm export --prod -o requirements.txt --without-hashes"
7962
cmd = "pdm export -d -o requirements.dev.txt --without-hashes"
8063

8164
[tool.pdm.scripts.create-major-release]
82-
shell = "pdm bump major && pdm bump tag && pdm build && git push --tags"
65+
shell = "pdm bump major && pdm bump tag && pdm build && pdm lock && git push --tags"
8366

8467
[tool.pdm.scripts.create-minor-release]
85-
shell = "pdm bump minor && pdm bump tag && pdm build && git push --tags"
68+
shell = "pdm bump minor && pdm bump tag && pdm build && pdm lock && git push --tags"
8669

8770
[tool.pdm.scripts.create-micro-release]
88-
shell = "pdm bump micro && pdm bump tag && pdm build && git push --tags"
71+
shell = "pdm bump micro && pdm bump tag && pdm build && pdm lock && git push --tags"
8972

9073
[tool.pdm.scripts.upload-pypi]
91-
cmd = "pdm run twine upload dist/* --verbose"
74+
shell = "pdm lock && pdm run twine upload dist/* --verbose"
9275

9376
[tool.pdm.scripts.upload-pypi-test]
94-
cmd = "pdm run twine upload --repository testpypi dist/* --verbose"
77+
shell = "pdm lock && pdm run twine upload --repository testpypi dist/* --verbose"

0 commit comments

Comments
 (0)