pycodata 2.3.0__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.
Files changed (42) hide show
  1. pycodata-2.4.0/PKG-INFO +38 -0
  2. pycodata-2.3.0/_README.md → pycodata-2.4.0/README.md +2 -0
  3. pycodata-2.4.0/VERSION +1 -0
  4. {pycodata-2.3.0 → pycodata-2.4.0}/pyproject.toml +4 -1
  5. pycodata-2.4.0/src/pycodata/__init__.py +27 -0
  6. pycodata-2.4.0/src/pycodata/__main__.py +5 -0
  7. pycodata-2.4.0/src/pycodata/codata-darwin +0 -0
  8. pycodata-2.4.0/src/pycodata/codata-linux +0 -0
  9. pycodata-2.4.0/src/pycodata/codata.exe +0 -0
  10. pycodata-2.4.0/src/pycodata/codata.h +1405 -0
  11. pycodata-2.4.0/src/pycodata/libcodata.dll +0 -0
  12. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata/libcodata.dll.a +0 -0
  13. pycodata-2.4.0/src/pycodata/libcodata.dylib +0 -0
  14. pycodata-2.4.0/src/pycodata/libcodata.so +0 -0
  15. pycodata-2.4.0/src/pycodata.egg-info/PKG-INFO +38 -0
  16. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata.egg-info/SOURCES.txt +3 -7
  17. pycodata-2.4.0/src/pycodata.egg-info/entry_points.txt +2 -0
  18. pycodata-2.3.0/Makefile +0 -114
  19. pycodata-2.3.0/PKG-INFO +0 -347
  20. pycodata-2.3.0/README.md +0 -332
  21. pycodata-2.3.0/VERSION +0 -1
  22. pycodata-2.3.0/codata.h +0 -1405
  23. pycodata-2.3.0/setup-old.txt +0 -143
  24. pycodata-2.3.0/src/pycodata/__init__.py +0 -14
  25. pycodata-2.3.0/src/pycodata/codata.h +0 -1405
  26. pycodata-2.3.0/src/pycodata/libcodata.a +0 -0
  27. pycodata-2.3.0/src/pycodata/libcodata.dylib +0 -0
  28. pycodata-2.3.0/src/pycodata/libcodata.so +0 -0
  29. pycodata-2.3.0/src/pycodata.egg-info/PKG-INFO +0 -347
  30. pycodata-2.3.0/test/__init__.py +0 -5
  31. {pycodata-2.3.0 → pycodata-2.4.0}/LICENSE +0 -0
  32. {pycodata-2.3.0 → pycodata-2.4.0}/MANIFEST.in +0 -0
  33. {pycodata-2.3.0 → pycodata-2.4.0}/setup.cfg +0 -0
  34. {pycodata-2.3.0 → pycodata-2.4.0}/setup.py +0 -0
  35. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata/_codata_constants_2010.c +0 -0
  36. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata/_codata_constants_2014.c +0 -0
  37. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata/_codata_constants_2018.c +0 -0
  38. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata/_codata_constants_2022.c +0 -0
  39. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata/_codata_version.c +0 -0
  40. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata.egg-info/dependency_links.txt +0 -0
  41. {pycodata-2.3.0 → pycodata-2.4.0}/src/pycodata.egg-info/top_level.txt +0 -0
  42. {pycodata-2.3.0 → pycodata-2.4.0}/test/test_all.py +0 -0
@@ -0,0 +1,38 @@
1
+ Metadata-Version: 2.4
2
+ Name: pycodata
3
+ Version: 2.4.0
4
+ Summary: pycodata: CODATA constants for python.
5
+ Author-email: Milan Skocic <milan.skocic@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Documentation, https://milanskocic.github.io/codata/index.html
8
+ Project-URL: Source, https://github.com/MilanSkocic/codata
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Science/Research
11
+ Requires-Python: >=3.9
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: license-file
15
+
16
+
17
+ # Introduction
18
+
19
+ Python wrapper around the
20
+ [Fortran codata library](https://milanskocic.github.io/codata/ ).
21
+ The Fortran library does not need to be installed, the python wrapper embeds all needed fortran dependencies
22
+ for Windows and MacOS.
23
+ On linux, you might have to install `libgfortran` if it is not distributed by default with your linux distribution.
24
+
25
+ # Installation
26
+
27
+ In a terminal, enter:
28
+
29
+ ```python
30
+ pip install pycodata
31
+ ```
32
+
33
+ # License
34
+
35
+ MIT
36
+
37
+ ```
38
+ MIT License
@@ -19,3 +19,5 @@ pip install pycodata
19
19
 
20
20
  MIT
21
21
 
22
+ ```
23
+ MIT License
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)
@@ -0,0 +1,5 @@
1
+ """Main"""
2
+ from . import main
3
+
4
+ if __name__ == "__main__":
5
+ main()
Binary file
Binary file