PyProd 0.8.0__py3-none-any.whl → 0.9.0__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.
- pyprod/__init__.py +1 -1
- pyprod/main.py +1 -4
- pyprod/prod.py +8 -7
- {pyprod-0.8.0.dist-info → pyprod-0.9.0.dist-info}/METADATA +1 -1
- pyprod-0.9.0.dist-info/RECORD +11 -0
- pyprod-0.8.0.dist-info/RECORD +0 -11
- {pyprod-0.8.0.dist-info → pyprod-0.9.0.dist-info}/WHEEL +0 -0
- {pyprod-0.8.0.dist-info → pyprod-0.9.0.dist-info}/entry_points.txt +0 -0
- {pyprod-0.8.0.dist-info → pyprod-0.9.0.dist-info}/licenses/LICENSE +0 -0
pyprod/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.
|
1
|
+
__version__ = "0.9.0"
|
pyprod/main.py
CHANGED
@@ -137,10 +137,7 @@ def main():
|
|
137
137
|
sys.exit("No default target")
|
138
138
|
targets = [target]
|
139
139
|
|
140
|
-
ret =
|
141
|
-
for target in targets:
|
142
|
-
ret += asyncio.run(prod.start([target]))
|
143
|
-
|
140
|
+
ret = asyncio.run(prod.start(targets))
|
144
141
|
if not ret:
|
145
142
|
print(f"Nothing to be done for {targets}")
|
146
143
|
|
pyprod/prod.py
CHANGED
@@ -575,6 +575,8 @@ class Prod:
|
|
575
575
|
self.module = self.load_pyprodfile(self.modulefile)
|
576
576
|
self.built = 0 # number of build execused
|
577
577
|
|
578
|
+
self.deps = []
|
579
|
+
|
578
580
|
def get_module_globals(self):
|
579
581
|
globals = {
|
580
582
|
"build": self.build,
|
@@ -664,11 +666,8 @@ class Prod:
|
|
664
666
|
return Exists(name, True, ret)
|
665
667
|
|
666
668
|
def build(self, *deps):
|
667
|
-
|
668
|
-
|
669
|
-
child = [_name_to_str(name) for name in flatten(elem)]
|
670
|
-
children.append(child)
|
671
|
-
self.deps[0:0] = children
|
669
|
+
if deps:
|
670
|
+
self.deps[0:0] = deps
|
672
671
|
|
673
672
|
def use_git(self, use):
|
674
673
|
self.use_git_timestamp = use
|
@@ -679,10 +678,12 @@ class Prod:
|
|
679
678
|
async def start(self, deps):
|
680
679
|
self.loop = asyncio.get_running_loop()
|
681
680
|
self.built = 0
|
682
|
-
self.deps
|
681
|
+
self.deps.append(deps)
|
683
682
|
while self.deps:
|
683
|
+
tasks = []
|
684
684
|
dep = self.deps.pop(0)
|
685
|
-
|
685
|
+
tasks.append(self.schedule([dep]))
|
686
|
+
await asyncio.gather(*tasks)
|
686
687
|
|
687
688
|
return self.built
|
688
689
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
pyprod/__init__.py,sha256=H9NWRZb7NbeRRPLP_V1fARmLNXranorVM-OOY-8_2ug,22
|
2
|
+
pyprod/__main__.py,sha256=Vdhw8YA1K3wPMlbJQYL5WqvRzAKVeZ16mZQFO9VRmCo,62
|
3
|
+
pyprod/main.py,sha256=_JuQCgGAGIx_hRc4U2BtsXRfUNKaqhnM3TndsqNcOac,3115
|
4
|
+
pyprod/prod.py,sha256=H6Ssxbh4p0Q7azB_st3qr1d3RwgIiqMekk_WSDt-xeg,21226
|
5
|
+
pyprod/utils.py,sha256=6bA06MtxvzcEArAozeJVMgCvoTT185OPEGypM1jjoG0,481
|
6
|
+
pyprod/venv.py,sha256=ZNMtHDBdC-eNFJE0-GxDlh6tlGy5Y-2m1r86SqxJJR0,1229
|
7
|
+
pyprod-0.9.0.dist-info/METADATA,sha256=KUZ8WDr88krTBUUwXbFRiRnrV-FhsG7uYk7on-_lRJo,2683
|
8
|
+
pyprod-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
+
pyprod-0.9.0.dist-info/entry_points.txt,sha256=zFycf8BYSMRDTiI0jftmcvtkf9XM4MZ4BL3JaIer_ZM,44
|
10
|
+
pyprod-0.9.0.dist-info/licenses/LICENSE,sha256=OtPgwnlLrsVEYPnTraun5AqftAT5vUv4rIan-qYj7nE,1071
|
11
|
+
pyprod-0.9.0.dist-info/RECORD,,
|
pyprod-0.8.0.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
pyprod/__init__.py,sha256=iPlYCcIzuzW7T2HKDkmYlMkRI51dBLfNRxPPiWrfw9U,22
|
2
|
-
pyprod/__main__.py,sha256=Vdhw8YA1K3wPMlbJQYL5WqvRzAKVeZ16mZQFO9VRmCo,62
|
3
|
-
pyprod/main.py,sha256=SWMmGVnVALwgENHmFfrTnYJcNyjWjw_qSO3o4aGre4E,3169
|
4
|
-
pyprod/prod.py,sha256=L6_mI2E09i7JVoeSsT-uDi9IijcADxsA_Ui064WqHB4,21260
|
5
|
-
pyprod/utils.py,sha256=6bA06MtxvzcEArAozeJVMgCvoTT185OPEGypM1jjoG0,481
|
6
|
-
pyprod/venv.py,sha256=ZNMtHDBdC-eNFJE0-GxDlh6tlGy5Y-2m1r86SqxJJR0,1229
|
7
|
-
pyprod-0.8.0.dist-info/METADATA,sha256=9kzbZ6ZuRrCZwBJW91_D2YXwwg5nOR6tDTdrvUMgGpw,2683
|
8
|
-
pyprod-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
9
|
-
pyprod-0.8.0.dist-info/entry_points.txt,sha256=zFycf8BYSMRDTiI0jftmcvtkf9XM4MZ4BL3JaIer_ZM,44
|
10
|
-
pyprod-0.8.0.dist-info/licenses/LICENSE,sha256=OtPgwnlLrsVEYPnTraun5AqftAT5vUv4rIan-qYj7nE,1071
|
11
|
-
pyprod-0.8.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|