42
42
"PYPI_PACKAGE_NAME" ,
43
43
"PYPI_ARCHIVE_NAME" ,
44
44
"BIBLIOGRAPHY_NAME" ,
45
- "literalise" ,
46
45
"clean" ,
47
46
"formatting" ,
48
47
"quality" ,
66
65
67
66
PYTHON_PACKAGE_NAME : str = colour_clf_io .__name__
68
67
69
- PYPI_PACKAGE_NAME : str = "colour-science- clf-io"
68
+ PYPI_PACKAGE_NAME : str = "colour-clf-io"
70
69
PYPI_ARCHIVE_NAME : str = PYPI_PACKAGE_NAME .replace ("-" , "_" )
71
70
72
71
BIBLIOGRAPHY_NAME : str = "BIBLIOGRAPHY.bib"
@@ -151,24 +150,6 @@ def inner(text: str) -> str:
151
150
print_callable ("=" * width )
152
151
153
152
154
- @task
155
- def literalise (ctx : Context ) -> None :
156
- """
157
- Write various literals in the `colour.hints` module.
158
-
159
- Parameters
160
- ----------
161
- ctx
162
- Context.
163
- """
164
-
165
- message_box ("Literalising..." )
166
- with ctx .cd ("utilities" ):
167
- ctx .run ("./literalise.py" )
168
-
169
- ctx .run ("pre-commit run --files colour/hints/__init__.py" , warn = True )
170
-
171
-
172
153
@task
173
154
def clean (
174
155
ctx : Context ,
@@ -432,7 +413,7 @@ def requirements(ctx: Context) -> None:
432
413
)
433
414
434
415
435
- @task (literalise , clean , preflight , docs , todo , requirements )
416
+ @task (clean , preflight , docs , todo , requirements )
436
417
def build (ctx : Context ) -> None :
437
418
"""
438
419
Build the project and runs dependency tasks, i.e., *docs*, *todo*, and
@@ -445,34 +426,7 @@ def build(ctx: Context) -> None:
445
426
"""
446
427
447
428
message_box ("Building..." )
448
- if "modified: README.rst" in ctx .run ("git status" ).stdout : # pyright: ignore
449
- msg = 'Please commit your changes to the "README.rst" file!'
450
- raise RuntimeError (msg )
451
-
452
- with open ("README.rst" ) as readme_file :
453
- readme_content = readme_file .read ()
454
-
455
- with open ("README.rst" , "w" ) as readme_file :
456
- # Adding the *Colour* logo as the first content line because the *raw*
457
- # directive to support light and dark theme is later trimmed.
458
- readme_content = (
459
- ".. image:: https://raw.githubusercontent.com/colour-science/"
460
- "colour-branding/master/images/Colour_Logo_001.png\n " + readme_content
461
- )
462
- readme_file .write (
463
- re .sub (
464
- (
465
- "(\\ .\\ . begin-trim-long-description.*?"
466
- "\\ .\\ . end-trim-long-description)"
467
- ),
468
- "" ,
469
- readme_content ,
470
- flags = re .DOTALL ,
471
- )
472
- )
473
-
474
429
ctx .run ("uv build" )
475
- ctx .run ("git checkout -- README.rst" )
476
430
ctx .run ("twine check dist/*" )
477
431
478
432
@@ -495,9 +449,6 @@ def virtualise(ctx: Context, tests: bool = True) -> None:
495
449
ctx .run (f"mv { PYPI_ARCHIVE_NAME } -{ APPLICATION_VERSION } { unique_name } " )
496
450
with ctx .cd (unique_name ):
497
451
ctx .run ("uv sync --all-extras --no-dev" )
498
- ctx .run (
499
- 'uv run python -c "import imageio;imageio.plugins.freeimage.download()"'
500
- )
501
452
if tests :
502
453
ctx .run (
503
454
"source .venv/bin/activate && "
0 commit comments