File tree 4 files changed +15
-7
lines changed
4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ of your package to show on PyPI. This should be written in reStructuredText
75
75
76
76
### ` home-page `
77
77
78
+ :::{deprecated} 1.12.0:::
78
79
A string containing the URL for the package's home page.
79
80
80
81
Example:
@@ -83,6 +84,7 @@ Example:
83
84
84
85
### ` download-url `
85
86
87
+ :::{deprecated} 1.12.0:::
86
88
A string containing the URL for the package's source, will replace '{version}' with the current version.
87
89
88
90
### ` dynamic `
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def get_optional_dependencies(config):
148
148
return res
149
149
150
150
151
- def get_simple_headers (config ):
151
+ def get_simple_headers (config ): # noqa: C901
152
152
res = ''
153
153
for key in [
154
154
'summary' ,
@@ -160,6 +160,10 @@ def get_simple_headers(config):
160
160
'license' ,
161
161
]:
162
162
if key in config :
163
+ if key == 'home-page' :
164
+ log .warning (
165
+ 'pyproject.toml:tools.ozi-build.metadata.home-page is deprecated since OZI.build 1.12, removal recommended.'
166
+ )
163
167
res += '{}: {}\n ' .format (key .capitalize (), config [key ])
164
168
for key , mdata_key in [
165
169
('provides' , 'Provides-Dist' ),
@@ -197,12 +201,12 @@ def get_license_headers(config):
197
201
def get_download_url_headers (config ):
198
202
res = ''
199
203
if 'download-url' in config :
204
+ log .warning (
205
+ 'pyproject.toml:tools.ozi-build.metadata.download-url is deprecated since OZI.build 1.12, removal recommended.'
206
+ )
200
207
if '{version}' in config ['download-url' ]:
201
208
res += f'Download-URL: { config ["download-url" ].replace ("{version}" , config ["version" ])} \n '
202
209
else :
203
- log .warning (
204
- 'pyproject.toml:tools.ozi-build.metadata.download-url missing {version} replace pattern'
205
- )
206
210
res += f'Download-URL: { config ["download-url" ]} \n '
207
211
return res
208
212
Original file line number Diff line number Diff line change 24
24
(`.rst`, `.md` or `.txt`)."""
25
25
},
26
26
"home-page" : {
27
- "description" : """A string containing the URL for the package's home page.
27
+ "description" : """:::{deprecated} 1.12.0:::
28
+ A string containing the URL for the package's home page.
28
29
29
30
Example:
30
31
31
32
`http://www.example.com/~cschultz/bvote/`"""
32
33
},
33
34
"download-url" : {
34
- "description" : """A string containing the URL for the package's source, will replace '{version}' with the current version."""
35
+ "description" : """:::{deprecated} 1.12.0:::
36
+ A string containing the URL for the package's source, will replace '{version}' with the current version."""
35
37
},
36
38
"dynamic" : {
37
39
"description" : """A list of other headers to be treated as dynamic fields."""
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ build-backend = "ozi_build.buildapi"
24
24
25
25
[tool .ozi-build .metadata ]
26
26
summary = " Create pep517 compliant packages from the meson build system, OZI-maintained fork."
27
- home-page = " https://oziproject.dev"
28
27
author = " Thibault Saunier"
29
28
author-email = " tsaunier@gnome.org"
30
29
description-file = " README.rst"
@@ -44,6 +43,7 @@ classifiers = [
44
43
project-urls =[
45
44
' Bug Tracker, https://github.com/OZI-Project/OZI.build/issues' ,
46
45
' Documentation, https://build.oziproject.dev/' ,
46
+ ' Homepage, https://oziproject.dev/' ,
47
47
]
48
48
pure-python-abi =" py3-none"
49
49
You can’t perform that action at this time.
0 commit comments