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
43f289ad
Commit
43f289ad
authored
May 30, 2011
by
Tarek Ziade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup packaging.database
parent
a17d8883
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
Lib/packaging/database.py
Lib/packaging/database.py
+1
-2
Lib/packaging/tests/test_database.py
Lib/packaging/tests/test_database.py
+3
-5
No files found.
Lib/packaging/database.py
View file @
43f289ad
...
...
@@ -18,8 +18,7 @@ __all__ = [
'get_distributions'
,
'get_distribution'
,
'get_file_users'
,
'provides_distribution'
,
'obsoletes_distribution'
,
'enable_cache'
,
'disable_cache'
,
'clear_cache'
,
'get_file_path'
,
'get_file'
]
'get_file_path'
,
'get_file'
]
# TODO update docs
...
...
Lib/packaging/tests/test_database.py
View file @
43f289ad
import
os
import
io
import
csv
import
imp
import
sys
import
shutil
import
zipfile
import
tempfile
from
os.path
import
relpath
# separate import for backport concerns
from
hashlib
import
md5
from
textwrap
import
dedent
from
packaging.tests
import
unittest
from
packaging.tests.test_util
import
GlobTestCaseBase
from
packaging.tests.support
import
requires_zlib
from
packaging.config
import
get_resources_dests
from
packaging.errors
import
PackagingError
from
packaging.metadata
import
Metadata
from
packaging.tests
import
unittest
,
run_unittest
,
support
,
TESTFN
from
packaging.tests
import
unittest
,
support
from
packaging.database
import
(
Distribution
,
EggInfoDistribution
,
get_distribution
,
get_distributions
,
provides_distribution
,
obsoletes_distribution
,
get_file_users
,
...
...
@@ -582,7 +579,8 @@ class DataFilesTestCase(GlobTestCaseBase):
(
''
,
os
.
path
.
join
(
'developer-docs'
,
'**'
,
'*.txt'
),
'{doc}'
),
(
''
,
'README'
,
'{doc}'
),
(
'mailman/etc/'
,
'*'
,
'{config}'
),
(
'mailman/foo/'
,
os
.
path
.
join
(
'**'
,
'bar'
,
'*.cfg'
),
'{config}/baz'
),
(
'mailman/foo/'
,
os
.
path
.
join
(
'**'
,
'bar'
,
'*.cfg'
),
'{config}/baz'
),
(
'mailman/foo/'
,
os
.
path
.
join
(
'**'
,
'*.cfg'
),
'{config}/hmm'
),
(
''
,
'some-new-semantic.sns'
,
'{funky-crazy-category}'
),
]
...
...
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