Пример #1
0
 def test_mock_whl_extras(self, *args):
     td = pkginfo.Wheel(
         TestData("mock_whl/file/mock-2.0.0-py2.py3-none-any.whl"))
     self.assertEqual(set(whl.dependencies(td, extra="docs")),
                      set(["sphinx"]))
     self.assertEqual(set(whl.dependencies(td, extra="test")),
                      set(["unittest2"]))
Пример #2
0
 def test_pytest_flask_whl(self, *args):
     td = pkginfo.Wheel(
         TestData("pytest_flask_0_14_0_whl/file/" +
                  "pytest_flask-0.14.0-py2.py3-none-any.whl"))
     expected_deps = [
         'pytest',
         'Flask',
         'Werkzeug',
     ]
     self.assertEqual(len(whl.dependencies(td)), len(expected_deps))
     self.assertEqual(set(whl.dependencies(td)), set(expected_deps))
Пример #3
0
 def test_grpc_whl(self):
     td = pkginfo.Wheel(
         TestData("grpc_whl/file/grpcio-1.6.0-cp27-cp27m-manylinux1_i686.whl")
     )
     self.assertEqual(
         set(whl.dependencies(td)), set(["enum34", "futures", "protobuf", "six"])
     )
Пример #4
0
 def test_ruamel_yaml_clib_whl(self):
     td = pkginfo.Wheel(
         TestData("ruamel_yaml_clib_0_2_0_whl/file/ruamel.yaml.clib-0.2.0-cp27-cp27m-manylinux1_x86_64.whl")
     )
     self.assertEqual(
         set(whl.dependencies(td)), set([])
     )
Пример #5
0
 def test_google_cloud_language_whl_3_4(self, *args):
     td = pkginfo.Wheel(
         TestData("google_cloud_language_whl/file/" +
                  "google_cloud_language-0.29.0-py2.py3-none-any.whl"))
     expected_deps = [
         "google-gax",
         "google-cloud-core",
         "googleapis-common-protos[grpc]",
     ]
     self.assertEqual(set(whl.dependencies(td)), set(expected_deps))
Пример #6
0
 def test_mock_whl_3_3(self, *args):
     td = pkginfo.Wheel(
         TestData("mock_whl/file/mock-2.0.0-py2.py3-none-any.whl"))
     self.assertEqual(set(whl.dependencies(td)), set(["pbr", "six"]))
Пример #7
0
 def test_whl_with_METADATA_file(self):
     td = pkginfo.Wheel(
         TestData(
             "futures_2_2_0_whl/file/futures-2.2.0-py2.py3-none-any.whl"))
     self.assertEqual(set(whl.dependencies(td)), set())
Пример #8
0
 def test_futures_whl(self):
     td = pkginfo.Wheel(
         TestData("futures_3_1_1_whl/file/futures-3.1.1-py2-none-any.whl"))
     self.assertEqual(set(whl.dependencies(td)), set())