aridity 79__tar.gz → 80__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.
- {aridity-79 → aridity-80}/PKG-INFO +2 -2
- {aridity-79 → aridity-80}/README.md +1 -1
- {aridity-79 → aridity-80}/aridity/functions.py +0 -1
- {aridity-79 → aridity-80}/aridity/model.py +4 -8
- {aridity-79 → aridity-80}/aridity/util.py +0 -1
- {aridity-79 → aridity-80}/aridity.egg-info/PKG-INFO +2 -2
- {aridity-79 → aridity-80}/aridity.egg-info/SOURCES.txt +0 -1
- {aridity-79 → aridity-80}/setup.cfg +0 -3
- {aridity-79 → aridity-80}/setup.py +1 -1
- {aridity-79 → aridity-80}/aridity/__init__.py +0 -0
- {aridity-79 → aridity-80}/aridity/arid_config.py +0 -0
- {aridity-79 → aridity-80}/aridity/config.py +0 -0
- {aridity-79 → aridity-80}/aridity/directives.py +0 -0
- {aridity-79 → aridity-80}/aridity/grammar.py +0 -0
- {aridity-79 → aridity-80}/aridity/keyring.py +0 -0
- {aridity-79 → aridity-80}/aridity/processtemplate.py +0 -0
- {aridity-79 → aridity-80}/aridity/repl.py +0 -0
- {aridity-79 → aridity-80}/aridity/resolve.py +0 -0
- {aridity-79 → aridity-80}/aridity/scope.py +0 -0
- {aridity-79 → aridity-80}/aridity/search.py +0 -0
- {aridity-79 → aridity-80}/aridity/stacks.py +0 -0
- {aridity-79 → aridity-80}/aridity.egg-info/dependency_links.txt +0 -0
- {aridity-79 → aridity-80}/aridity.egg-info/entry_points.txt +0 -0
- {aridity-79 → aridity-80}/aridity.egg-info/requires.txt +0 -0
- {aridity-79 → aridity-80}/aridity.egg-info/top_level.txt +0 -0
- {aridity-79 → aridity-80}/parabject.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aridity
|
|
3
|
-
Version:
|
|
3
|
+
Version: 80
|
|
4
4
|
Summary: DRY config and template system, easily extensible with Python
|
|
5
5
|
Home-page: https://pypi.org/project/aridity/
|
|
6
6
|
Author: foyono
|
|
@@ -23,7 +23,7 @@ def main():
|
|
|
23
23
|
config = ConfigCtrl().loadappconfig(main, 'dbtool.arid')
|
|
24
24
|
print(config.dbhost)
|
|
25
25
|
```
|
|
26
|
-
|
|
26
|
+
Base config file `dbtool.arid` as sibling of main module, self-documenting that `dbhost` should be configured:
|
|
27
27
|
```
|
|
28
28
|
dbhost = $(void)
|
|
29
29
|
```
|
|
@@ -11,7 +11,7 @@ def main():
|
|
|
11
11
|
config = ConfigCtrl().loadappconfig(main, 'dbtool.arid')
|
|
12
12
|
print(config.dbhost)
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
Base config file `dbtool.arid` as sibling of main module, self-documenting that `dbhost` should be configured:
|
|
15
15
|
```
|
|
16
16
|
dbhost = $(void)
|
|
17
17
|
```
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from .util import dotpy, ispy2
|
|
1
|
+
from .util import dotpy
|
|
3
2
|
from contextlib import contextmanager
|
|
4
3
|
from importlib import import_module
|
|
5
|
-
from io import
|
|
4
|
+
from io import TextIOWrapper
|
|
6
5
|
from itertools import chain, islice
|
|
7
6
|
from parabject import dereference, UnknownParabjectException
|
|
8
7
|
import importlib_resources, numbers, os
|
|
@@ -249,11 +248,8 @@ class Resource(Resolved, Openable):
|
|
|
249
248
|
path = importlib_resources.files(package)
|
|
250
249
|
for name in self._resource_words():
|
|
251
250
|
path /= name
|
|
252
|
-
with path.open('rb') as f:
|
|
253
|
-
|
|
254
|
-
f = BytesIO(f.read())
|
|
255
|
-
with TextIOWrapper(f, self.encoding) as f:
|
|
256
|
-
yield f
|
|
251
|
+
with path.open('rb') as f, TextIOWrapper(f, self.encoding) as g:
|
|
252
|
+
yield g
|
|
257
253
|
|
|
258
254
|
def slash(self, words, rstrip):
|
|
259
255
|
v = list(chain(self._resource_words()[:-1 if rstrip else None], words))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aridity
|
|
3
|
-
Version:
|
|
3
|
+
Version: 80
|
|
4
4
|
Summary: DRY config and template system, easily extensible with Python
|
|
5
5
|
Home-page: https://pypi.org/project/aridity/
|
|
6
6
|
Author: foyono
|
|
@@ -23,7 +23,7 @@ def main():
|
|
|
23
23
|
config = ConfigCtrl().loadappconfig(main, 'dbtool.arid')
|
|
24
24
|
print(config.dbhost)
|
|
25
25
|
```
|
|
26
|
-
|
|
26
|
+
Base config file `dbtool.arid` as sibling of main module, self-documenting that `dbhost` should be configured:
|
|
27
27
|
```
|
|
28
28
|
dbhost = $(void)
|
|
29
29
|
```
|
|
@@ -49,7 +49,7 @@ class SourceInfo:
|
|
|
49
49
|
sourceinfo = SourceInfo('.')
|
|
50
50
|
setup(
|
|
51
51
|
name = 'aridity',
|
|
52
|
-
version = '
|
|
52
|
+
version = '80',
|
|
53
53
|
description = 'DRY config and template system, easily extensible with Python',
|
|
54
54
|
url = 'https://pypi.org/project/aridity/',
|
|
55
55
|
author = 'foyono',
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|