procure 0.1.2__tar.gz → 0.1.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.5
2
2
  Name: procure
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Procure build assets
5
5
  Project-URL: homepage, https://github.com/crungelab/procure
6
6
  Project-URL: documentation, https://crungelab.github.io/procure/
@@ -38,8 +38,8 @@ Classifier: Programming Language :: Python :: 3.11
38
38
  Classifier: Programming Language :: Python :: Implementation :: CPython
39
39
  Classifier: Programming Language :: Python :: Implementation :: PyPy
40
40
  Requires-Python: >=3.8
41
- Requires-Dist: click~=8.1.7
42
- Requires-Dist: requests~=2.31.0
41
+ Requires-Dist: click>=8.1
42
+ Requires-Dist: requests>=2.31
43
43
  Provides-Extra: dev
44
44
  Requires-Dist: black~=22.12.0; extra == 'dev'
45
45
  Provides-Extra: test
@@ -0,0 +1 @@
1
+ __version__ = '0.1.3'
@@ -1,6 +1,7 @@
1
1
  import requests
2
2
  import tempfile
3
3
  import zipfile
4
+ import shutil
4
5
 
5
6
  from pathlib import Path
6
7
 
@@ -13,8 +14,12 @@ class ZipSolution(Solution):
13
14
 
14
15
  def update(self):
15
16
  path = Path(self.path)
17
+ '''
16
18
  if path.exists():
17
19
  return
20
+ '''
21
+ if path.exists() and path.is_dir():
22
+ shutil.rmtree(path)
18
23
 
19
24
  zip_file = self.download_file(self.url)
20
25
  self.extract_zip(zip_file, self.path)
@@ -23,12 +23,10 @@ classifiers = [
23
23
  "Programming Language :: Python :: Implementation :: PyPy",
24
24
  ]
25
25
  dependencies = [
26
- "click ~=8.1.7",
27
- "requests ~=2.31.0"
26
+ "click>=8.1",
27
+ "requests>=2.31",
28
28
  ]
29
29
 
30
- #dynamic = ["version"]
31
-
32
30
  [project.optional-dependencies]
33
31
  dev = ["black ~=22.12.0"]
34
32
  test = ["pytest ~=7.2.1"]
@@ -1 +0,0 @@
1
- __version__ = '0.1.2'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes