emcd-projects 1.15__py3-none-any.whl → 1.16__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.
- {emcd_projects-1.15.dist-info → emcd_projects-1.16.dist-info}/METADATA +1 -1
- {emcd_projects-1.15.dist-info → emcd_projects-1.16.dist-info}/RECORD +11 -11
- emcdproj/__/imports.py +0 -1
- emcdproj/__/preparation.py +4 -3
- emcdproj/__init__.py +1 -1
- emcdproj/cli.py +2 -3
- emcdproj/interfaces.py +1 -1
- emcdproj/website.py +5 -7
- {emcd_projects-1.15.dist-info → emcd_projects-1.16.dist-info}/WHEEL +0 -0
- {emcd_projects-1.15.dist-info → emcd_projects-1.16.dist-info}/entry_points.txt +0 -0
- {emcd_projects-1.15.dist-info → emcd_projects-1.16.dist-info}/licenses/LICENSE.txt +0 -0
@@ -2,23 +2,23 @@ emcdproj/data/.gitignore,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
emcdproj/data/templates/coverage.svg.jinja,sha256=UWJE9I1QVoo31DB4PAcf_sYFs1oOViDbnCmhzuoVuq8,1479
|
3
3
|
emcdproj/data/templates/website.html.jinja,sha256=V958XUcGdNmvSl_RalRvPRIZ5uUcpaXgycddOLN6rfA,1513
|
4
4
|
emcdproj/README.rst,sha256=ThJlTJWDLurnGuhCXlQDRuSYexDJrAUnHIPiTGaAmww,4495
|
5
|
-
emcdproj/__init__.py,sha256=
|
5
|
+
emcdproj/__init__.py,sha256=WJ5-iRl5T7069faD1eJIW0u_-jjBY8cvL6jh1ntu6dw,1582
|
6
6
|
emcdproj/__main__.py,sha256=KkTeK75rYgF2yVf2HpTs-L2V1jru3j7ohDSgGXWFXjQ,1409
|
7
|
-
emcdproj/cli.py,sha256=
|
7
|
+
emcdproj/cli.py,sha256=aTnDAVS5aLQjuTk0peHlZvLAUToL1JrWst470JcjoLY,4168
|
8
8
|
emcdproj/exceptions.py,sha256=Y9n5pGh1-hMkKtOYherAjUw19af4-uWDNzUZjiqiU00,2641
|
9
9
|
emcdproj/filesystem.py,sha256=YgcX5Q52r2hTYU-7_VoW2inMC4NBTzqSTINB9eNT9Hw,1708
|
10
|
-
emcdproj/interfaces.py,sha256=
|
10
|
+
emcdproj/interfaces.py,sha256=8zpEhAjPpXZfwbQxj3TkGzeTzY8sHZUHsbmbtdb8k6c,1735
|
11
11
|
emcdproj/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
-
emcdproj/website.py,sha256=
|
12
|
+
emcdproj/website.py,sha256=qBJE-wBNs3UAFMWLdMFR5V9-KK9aMwfKznhIvI9yl2g,10503
|
13
13
|
emcdproj/__/__init__.py,sha256=oGdDy7STF7jZlrxKzgvdbqw5-tR-RRWqurizIazVvvg,1598
|
14
14
|
emcdproj/__/application.py,sha256=6uF2yTIlAsLWKadus7a7mPvr7q3pagplPrDAA1EUwlw,2316
|
15
15
|
emcdproj/__/distribution.py,sha256=9TCSm8oJtIot-MPR8Ypt72gMaUh77WXtkpuxggb6tGQ,3972
|
16
|
-
emcdproj/__/imports.py,sha256=
|
17
|
-
emcdproj/__/preparation.py,sha256=
|
16
|
+
emcdproj/__/imports.py,sha256=hj9OReVMu5G0QeM531UhP0Qeo1ePtkVGNUBMrJTULMQ,2109
|
17
|
+
emcdproj/__/preparation.py,sha256=rNbA8VvrspanbP_0O4GjmwaqgzgPf0SdY7WadcINJZE,3824
|
18
18
|
emcdproj/__/state.py,sha256=inChROB1WcJ_b9kZ6VfQZr-dLj56-MxWoMHrvB-yXu4,3596
|
19
19
|
emcdproj/_typedecls/__builtins__.pyi,sha256=VhJfnYgggXihUzomBHtA1xEKzG7XqEHkSjhl0Ro6qgg,153
|
20
|
-
emcd_projects-1.
|
21
|
-
emcd_projects-1.
|
22
|
-
emcd_projects-1.
|
23
|
-
emcd_projects-1.
|
24
|
-
emcd_projects-1.
|
20
|
+
emcd_projects-1.16.dist-info/METADATA,sha256=zABwcCUBJZ_2rGG0piv6V2firXqlxoyJzIrSziaum34,6085
|
21
|
+
emcd_projects-1.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
22
|
+
emcd_projects-1.16.dist-info/entry_points.txt,sha256=22Pc1xg3OboNBxpTnDM3gLYXo8QuY2E0SOv1djo0fdc,43
|
23
|
+
emcd_projects-1.16.dist-info/licenses/LICENSE.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
24
|
+
emcd_projects-1.16.dist-info/RECORD,,
|
emcdproj/__/imports.py
CHANGED
emcdproj/__/preparation.py
CHANGED
@@ -30,9 +30,10 @@ from . import distribution as _distribution
|
|
30
30
|
from . import state as _state
|
31
31
|
|
32
32
|
|
33
|
-
async def prepare(
|
33
|
+
async def prepare(
|
34
34
|
exits: __.ctxl.AsyncExitStack,
|
35
|
-
application: _application.Information =
|
35
|
+
application: _application.Information = (
|
36
|
+
_application.Information( ) ), # noqa: B008
|
36
37
|
# configedits: _dictedits.Edits = ( ),
|
37
38
|
# configfile: __.Absential[ __.Path ] = __.absent,
|
38
39
|
# environment: bool = False,
|
@@ -66,7 +67,7 @@ async def prepare( # pylint: disable=too-many-arguments,too-many-locals
|
|
66
67
|
exits = exits )
|
67
68
|
# if environment: await _environment.update( auxdata )
|
68
69
|
# _inscribe_preparation_report( auxdata )
|
69
|
-
return auxdata
|
70
|
+
return auxdata # noqa: RET504
|
70
71
|
|
71
72
|
|
72
73
|
# def _inscribe_preparation_report( auxdata: _state.Globals ):
|
emcdproj/__init__.py
CHANGED
emcdproj/cli.py
CHANGED
@@ -35,7 +35,7 @@ class VersionCommand(
|
|
35
35
|
''' Prints version information. '''
|
36
36
|
|
37
37
|
async def __call__( self, auxdata: __.Globals ) -> None:
|
38
|
-
from . import __version__
|
38
|
+
from . import __version__
|
39
39
|
print( f"{__package__} {__version__}" )
|
40
40
|
raise SystemExit( 0 )
|
41
41
|
|
@@ -107,9 +107,8 @@ async def _prepare(
|
|
107
107
|
import ictruck
|
108
108
|
# TODO: Finetune Icecream truck installation from CLI arguments.
|
109
109
|
ictruck.install( trace_levels = 9 )
|
110
|
-
|
110
|
+
return await __.prepare(
|
111
111
|
application = application,
|
112
112
|
# configedits = configedits,
|
113
113
|
# environment = environment,
|
114
114
|
exits = exits )
|
115
|
-
return auxdata
|
emcdproj/interfaces.py
CHANGED
emcdproj/website.py
CHANGED
@@ -146,7 +146,7 @@ def update(
|
|
146
146
|
locations.website.mkdir( exist_ok = True, parents = True )
|
147
147
|
if locations.archive.is_file( ):
|
148
148
|
with tarfile_open( locations.archive, 'r:xz' ) as archive:
|
149
|
-
archive.extractall( path = locations.website )
|
149
|
+
archive.extractall( path = locations.website ) # noqa: S202
|
150
150
|
available_species = _update_available_species( locations, version )
|
151
151
|
j2context = _jinja2.Environment(
|
152
152
|
loader = _jinja2.FileSystemLoader( locations.templates ),
|
@@ -157,7 +157,7 @@ def update(
|
|
157
157
|
_update_coverage_badge( locations, j2context )
|
158
158
|
( locations.website / '.nojekyll' ).touch( )
|
159
159
|
from .filesystem import chdir
|
160
|
-
with chdir( locations.website ):
|
160
|
+
with chdir( locations.website ): # noqa: SIM117
|
161
161
|
with tarfile_open( locations.archive, 'w:xz' ) as archive:
|
162
162
|
archive.add( '.' )
|
163
163
|
|
@@ -195,7 +195,7 @@ def _update_available_species(
|
|
195
195
|
return tuple( available_species )
|
196
196
|
|
197
197
|
|
198
|
-
def _update_coverage_badge(
|
198
|
+
def _update_coverage_badge(
|
199
199
|
locations: Locations, j2context: _jinja2.Environment
|
200
200
|
) -> None:
|
201
201
|
''' Updates coverage badge SVG.
|
@@ -207,11 +207,9 @@ def _update_coverage_badge( # pylint: disable=too-many-locals
|
|
207
207
|
- green: >= 80%
|
208
208
|
'''
|
209
209
|
coverage = _extract_coverage( locations )
|
210
|
-
# pylint: disable=magic-value-comparison
|
211
210
|
color = (
|
212
|
-
'red' if coverage < 50 else (
|
213
|
-
'yellow' if coverage < 80 else 'green' ) )
|
214
|
-
# pylint: enable=magic-value-comparison
|
211
|
+
'red' if coverage < 50 else ( # noqa: PLR2004
|
212
|
+
'yellow' if coverage < 80 else 'green' ) ) # noqa: PLR2004
|
215
213
|
label_text = 'coverage'
|
216
214
|
value_text = f"{coverage}%"
|
217
215
|
label_width = len( label_text ) * 6 + 10
|
File without changes
|
File without changes
|
File without changes
|