File tree Expand file tree Collapse file tree 5 files changed +9
-14
lines changed Expand file tree Collapse file tree 5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Unreleased
3
3
- Fixed displaying of errors on Python 3
4
4
- Fixed single digit versions in wheel files not being properly recognized
5
5
- Enabled Zip64 support in wheels by default
6
+ - Metadata-Version is now 2.1
7
+ - Don't create a DESCRIPTION.RST anymore.
6
8
7
9
0.30.0
8
10
======
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " http://www.python.org/dev/peps/pep-0426/" ,
3
3
"$schema" : " http://json-schema.org/draft-04/schema#" ,
4
- "title" : " Metadata for Python Software Packages 2.0 " ,
4
+ "title" : " Metadata for Python Software Packages 2.1 " ,
5
5
"type" : " object" ,
6
6
"properties" : {
7
7
"metadata_version" : {
Original file line number Diff line number Diff line change 6
6
def test_pkginfo_mangle_from (tmpdir ):
7
7
"""Test that write_pkginfo() will not prepend a ">" to a line starting with "From"."""
8
8
metadata = """\
9
- Metadata-Version: 2.0
9
+ Metadata-Version: 2.1
10
10
Name: foo
11
11
12
12
From blahblah
Original file line number Diff line number Diff line change @@ -426,14 +426,8 @@ def adios(p):
426
426
distribution = self .distribution )
427
427
428
428
if 'description' in pymeta :
429
- description_filename = 'DESCRIPTION.rst'
430
- description_text = pymeta .pop ('description' )
431
- description_path = os .path .join (distinfo_path ,
432
- description_filename )
433
- with open (description_path , "wb" ) as description_file :
434
- description_file .write (description_text .encode ('utf-8' ))
435
- pymeta ['extensions' ]['python.details' ]['document_names' ]['description' ] = \
436
- description_filename
429
+ # Don't include `description` in JSON metadata
430
+ pymeta .pop ('description' )
437
431
438
432
# XXX heuristically copy any LICENSE/LICENSE.txt?
439
433
license = self .license_file ()
Original file line number Diff line number Diff line change 14
14
from .pkginfo import read_pkg_info
15
15
from .util import OrderedDefaultDict
16
16
17
- METADATA_VERSION = "2.0 "
17
+ METADATA_VERSION = "2.1 "
18
18
19
19
PLURAL_FIELDS = {"classifier" : "classifiers" ,
20
20
"provides_dist" : "provides" ,
@@ -265,11 +265,10 @@ def generate_requirements(extras_require):
265
265
266
266
def pkginfo_to_metadata (egg_info_path , pkginfo_path ):
267
267
"""
268
- Convert .egg-info directory with PKG-INFO to the Metadata 1.3 aka
269
- old-draft Metadata 2.0 format.
268
+ Convert .egg-info directory with PKG-INFO to the Metadata 2.1 format
270
269
"""
271
270
pkg_info = read_pkg_info (pkginfo_path )
272
- pkg_info .replace_header ('Metadata-Version' , '2.0 ' )
271
+ pkg_info .replace_header ('Metadata-Version' , '2.1 ' )
273
272
requires_path = os .path .join (egg_info_path , 'requires.txt' )
274
273
if os .path .exists (requires_path ):
275
274
with open (requires_path ) as requires_file :
You can’t perform that action at this time.
0 commit comments