py2docfx 0.1.8rc1739271__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.
@@ -102,6 +102,7 @@ def get_source(pkg: PackageInfo, cnt: int, vststoken=None, githubtoken=None):
102
102
  # unpack the downloaded wheel file.
103
103
  downloaded_dist_file = path.join(dist_dir, os.listdir(dist_dir)[0])
104
104
  pack.unpack_dist(downloaded_dist_file)
105
+ os.remove(downloaded_dist_file)
105
106
  source_folder = path.join(
106
107
  path.dirname(downloaded_dist_file),
107
108
  os.listdir(dist_dir)[0]
@@ -112,6 +113,7 @@ def get_source(pkg: PackageInfo, cnt: int, vststoken=None, githubtoken=None):
112
113
  # unpack the downloaded dist file.
113
114
  downloaded_dist_file = path.join(dist_dir, os.listdir(dist_dir)[0])
114
115
  pack.unpack_dist(downloaded_dist_file)
116
+ os.remove(downloaded_dist_file)
115
117
  if downloaded_dist_file.endswith(".tar.gz"):
116
118
  downloaded_dist_file = downloaded_dist_file.rsplit(".", maxsplit=1)[
117
119
  0]
@@ -93,6 +93,8 @@ 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"
97
+ assert os.path.exists("dist_temp/1/azure-common-1.1.28.zip") is False
96
98
 
97
99
  def test_get_source_dist_file_whl(init_package_info):
98
100
  """
@@ -109,6 +111,8 @@ def test_get_source_dist_file_whl(init_package_info):
109
111
  package.location = "https://files.pythonhosted.org/packages/62/55/7f118b9c1b23ec15ca05d15a578d8207aa1706bc6f7c87218efffbbf875d/azure_common-1.1.28-py2.py3-none-any.whl"
110
112
  get_source.get_source(package, 2)
111
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"
115
+ assert os.path.exists("dist_temp/2/azure_common-1.1.28-py2.py3-none-any.whl") is False
112
116
 
113
117
  def test_get_source_dist_file_tar(init_package_info):
114
118
  """
@@ -125,6 +129,8 @@ def test_get_source_dist_file_tar(init_package_info):
125
129
  package.location = "https://files.pythonhosted.org/packages/fa/19/43a9eb812b4d6071fdc2c55640318f7eb5a1be8dbd3b6f9d96a1996e1bb6/azure-core-1.29.4.tar.gz"
126
130
  get_source.get_source(package, 3)
127
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"
133
+ assert os.path.exists("dist_temp/3/azure-core-1.29.4.tar.gz") is False
128
134
 
129
135
  def test_get_source_pip_whl(init_package_info):
130
136
  """
@@ -140,6 +146,8 @@ def test_get_source_pip_whl(init_package_info):
140
146
  package.prefer_source_distribution = False
141
147
  get_source.get_source(package, 4)
142
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"
150
+ assert os.path.exists("dist_temp/4/azure_common-1.1.28-py2.py3-none-any.whl") is False
143
151
 
144
152
  def test_get_source_pip_zip(init_package_info):
145
153
  """
@@ -155,3 +163,22 @@ def test_get_source_pip_zip(init_package_info):
155
163
  package.prefer_source_distribution = True
156
164
  get_source.get_source(package, 5)
157
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"
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.8rc1739271
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
@@ -4,7 +4,7 @@ py2docfx/convert_prepare/__init__.py,sha256=XxtxrP0kmW3ZBHIAoxsPDEHzcgeC0WSnole8
4
4
  py2docfx/convert_prepare/environment.py,sha256=AwS4c4OSwVdxlExBLVo310HrVhFMhWQ2Wh9RJPJKH1c,894
5
5
  py2docfx/convert_prepare/generate_conf.py,sha256=wqs6iyElzJarH-20_qEL9zvZvt5xfBMsGXSXPSZy6wg,2295
6
6
  py2docfx/convert_prepare/generate_document.py,sha256=wkZvdSFT32u6lgAlrL-PmrvVb5sFPq8pue804QVQ75A,2432
7
- py2docfx/convert_prepare/get_source.py,sha256=Rl6WYWpkalAWmc-02ZLb9zXxrHNDFaOoFTI8Pz5aM90,4872
7
+ py2docfx/convert_prepare/get_source.py,sha256=o13Ka_zBjekF_7lhHkyi6GSy4E5cWTnnItbf60JwylI,4954
8
8
  py2docfx/convert_prepare/git.py,sha256=xGJp2nDWLfVljrxyPnFKPoLIqmBh6by-QdITogIuxi0,5893
9
9
  py2docfx/convert_prepare/install_package.py,sha256=hATmgazcSX7k2n4jQXh9sQMyNUc1k1YqHv5K5UMALq4,262
10
10
  py2docfx/convert_prepare/pack.py,sha256=vZS67_GzEhUmZWHU1dxm8gnWyRBs-kB6-KjX1d_FdOU,1260
@@ -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=c22JfobgbEbWWiNzBNYpZm2yDfo5LwBioUuRwft9WZE,5858
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.8rc1739271.dist-info/METADATA,sha256=Km0moRcWVgtTgmqX3kVgn-Lzb4_bLqcJTqo3DLrmeP4,599
127
- py2docfx-0.1.8rc1739271.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
128
- py2docfx-0.1.8rc1739271.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
129
- py2docfx-0.1.8rc1739271.dist-info/RECORD,,
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,,