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 = " cloudflare"
3
3
version = " 3.0.0-beta.6"
4
4
description = " The official Python library for the cloudflare API"
5
- readme = " README.md "
5
+ dynamic = [ " readme " ]
6
6
license = " Apache-2.0"
7
7
authors = [
8
8
{
name =
" Cloudflare" ,
email =
" [email protected] " },
@@ -88,7 +88,7 @@ typecheck = { chain = [
88
88
"typecheck:mypy" = " mypy ."
89
89
90
90
[build-system ]
91
- requires = [" hatchling" ]
91
+ requires = [" hatchling" , " hatch-fancy-pypi-readme " ]
92
92
build-backend = " hatchling.build"
93
93
94
94
[tool .hatch .build ]
@@ -99,6 +99,17 @@ include = [
99
99
[tool .hatch .build .targets .wheel ]
100
100
packages = [" src/cloudflare" ]
101
101
102
+ [tool .hatch .metadata .hooks .fancy-pypi-readme ]
103
+ content-type = " text/markdown"
104
+
105
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .fragments ]]
106
+ path = " README.md"
107
+
108
+ [[tool .hatch .metadata .hooks .fancy-pypi-readme .substitutions ]]
109
+ # replace relative links with absolute links
110
+ pattern = ' \[(.+?)\]\(((?!https?://)\S+?)\)'
111
+ replacement = ' [\1](https://github.com/cloudflare/cloudflare-python/tree/main/\g<2>)'
112
+
102
113
[tool .black ]
103
114
line-length = 120
104
115
target-version = [" py37" ]
You can’t perform that action at this time.
0 commit comments