py2docfx 0.1.8rc1739271__py3-none-any.whl → 0.1.9.dev1790466__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,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 os.path.exists("dist_temp/1/azure-common-1.1.28.zip") is False
96
97
 
97
98
  def test_get_source_dist_file_whl(init_package_info):
98
99
  """
@@ -109,6 +110,7 @@ def test_get_source_dist_file_whl(init_package_info):
109
110
  package.location = "https://files.pythonhosted.org/packages/62/55/7f118b9c1b23ec15ca05d15a578d8207aa1706bc6f7c87218efffbbf875d/azure_common-1.1.28-py2.py3-none-any.whl"
110
111
  get_source.get_source(package, 2)
111
112
  assert os.path.exists("dist_temp/2/azure_common-1.1.28")
113
+ assert os.path.exists("dist_temp/2/azure_common-1.1.28-py2.py3-none-any.whl") is False
112
114
 
113
115
  def test_get_source_dist_file_tar(init_package_info):
114
116
  """
@@ -125,6 +127,7 @@ def test_get_source_dist_file_tar(init_package_info):
125
127
  package.location = "https://files.pythonhosted.org/packages/fa/19/43a9eb812b4d6071fdc2c55640318f7eb5a1be8dbd3b6f9d96a1996e1bb6/azure-core-1.29.4.tar.gz"
126
128
  get_source.get_source(package, 3)
127
129
  assert os.path.exists("dist_temp/3/azure-core-1.29.4")
130
+ assert os.path.exists("dist_temp/3/azure-core-1.29.4.tar.gz") is False
128
131
 
129
132
  def test_get_source_pip_whl(init_package_info):
130
133
  """
@@ -140,6 +143,7 @@ def test_get_source_pip_whl(init_package_info):
140
143
  package.prefer_source_distribution = False
141
144
  get_source.get_source(package, 4)
142
145
  assert os.path.exists("dist_temp/4/azure_common-1.1.28")
146
+ assert os.path.exists("dist_temp/4/azure_common-1.1.28-py2.py3-none-any.whl") is False
143
147
 
144
148
  def test_get_source_pip_zip(init_package_info):
145
149
  """
@@ -155,3 +159,4 @@ def test_get_source_pip_zip(init_package_info):
155
159
  package.prefer_source_distribution = True
156
160
  get_source.get_source(package, 5)
157
161
  assert os.path.exists("dist_temp/5/azure-common-1.1.28")
162
+ assert os.path.exists("dist_temp/5/azure-common-1.1.28.zip") 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.dev1790466
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=LPZgwxcksXn70ve1uGhzknwGZfrjLqQes_02FER2oeI,6268
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.dev1790466.dist-info/METADATA,sha256=QOBJJEBliy8255NcHnCg4kMe2c_hi7NqwxhDo0SSeOs,601
127
+ py2docfx-0.1.9.dev1790466.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
128
+ py2docfx-0.1.9.dev1790466.dist-info/top_level.txt,sha256=5dH2uP81dczt_qQJ38wiZ-gzoVWasfiJALWRSjdbnYU,9
129
+ py2docfx-0.1.9.dev1790466.dist-info/RECORD,,