arxiv-to-prompt 0.2.1__tar.gz → 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arxiv-to-prompt
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: transform arXiv papers into a single latex prompt for LLMs
5
5
  Author: Takashi Ishida
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "arxiv-to-prompt"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "transform arXiv papers into a single latex prompt for LLMs"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Takashi Ishida" }]
@@ -13,8 +13,20 @@ Example:
13
13
 
14
14
  from .core import process_latex_source, download_arxiv_source, get_default_cache_dir
15
15
 
16
+ # Import version from package metadata
17
+ try:
18
+ from importlib.metadata import version
19
+
20
+ __version__ = version("arxiv-to-prompt")
21
+ except ImportError:
22
+ # Python < 3.8 fallback
23
+ from importlib_metadata import version
24
+
25
+ __version__ = version("arxiv-to-prompt")
26
+
16
27
  __all__ = [
17
28
  "process_latex_source",
18
29
  "download_arxiv_source",
19
30
  "get_default_cache_dir",
20
- ]
31
+ "__version__",
32
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arxiv-to-prompt
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: transform arXiv papers into a single latex prompt for LLMs
5
5
  Author: Takashi Ishida
6
6
  License: MIT
File without changes