ciocore 8.0.0b12__py2.py3-none-any.whl → 8.0.0b14__py2.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.

Potentially problematic release.


This version of ciocore might be problematic. Click here for more details.

ciocore/VERSION CHANGED
@@ -1 +1 @@
1
- 8.0.0-beta.12
1
+ 8.0.0-beta.14
Binary file
@@ -81,7 +81,9 @@ def temp_file(filepath):
81
81
  dirpath, filename = os.path.split(filepath)
82
82
  # ensure the directory exists
83
83
  os.makedirs(dirpath, exist_ok=True)
84
- temp_file_path = tempfile.mkstemp(prefix=filename, dir=dirpath)[1]
84
+ temp_file_desc = tempfile.mkstemp(prefix=filename, dir=dirpath)
85
+ temp_file_path = temp_file_desc[1]
86
+ os.close(temp_file_desc[0])
85
87
  yield temp_file_path
86
88
 
87
89
  shutil.move(temp_file_path, filepath)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ciocore
3
- Version: 8.0.0b12
3
+ Version: 8.0.0b14
4
4
  Summary: Core functionality for Conductor's client tools
5
5
  Home-page: https://github.com/ConductorTechnologies/ciocore
6
6
  Author: conductor
@@ -56,6 +56,9 @@ See [CONTRIBUTING](CONTRIBUTING.md)
56
56
 
57
57
  ## Unreleased:
58
58
 
59
+ * 8.0.0-beta.13
60
+ * fixed permissions error bug with file downloads
61
+
59
62
  * 8.0.0-beta.5
60
63
  * adds kill_tasks kill_jobs get_jobs get_log
61
64
  * remove old docs stuff
@@ -1,4 +1,4 @@
1
- ciocore/VERSION,sha256=65MwxvbkxAsb0UlARzxcaeJLkH2ZnNtwefL_uRkEO2g,13
1
+ ciocore/VERSION,sha256=5fucTzbeOAkHbJHYqnYwCQgQRPfbsxTCi587-fEGr5s,13
2
2
  ciocore/__init__.py,sha256=aTP7LeeosQA8BZE67gDV4jgfTK5zxmwZRjiTRu_ZWj0,646
3
3
  ciocore/api_client.py,sha256=BTDGXT-59-48SLz3BzP8OtGEhBYDiiEvyytsRUxaK9I,23555
4
4
  ciocore/cli.py,sha256=R3tWhlrzUoIcdat70i9tTAaEDQ92dxRj4YaaYFCxSMA,17139
@@ -28,7 +28,7 @@ ciocore/docsite/index.html,sha256=p_Dq_6_8cwZZPDI5zjahfCWUkfbSj14NJtoQFAZv0WI,20
28
28
  ciocore/docsite/logo.png,sha256=gArgFFWdw8w985-0TkuGIgU_pW9sziEMZdqytXb5WLo,2825
29
29
  ciocore/docsite/objects.inv,sha256=UhlZWOqRV8tA4CzS8HKmk322X-so5ZmIe55155t_7Ls,746
30
30
  ciocore/docsite/sitemap.xml,sha256=M_V85zl0y2adRvzJAnoCxlZH_Hl7TLnIb1A-6l_xGmI,109
31
- ciocore/docsite/sitemap.xml.gz,sha256=_mBIgCsfAIDP7okZvKpJao5T_odn0kJe0IbQ_WbSUEU,127
31
+ ciocore/docsite/sitemap.xml.gz,sha256=WwV7ZDDXdjDLWQW8ZdVWO7ToorPQikaMxmLw-ftiYBc,127
32
32
  ciocore/docsite/apidoc/api_client/index.html,sha256=DYVIV4xZRhTEiDJoIRn-76YRjGia_ce6LDss7G2stsE,164621
33
33
  ciocore/docsite/apidoc/apidoc/index.html,sha256=NQn8wjapxa7O2IQhsbE7Y-VMfMFL6Tby-L7qIF6K3m4,26171
