py2docfx 0.1.9.dev1790466__py3-none-any.whl → 0.1.9.dev1790718__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py2docfx/convert_prepare/tests/test_get_source.py +22 -0
- {py2docfx-0.1.9.dev1790466.dist-info → py2docfx-0.1.9.dev1790718.dist-info}/METADATA +1 -1
- {py2docfx-0.1.9.dev1790466.dist-info → py2docfx-0.1.9.dev1790718.dist-info}/RECORD +5 -5
- {py2docfx-0.1.9.dev1790466.dist-info → py2docfx-0.1.9.dev1790718.dist-info}/WHEEL +0 -0
- {py2docfx-0.1.9.dev1790466.dist-info → py2docfx-0.1.9.dev1790718.dist-info}/top_level.txt +0 -0
@@ -93,6 +93,7 @@ def test_get_source_dist_file_zip(init_package_info):
|
|
93
93
|
package.location = "https://files.pythonhosted.org/packages/3e/71/f6f71a276e2e69264a97ad39ef850dca0a04fce67b12570730cb38d0ccac/azure-common-1.1.28.zip"
|
94
94
|
get_source.get_source(package, 1)
|
95
95
|
assert os.path.exists("dist_temp/1/azure-common-1.1.28")
|
96
|
+
assert package.path.source_folder == "dist_temp\\1\\azure-common-1.1.28"
|
96
97
|
assert os.path.exists("dist_temp/1/azure-common-1.1.28.zip") is False
|
97
98
|
|
98
99
|
def test_get_source_dist_file_whl(init_package_info):
|
@@ -110,6 +111,7 @@ def test_get_source_dist_file_whl(init_package_info):
|
|
110
111
|
package.location = "https://files.pythonhosted.org/packages/62/55/7f118b9c1b23ec15ca05d15a578d8207aa1706bc6f7c87218efffbbf875d/azure_common-1.1.28-py2.py3-none-any.whl"
|
111
112
|
get_source.get_source(package, 2)
|
112
113
|
assert os.path.exists("dist_temp/2/azure_common-1.1.28")
|
114
|
+
assert package.path.source_folder == "dist_temp\\2\\azure_common-1.1.28"
|
113
115
|
assert os.path.exists("dist_temp/2/azure_common-1.1.28-py2.py3-none-any.whl") is False
|
114
116
|
|
115
117
|
def test_get_source_dist_file_tar(init_package_info):
|
@@ -127,6 +129,7 @@ def test_get_source_dist_file_tar(init_package_info):
|
|
127
129
|
package.location = "https://files.pythonhosted.org/packages/fa/19/43a9eb812b4d6071fdc2c55640318f7eb5a1be8dbd3b6f9d96a1996e1bb6/azure-core-1.29.4.tar.gz"
|
128
130
|
get_source.get_source(package, 3)
|
129
131
|
assert os.path.exists("dist_temp/3/azure-core-1.29.4")
|
132
|
+
assert package.path.source_folder == "dist_temp\\3\\azure-core-1.29.4"
|
130
133
|
assert os.path.exists("dist_temp/3/azure-core-1.29.4.tar.gz") is False
|
131
134
|
|
132
135
|
def test_get_source_pip_whl(init_package_info):
|
@@ -143,6 +146,7 @@ def test_get_source_pip_whl(init_package_info):
|
|
143
146
|
package.prefer_source_distribution = False
|
144
147
|
get_source.get_source(package, 4)
|
145
148
|
assert os.path.exists("dist_temp/4/azure_common-1.1.28")
|
149
|
+
assert package.path.source_folder == "dist_temp\\4\\azure_common-1.1.28"
|
146
150
|
assert os.path.exists("dist_temp/4/azure_common-1.1.28-py2.py3-none-any.whl") is False
|
147
151
|
|
148
152
|
def test_get_source_pip_zip(init_package_info):
|
@@ -159,4 +163,22 @@ def test_get_source_pip_zip(init_package_info):
|
|
159
163
|
package.prefer_source_distribution = True
|
160
164
|
get_source.get_source(package, 5)
|
161
165
|
assert os.path.exists("dist_temp/5/azure-common-1.1.28")
|
166
|
+
assert package.path.source_folder == "dist_temp\\5\\azure-common-1.1.28"
|
162
167
|
assert os.path.exists("dist_temp/5/azure-common-1.1.28.zip") is False
|
168
|
+
|
169
|
+
def test_get_source_zip_file_at_position_0(init_package_info):
|
170
|
+
"""
|
171
|
+
Test the pip install of packages with zip or tar file at position 0 in the dirctory list
|
172
|
+
"""
|
173
|
+
init_clean_up()
|
174
|
+
package = init_package_info
|
175
|
+
package.name = "azure-template"
|
176
|
+
package.install_type = PackageInfo.InstallType.PYPI
|
177
|
+
package.version = "0.1.0b3942895"
|
178
|
+
package.build_in_subpackage = False
|
179
|
+
package.extra_index_url = None
|
180
|
+
package.prefer_source_distribution = True
|
181
|
+
get_source.get_source(package, 6)
|
182
|
+
assert os.path.exists("dist_temp/6/azure_template-0.1.0b3942895")
|
183
|
+
assert package.path.source_folder == "dist_temp\\6\\azure_template-0.1.0b3942895"
|
184
|
+
assert os.path.exists("dist_temp/6/azure_template-0.1.0b3942895.tar.gz") is False
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: py2docfx
|
3
|
-
Version: 0.1.9.
|
3
|
+
Version: 0.1.9.dev1790718
|
4
4
|
Summary: A package built based on Sphinx which download source code package and generate yaml files supported by docfx.
|
5
5
|
Author: Microsoft Corporation
|
6
6
|
License: MIT License
|
@@ -24,7 +24,7 @@ py2docfx/convert_prepare/subpackage_merge/merge_root_package.py,sha256=uK96qL2as
|
|
24
24
|
py2docfx/convert_prepare/subpackage_merge/merge_toc.py,sha256=nkVqe8R0m8D6cyTYV7aIpMDXorvn4-LXfU_vIK_hJBg,1706
|
25
25
|
py2docfx/convert_prepare/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
py2docfx/convert_prepare/tests/test_generate_document.py,sha256=hOAtib9pTFaZCS8QbYS6Dhz0hNGESDHPXumRIuIWp4Y,2415
|
27
|
-
py2docfx/convert_prepare/tests/test_get_source.py,sha256=
|
27
|
+
py2docfx/convert_prepare/tests/test_get_source.py,sha256=70EVlIZe71aDYDOXMnhqzZclKL8KuIg4t-X0U-pVyhA,7429
|
28
28
|
py2docfx/convert_prepare/tests/test_pack.py,sha256=46JWMNzknIptDVs7D3CuxcmqBr_OKMmaw1br9H7wqco,4134
|
29
29
|
py2docfx/convert_prepare/tests/test_package_info.py,sha256=hdNpAH9hlLF-cX9sKAu3cmiCtphX4USy9G_gWI_iaHo,3883
|
30
30
|
py2docfx/convert_prepare/tests/test_params.py,sha256=p9DaGveocMBRih02KjpudJZE752neFBTLzOFbS47izQ,2036
|
@@ -123,7 +123,7 @@ py2docfx/docfx_yaml/tests/roots/test-writer-uri/conf.py,sha256=avcbnIOV2mlGQwhMQ
|
|
123
123
|
py2docfx/docfx_yaml/tests/roots/test-writer-versions/code_with_version_directives.py,sha256=UuizbrJPaG_PcaH18BvbI9KQevOaLd4SslpnzMSqcrE,1030
|
124
124
|
py2docfx/docfx_yaml/tests/roots/test-writer-versions/conf.py,sha256=SCEKrm9VigArfdgf-GAieJD-40d0ctT6urmGIjFOZLM,404
|
125
125
|
py2docfx/docfx_yaml/tests/utils/test_utils.py,sha256=d0OYSUQ6NyoZx5mlLdNGGNhiNmmQhjVT4hQ6jY3VE_M,3383
|
126
|
-
py2docfx-0.1.9.
|
127
|
-
py2docfx-0.1.9.
|
128
|
-
py2docfx-0.1.9.
|
129
|
-
py2docfx-0.1.9.
|
126
|
+
py2docfx-0.1.9.dev1790718.dist-info/METADATA,sha256=sNM2hzH-GB93e4HLcW47cxsexV3mi8hYUwrXkuG-7BU,601
|
127
|
+
py2docfx-0.1.9.dev1790718.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
128
|
+
py2docfx-0.1.9.dev1790718.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
|
129
|
+
py2docfx-0.1.9.dev1790718.dist-info/RECORD,,
|
File without changes
|
File without changes
|