Line 0
Link Here
|
|
|
1 |
Description: Backport graft glob support to resolve PR 216953 |
2 |
Issue ID: https://github.com/pypa/setuptools/issues/935 |
3 |
Changeset: https://github.com/pypa/setuptools/commit/56274b32724933cd2016488c4e667e86d30572ef |
4 |
TODO: Upgrade devel/py27-setuptools to 34.0.1 or later |
5 |
|
6 |
--- setuptools/tests/test_manifest.py.orig 2017-02-12 20:13:57 UTC |
7 |
+++ setuptools/tests/test_manifest.py |
8 |
@@ -206,6 +206,15 @@ class TestManifestTest(TempDirTestCase): |
9 |
l('app/static/app.css'), l('app/static/app.css.map')]) |
10 |
assert files == self.get_files() |
11 |
|
12 |
+ def test_graft_glob_syntax(self): |
13 |
+ """Include the whole app/static/ directory.""" |
14 |
+ l = make_local_path |
15 |
+ self.make_manifest("graft */static") |
16 |
+ files = default_files | set([ |
17 |
+ l('app/static/app.js'), l('app/static/app.js.map'), |
18 |
+ l('app/static/app.css'), l('app/static/app.css.map')]) |
19 |
+ assert files == self.get_files() |
20 |
+ |
21 |
def test_graft_global_exclude(self): |
22 |
"""Exclude all *.map files in the project.""" |
23 |
l = make_local_path |