Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
dae0d91d
Commit
dae0d91d
authored
Jun 08, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include setup.cfg in the list of default files to distribute.
parent
ef930712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Lib/distutils/command/sdist.py
Lib/distutils/command/sdist.py
+5
-1
No files found.
Lib/distutils/command/sdist.py
View file @
dae0d91d
...
@@ -233,6 +233,10 @@ class sdist (Command):
...
@@ -233,6 +233,10 @@ class sdist (Command):
Warns if (README or README.txt) or setup.py are missing; everything
Warns if (README or README.txt) or setup.py are missing; everything
else is optional.
else is optional.
"""
"""
# XXX name of setup script and config file should be taken
# programmatically from the Distribution object (except
# it doesn't have that capability... yet!)
standards
=
[(
'README'
,
'README.txt'
),
'setup.py'
]
standards
=
[(
'README'
,
'README.txt'
),
'setup.py'
]
for
fn
in
standards
:
for
fn
in
standards
:
if
type
(
fn
)
is
TupleType
:
if
type
(
fn
)
is
TupleType
:
...
@@ -253,7 +257,7 @@ class sdist (Command):
...
@@ -253,7 +257,7 @@ class sdist (Command):
else
:
else
:
self
.
warn
(
"standard file '%s' not found"
%
fn
)
self
.
warn
(
"standard file '%s' not found"
%
fn
)
optional
=
[
'test/test*.py'
]
optional
=
[
'test/test*.py'
,
'setup.cfg'
]
for
pattern
in
optional
:
for
pattern
in
optional
:
files
=
filter
(
os
.
path
.
isfile
,
glob
(
pattern
))
files
=
filter
(
os
.
path
.
isfile
,
glob
(
pattern
))
if
files
:
if
files
:
...
...
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