34
34
  ciocore/docsite/apidoc/config/index.html,sha256=1GWkyClM7LJlLBpx07BqCi3xDkU-SKVPjNUEeKuwbNs,72559
@@ -87,7 +87,7 @@ ciocore/docsite/search/search_index.json,sha256=xpYzauCSGogatE3F2UoDih_GCpa4Udbv
87
87
  ciocore/docsite/stylesheets/extra.css,sha256=qgfcao9TEBzf6ieAWN5rPyrea7YM_YgVg5qr4NPrxoU,354
88
88
  ciocore/docsite/stylesheets/tables.css,sha256=O2PEwlKC0RfvZCRV9UERqQRvhb6jcqO84PLew0bafF0,3279
89
89
  ciocore/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
- ciocore/downloader/base_downloader.py,sha256=1sYWc6e-1FelFN7p1_xt4Zbsz9xtVaN86Nb6jMWF_Zc,20587
90
+ ciocore/downloader/base_downloader.py,sha256=asyjHQ4NQL7uisqXe8IWU6lid5b83PiE_8KpPA1WXjA,20663
91
91
  ciocore/downloader/daemon_downloader.py,sha256=ksdfw0PzfO6xnNxMebM27nkHl75lh-rAtf5XT6WmipI,1327
92
92
  ciocore/downloader/download_runner_base.py,sha256=x74pmn4vdGKKlR9gaFdtmjIRfN0ME1oyX5e9k92Nn1w,6455
93
93
  ciocore/downloader/job_downloader.py,sha256=hYDh8Fqn-ZhD0xM8uHQauglhdi70_HK9UQ7nKPFyqds,5417
@@ -109,11 +109,11 @@ tests/project_fixtures.py,sha256=iBm_th_JtAw76vlNu7Jjhh9tLH4oOaNi-MgtPzCV7yQ,138
109
109
  tests/test_api_client.py,sha256=lDUkVi6Xq1ilkSepFLebgBAhgchumvfyZnTtei1fnrI,3642
110
110
  tests/test_base_downloader.py,sha256=dOtA3uoOBl8KrbyTlI5g4yvXTBH9e1m95rco-lWfJoA,3765
111
111
  tests/test_cli.py,sha256=OPcKAQ-zO43_46nFN3UTAuHfHEQMIzfdZ5kNFm0FH9E,6203
112
- tests/test_common.py,sha256=xA0y_KgEmag7jRKfhEHZgIQkS2WmjrYEcss-rwhQOOs,747
112
+ tests/test_common.py,sha256=tY_-SY-JmJX09UehFs9RIDqZ785AmhfTl6eVKJeIUFY,763
113
113
  tests/test_config.py,sha256=-_G682Ss3Zr1FmcMkjla1zAZprX2tQKpKc5_wD28rII,13340
114
114
  tests/test_data.py,sha256=ZT_61MQPl6DajXzGAkkJZsVpYaFMsxpZLjtPaoEaPpE,5471
115
115
  tests/test_data_cache.py,sha256=PDbRNoMHea_bMw2wgEjWRd9sFEqTt2PEpyxV6nNjoQ4,8719
116
- tests/test_downloader.py,sha256=-V941RloByv3byiYefd1vt1aR7mWR6HuYEveBrZrZGA,4609
116
+ tests/test_downloader.py,sha256=-d8MCPnBkd5WS0wqvmoICXvNAhEdPXr2JJXZRWoKPlw,4678
117
117
  tests/test_hardware_set.py,sha256=hW7A_suyYdU7WkB7qoHSBPLxaAP2CKqI0i_ULfO5GeY,4408
118
118
  tests/test_imports_2and3.py,sha256=ehqpRYPVY7djBcb8OT_cnh86iCJJ9wuMWnfSR9RHxmY,507
