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
3cbf2176
Commit
3cbf2176
authored
Mar 05, 2012
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make distutils’ upload command work with bdist_msi products (#13719).
Patch by Ralf Schmitt.
parent
6e5272fa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
command/bdist_msi.py
command/bdist_msi.py
+1
-1
tests/test_bdist_msi.py
tests/test_bdist_msi.py
+13
-5
No files found.
command/bdist_msi.py
View file @
3cbf2176
...
...
@@ -260,7 +260,7 @@ class bdist_msi(Command):
self
.
db
.
Commit
()
if
hasattr
(
self
.
distribution
,
'dist_files'
):
tup
=
'bdist_msi'
,
self
.
target_version
or
'any'
,
full
name
tup
=
'bdist_msi'
,
self
.
target_version
or
'any'
,
installer_
name
self
.
distribution
.
dist_files
.
append
(
tup
)
if
not
self
.
keep_temp
:
...
...
tests/test_bdist_msi.py
View file @
3cbf2176
"""Tests for distutils.command.bdist_msi."""
import
unittest
import
sys
import
unittest
from
test.support
import
run_unittest
from
distutils.tests
import
support
@
unittest
.
skipUnless
(
sys
.
platform
==
"win32"
,
"These tests are only for win32"
)
@
unittest
.
skipUnless
(
sys
.
platform
==
'win32'
,
'these tests require Windows'
)
class
BDistMSITestCase
(
support
.
TempdirManager
,
support
.
LoggingSilencer
,
unittest
.
TestCase
):
...
...
@@ -14,9 +13,18 @@ class BDistMSITestCase(support.TempdirManager,
def
test_minimal
(
self
):
# minimal test XXX need more tests
from
distutils.command.bdist_msi
import
bdist_msi
p
kg_pth
,
dist
=
self
.
create_dist
()
p
roject_dir
,
dist
=
self
.
create_dist
()
cmd
=
bdist_msi
(
dist
)
cmd
.
ensure_finalized
()
cmd
.
run
()
bdists
=
os
.
listdir
(
os
.
path
.
join
(
project_dir
,
'dist'
))
self
.
assertEqual
(
bdists
,
[
'foo-0.1.msi'
])
# bug #13719: upload ignores bdist_msi files
self
.
assertEqual
(
dist
.
dist_files
,
[(
'bdist_msi'
,
'any'
,
'dist/foo-0.1.msi'
)])
def
test_suite
():
return
unittest
.
makeSuite
(
BDistMSITestCase
)
...
...
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