pycodata 2.3.1__tar.gz → 2.4.0__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.
- {pycodata-2.3.1 → pycodata-2.4.0}/PKG-INFO +1 -1
- pycodata-2.4.0/VERSION +1 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/pyproject.toml +4 -1
- pycodata-2.4.0/src/pycodata/__init__.py +27 -0
- pycodata-2.4.0/src/pycodata/__main__.py +5 -0
- pycodata-2.4.0/src/pycodata/codata-darwin +0 -0
- pycodata-2.4.0/src/pycodata/codata-linux +0 -0
- pycodata-2.4.0/src/pycodata/codata.exe +0 -0
- pycodata-2.4.0/src/pycodata/codata.h +1405 -0
- pycodata-2.4.0/src/pycodata/libcodata.dll +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/libcodata.dll.a +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/libcodata.dylib +0 -0
- pycodata-2.4.0/src/pycodata/libcodata.so +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata.egg-info/PKG-INFO +1 -1
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata.egg-info/SOURCES.txt +3 -0
- pycodata-2.4.0/src/pycodata.egg-info/entry_points.txt +2 -0
- pycodata-2.3.1/VERSION +0 -1
- pycodata-2.3.1/src/pycodata/__init__.py +0 -14
- pycodata-2.3.1/src/pycodata/codata.h +0 -1405
- pycodata-2.3.1/src/pycodata/libcodata.dll +0 -0
- pycodata-2.3.1/src/pycodata/libcodata.so +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/LICENSE +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/MANIFEST.in +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/README.md +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/setup.cfg +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/setup.py +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/_codata_constants_2010.c +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/_codata_constants_2014.c +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/_codata_constants_2018.c +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/_codata_constants_2022.c +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata/_codata_version.c +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata.egg-info/dependency_links.txt +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/src/pycodata.egg-info/top_level.txt +0 -0
- {pycodata-2.3.1 → pycodata-2.4.0}/test/test_all.py +0 -0
pycodata-2.4.0/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4.0
|
|
@@ -24,4 +24,7 @@ include-package-data = false
|
|
|
24
24
|
where = ["src"]
|
|
25
25
|
|
|
26
26
|
[tool.setuptools.package-data]
|
|
27
|
-
pycodata = ["libcodata.*", "libgfortran*", "libquadmath*", "libgcc_s*", "libwinpthread*"]
|
|
27
|
+
pycodata = ["libcodata.*", "codata*", "libgfortran*", "libquadmath*", "libgcc_s*", "libwinpthread*"]
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
pycodata = "pycodata:main"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Codata constants.
|
|
2
|
+
|
|
3
|
+
The latest values (2022) do not have the year as a suffix in their name.
|
|
4
|
+
Older values can be used and they feature the year as a suffix in their name.
|
|
5
|
+
|
|
6
|
+
The latest values are available at the top level and
|
|
7
|
+
older values are available in dedicated modules.
|
|
8
|
+
"""
|
|
9
|
+
import platform
|
|
10
|
+
import subprocess
|
|
11
|
+
import sys
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
from .version import __version__
|
|
15
|
+
from .constants_2022 import *
|
|
16
|
+
from .constants_2018 import *
|
|
17
|
+
from .constants_2014 import *
|
|
18
|
+
from .constants_2010 import *
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def main():
|
|
22
|
+
binary = Path(__file__).parent / "codata"
|
|
23
|
+
if platform.system() == "Windows":
|
|
24
|
+
binary = binary.with_suffix(".exe")
|
|
25
|
+
|
|
26
|
+
res = subprocess.run([binary] + sys.argv[1:])
|
|
27
|
+
sys.exit(res.returncode)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|