rolling-pin 0.11.0__tar.gz → 0.11.1__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.
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/PKG-INFO +1 -1
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/pyproject.toml +1 -1
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/conform_etl.py +5 -2
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/LICENSE +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/README.md +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/__init__.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/blob_etl.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/command.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/conform_config.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/py.typed +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/radon_etl.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/repo_etl.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/toml_etl.py +0 -0
- {rolling-pin-0.11.0 → rolling-pin-0.11.1}/rolling_pin/tools.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: rolling-pin
|
3
|
-
Version: 0.11.
|
3
|
+
Version: 0.11.1
|
4
4
|
Summary: A library of generic tools for ETL work and visualization of JSON blobs and python repositories
|
5
5
|
License: MIT
|
6
6
|
Keywords: ETL,blob,dependency,graph,svg,networkx,transform,code metrics,dependency diagram,build system
|
@@ -8,6 +8,7 @@ import re
|
|
8
8
|
|
9
9
|
from lunchbox.enforce import Enforce
|
10
10
|
from pandas import DataFrame
|
11
|
+
import lunchbox.tools as lbt
|
11
12
|
import yaml
|
12
13
|
|
13
14
|
from rolling_pin.blob_etl import BlobETL
|
@@ -268,7 +269,9 @@ class ConformETL:
|
|
268
269
|
data.apply(lambda x: rpt.copy_file(x.source, x.target), axis=1)
|
269
270
|
|
270
271
|
# copy lines
|
271
|
-
data['text'] = data.source.apply(rpt.read_text)
|
272
|
+
data['text'] = data.source.apply(lambda x: lbt.try_(rpt.read_text, x, 'error'))
|
273
|
+
readable_mask = data.text.apply(lambda x: isinstance(x, str))
|
274
|
+
data.loc[~readable_mask, 'text'] = ''
|
272
275
|
rules = list(filter(lambda x: x['group'] in groups, self._line_rules))
|
273
276
|
for rule in rules:
|
274
277
|
mask = data.groups.apply(lambda x: rule['group'] in x)
|
@@ -281,4 +284,4 @@ class ConformETL:
|
|
281
284
|
replace_value=rule.get('replace', None),
|
282
285
|
)
|
283
286
|
)
|
284
|
-
data.apply(lambda x: rpt.write_text(x.text, x.target), axis=1)
|
287
|
+
data[readable_mask].apply(lambda x: rpt.write_text(x.text, x.target), axis=1)
|
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
|
File without changes
|
File without changes
|