Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
e5d362d3
Commit
e5d362d3
authored
Nov 06, 2018
by
Paul Ganssle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store metadata version on metadata object
parent
b7a6d8ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
setuptools/dist.py
setuptools/dist.py
+6
-2
No files found.
setuptools/dist.py
View file @
e5d362d3
...
...
@@ -10,7 +10,11 @@ import distutils.core
import
distutils.cmd
import
distutils.dist
import
itertools
from
collections
import
defaultdict
from
email
import
message_from_file
from
distutils.errors
import
(
DistutilsOptionError
,
DistutilsPlatformError
,
DistutilsSetupError
,
)
...
...
@@ -69,7 +73,7 @@ def read_pkg_file(self, file):
return
None
return
values
metadata_version
=
msg
[
'metadata-version'
]
self
.
metadata_version
=
StrictVersion
(
msg
[
'metadata-version'
])
self
.
name
=
_read_field
(
'name'
)
self
.
version
=
_read_field
(
'version'
)
self
.
description
=
_read_field
(
'summary'
)
...
...
@@ -96,7 +100,7 @@ def read_pkg_file(self, file):
self
.
classifiers
=
_read_list
(
'classifier'
)
# PEP 314 - these fields only exist in 1.1
if
metadata_version
==
'1.1'
:
if
metadata_version
==
StrictVersion
(
'1.1'
)
:
self
.
requires
=
_read_list
(
'requires'
)
self
.
provides
=
_read_list
(
'provides'
)
self
.
obsoletes
=
_read_list
(
'obsoletes'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment