libjam 0.0.16__tar.gz → 0.0.17__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
1
  Metadata-Version: 2.4
2
2
  Name: libjam
3
- Version: 0.0.16
3
+ Version: 0.0.17
4
4
  Summary: A library jam for Python.
5
5
  Project-URL: Homepage, https://github.com/philippkosarev/libjam
6
6
  Project-URL: Issues, https://github.com/philippkosarev/libjam/issues
@@ -12,10 +12,6 @@ function Ask {
12
12
  done
13
13
  }
14
14
 
15
- function Publish {
16
- python3 -m twine upload --repository pypi dist/*
17
- }
18
-
19
15
  function Build {
20
16
  echo "Deleting 'dist' directory..."
21
17
  rm ./dist -r
@@ -23,6 +19,15 @@ function Build {
23
19
  python3 -m build
24
20
  }
25
21
 
22
+ function Publish {
23
+ python3 -m twine upload --repository pypi dist/*
24
+ }
25
+
26
+ function Update {
27
+ pip install --upgrade libjam
28
+ }
29
+
26
30
  # Running
27
31
  Build
28
- Ask "Publish new version to PyPi?" && Publish
32
+ Ask "Publish new version to PyPi?" && Publish &&
33
+ Ask "Update libjam?" && Update
@@ -88,13 +88,13 @@ class Drawer:
88
88
  absolute_files.append(file)
89
89
  return outpath(absolute_files)
90
90
 
91
- # Returns a list of files in a given folder
91
+ # Returns a list of files in a given folder.
92
92
  def get_files(self, path: str):
93
- unfiltered_files = self.get_all(path)
93
+ everything = self.get_all(path)
94
94
  files = []
95
- for file in unfiltered_files:
96
- if self.is_file(path):
97
- files.append(file)
95
+ for item in everything:
96
+ if self.is_file(item):
97
+ files.append(item)
98
98
  return files
99
99
 
100
100
  # Returns a list of folders in a given folder
@@ -14,7 +14,7 @@ include = [
14
14
 
15
15
  [project]
16
16
  name = "libjam"
17
- version = "0.0.16"
17
+ version = "0.0.17"
18
18
  authors = [
19
19
  { name="Philipp Kosarev", email="philipp.kosarev@gmail.com" },
20
20
  ]
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