diff --git a/docs/changelog.md b/docs/changelog.md index aa6c75a4..0002f664 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,8 @@ # Change log +## 2024.1.23 +- Lazy import of optional libraries to speed up startup. + ## 2023.9.25 - Improved pydantic2 support (@munrojm). diff --git a/docs/monty.functools.md b/docs/monty.functools.md index 93fd41b6..15bc0fca 100644 --- a/docs/monty.functools.md +++ b/docs/monty.functools.md @@ -73,10 +73,13 @@ becomes The decorated main accepts two new arguments: > prof_file: Name of the output file with profiling data + > ```none > If not given, a temporary file is created. > ``` + > sortby: Profiling data are sorted according to this value. + > ```none > default is “time”. See sort_stats. > ``` diff --git a/docs/monty.os.md b/docs/monty.os.md index 96184b2e..8d85d1dc 100644 --- a/docs/monty.os.md +++ b/docs/monty.os.md @@ -15,6 +15,7 @@ performing some tasks, and returns to the original working directory afterwards. E.g., > with cd(“/my/path/”): + > ```none > do_something() > ``` diff --git a/docs/monty.re.md b/docs/monty.re.md index b7e419ef..7082093f 100644 --- a/docs/monty.re.md +++ b/docs/monty.re.md @@ -25,9 +25,11 @@ A powerful regular expression version of grep. * **Returns** > {key1: [[[matches…], lineno], [[matches…], lineno], + > ```none > [[matches…], lineno], …], > ``` + > key2: …} For reverse reads, the lineno is given as a -ve number. Please note diff --git a/monty/__init__.py b/monty/__init__.py index cfea3afd..6483e6b9 100644 --- a/monty/__init__.py +++ b/monty/__init__.py @@ -7,7 +7,7 @@ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2014, The Materials Virtual Lab" -__version__ = "2023.11.3" +__version__ = "2024.1.23" __maintainer__ = "Shyue Ping Ong" __email__ = "ongsp@ucsd.edu" __date__ = "Oct 12 2020" diff --git a/pyproject.toml b/pyproject.toml index ebd89a3e..df30d109 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ dependencies = [ ] -version = "2023.11.3" +version = "2024.1.23" [tool.setuptools] packages = ["monty"] diff --git a/tests/test_files/3000_lines.txt.gz b/tests/test_files/3000_lines.txt.gz index 844db6dd..71df51eb 100644 Binary files a/tests/test_files/3000_lines.txt.gz and b/tests/test_files/3000_lines.txt.gz differ