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
81ca4fea
Commit
81ca4fea
authored
Dec 09, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move imports to top
parent
2a379eac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
setuptools/command/egg_info.py
setuptools/command/egg_info.py
+5
-6
No files found.
setuptools/command/egg_info.py
View file @
81ca4fea
...
...
@@ -12,11 +12,15 @@ import re
import
sys
import
io
import
warnings
import
time
from
setuptools.compat
import
basestring
,
PY3
,
StringIO
from
setuptools
import
Command
from
setuptools.command.sdist
import
sdist
from
setuptools.compat
import
basestring
,
PY3
,
StringIO
from
setuptools.command.sdist
import
walk_revctrl
from
setuptools.command.setopt
import
edit_config
from
setuptools.command
import
bdist_egg
from
pkg_resources
import
(
parse_requirements
,
safe_name
,
parse_version
,
safe_version
,
yield_lines
,
EntryPoint
,
iter_entry_points
,
to_filename
)
...
...
@@ -61,8 +65,6 @@ class egg_info(Command):
self
.
vtags
=
None
def
save_version_info
(
self
,
filename
):
from
setuptools.command.setopt
import
edit_config
values
=
dict
(
egg_info
=
dict
(
tag_svn_revision
=
0
,
...
...
@@ -189,8 +191,6 @@ class egg_info(Command):
if
self
.
tag_svn_revision
:
version
+=
'-r%s'
%
self
.
get_svn_revision
()
if
self
.
tag_date
:
import
time
version
+=
time
.
strftime
(
"-%Y%m%d"
)
return
version
...
...
@@ -391,7 +391,6 @@ def write_pkg_info(cmd, basename, filename):
metadata
.
name
,
metadata
.
version
=
oldname
,
oldver
safe
=
getattr
(
cmd
.
distribution
,
'zip_safe'
,
None
)
from
setuptools.command
import
bdist_egg
bdist_egg
.
write_safety_flag
(
cmd
.
egg_info
,
safe
)
...
...
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