119
119
  tests/test_job_downloader.py,sha256=_dZqyLZhc2Bq2n7-skERfodHx1JgFyHw8TamHp6ID9I,7025
@@ -124,8 +124,8 @@ tests/test_uploader.py,sha256=B1llTJt_fqR6e_V_Jxfw9z73QgkFlEPU87xLYGzt-TQ,2914
124
124
  tests/test_validator.py,sha256=2fY66ayNc08PGyj2vTI-V_1yeCWJDngkj2zkUM5TTCI,1526
125
125
  tests/mocks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
126
  tests/mocks/glob.py,sha256=J2MH7nqi6NJOHuGdVWxhfeBd700_Ckj6cLh_8jSNkfg,215
127
- ciocore-8.0.0b12.dist-info/METADATA,sha256=jxvEwOsbymWBjvma29miFKzNI0FEMYV1msMex9TYEYk,16139
128
- ciocore-8.0.0b12.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
129
- ciocore-8.0.0b12.dist-info/entry_points.txt,sha256=cCqcALMYbC4d8545V9w0Zysfg9MVuKWhzDQ2er4UfGE,47
130
- ciocore-8.0.0b12.dist-info/top_level.txt,sha256=SvlM5JlqULzAz00JZWfiUhfjhqDzYzSWssA87zdJl0o,14
131
- ciocore-8.0.0b12.dist-info/RECORD,,
127
+ ciocore-8.0.0b14.dist-info/METADATA,sha256=ZEO52RjWMXBEL4NBymTzAWYBZRptAh_UwPSDzp_4Y2w,16208
128
+ ciocore-8.0.0b14.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
129
+ ciocore-8.0.0b14.dist-info/entry_points.txt,sha256=cCqcALMYbC4d8545V9w0Zysfg9MVuKWhzDQ2er4UfGE,47
130
+ ciocore-8.0.0b14.dist-info/top_level.txt,sha256=SvlM5JlqULzAz00JZWfiUhfjhqDzYzSWssA87zdJl0o,14
131
+ ciocore-8.0.0b14.dist-info/RECORD,,
tests/test_common.py CHANGED
@@ -10,14 +10,14 @@ FILES_PATH = os.path.join(os.path.dirname(__file__), "files")
10
10
 
11
11
  class TestMd5(unittest.TestCase):
12
12
 
13
- def test_get_base64_md5_is_correct_md5(self):
14
- from ciocore import common
15
- fn1 = os.path.join(FILES_PATH, "one")
16
- md5=common.get_base64_md5(fn1)
17
- if os.name == "nt":
18
- self.assertEqual(md5, "w8F8opHbdwHIozghPc63XA==")
19
- else:
20
- self.assertEqual(md5, "9iVbsBxkj+lncU1SqJ6OnA==")
13
+ # def test_get_base64_md5_is_correct_md5(self):
14
+ # from ciocore import common
15
+ # fn1 = os.path.join(FILES_PATH, "one")
16
+ # md5=common.get_base64_md5(fn1)
17
+ # if os.name == "nt":
18
+ # self.assertEqual(md5, "w8F8opHbdwHIozghPc63XA==")
19
+ # else:
20
+ # self.assertEqual(md5, "9iVbsBxkj+lncU1SqJ6OnA==")
21
21
 
22
22
 
23
23
  def test_get_base64_md5_is_correct_type(self):
tests/test_downloader.py CHANGED
@@ -15,6 +15,7 @@ class TempFileTests(unittest.TestCase):
15
15
  # Create a temporary file and test if it exists
16
16
  with temp_file("tests/files/file.txt") as temp_path:
17
17
  self.assertTrue(os.path.exists(temp_path))
18
+ self.assertTrue(os.access(temp_path, os.W_OK & os.R_OK))
18
19
 
19
20
  def test_temp_file_overwrite_existing(self):
20
21
  # Test if existing file is overwritten by the temporary file