File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 2
2
name = " openai"
3
3
version = " 1.14.3"
4
4
description = " The official Python library for the openai API"
5
- readme = " README.md "
5
+ dynamic = [ " readme " ]
6
6
license = " Apache-2.0"
7
7
authors = [
8
8
{
name =
" OpenAI" ,
email =
" [email protected] " },
@@ -93,7 +93,7 @@ typecheck = { chain = [
93
93
"typecheck:mypy" = " mypy ."
94
94
95
95
[build-system ]
96
- requires = [" hatchling" ]
96
+ requires = [" hatchling" , " hatch-fancy-pypi-readme " ]
97
97
build-backend = " hatchling.build"
98
98
99
99
[tool .hatch .build ]
@@ -104,6 +104,17 @@ include = [
104
104
[tool .hatch .build .targets .wheel ]
105
105
packages = [" src/openai" ]
106
106
107
+ [tool .hatch .metadata .hooks .fancy-pypi-readme ]
108
+ content-type = " text/markdown"
109
+
110
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .fragments ]]
111
+ path = " README.md"
112
+
113
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .substitutions ]]
114
+ # replace relative links with absolute links
115
+ pattern = ' \[(.+?)\]\(((?!https?://)\S+?)\)'
116
+ replacement = ' [\1](https://github.com/openai/openai-python/tree/main/\g<2>)'
117
+
107
118
[tool .black ]
108
119
line-length = 120
109
120
target-version = [" py37" ]
You can’t perform that action at this time.
0 commit comments