pycodata 2.6.1__tar.gz → 2.7.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 (28) hide show
  1. {pycodata-2.6.1 → pycodata-2.7.0}/LICENSE +1 -1
  2. {pycodata-2.6.1/src/pycodata.egg-info → pycodata-2.7.0}/PKG-INFO +1 -1
  3. pycodata-2.7.0/VERSION +1 -0
  4. pycodata-2.7.0/src/pycodata/version.py +1 -0
  5. {pycodata-2.6.1 → pycodata-2.7.0/src/pycodata.egg-info}/PKG-INFO +1 -1
  6. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata.egg-info/SOURCES.txt +0 -3
  7. pycodata-2.6.1/Makefile +0 -34
  8. pycodata-2.6.1/VERSION +0 -1
  9. pycodata-2.6.1/setup-old.txt +0 -143
  10. pycodata-2.6.1/src/pycodata/version.py +0 -1
  11. pycodata-2.6.1/test/__init__.py +0 -5
  12. {pycodata-2.6.1 → pycodata-2.7.0}/MANIFEST.in +0 -0
  13. {pycodata-2.6.1 → pycodata-2.7.0}/README.md +0 -0
  14. {pycodata-2.6.1 → pycodata-2.7.0}/pyproject.toml +0 -0
  15. {pycodata-2.6.1 → pycodata-2.7.0}/setup.cfg +0 -0
  16. {pycodata-2.6.1 → pycodata-2.7.0}/setup.py +0 -0
  17. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/__init__.py +0 -0
  18. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/__main__.py +0 -0
  19. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/codata_constants_2010.py +0 -0
  20. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/codata_constants_2014.py +0 -0
  21. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/codata_constants_2018.py +0 -0
  22. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/codata_constants_2022.py +0 -0
  23. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/lookup.py +0 -0
  24. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata/quantity.py +0 -0
  25. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata.egg-info/dependency_links.txt +0 -0
  26. {pycodata-2.6.1 → pycodata-2.7.0}/src/pycodata.egg-info/top_level.txt +0 -0
  27. {pycodata-2.6.1 → pycodata-2.7.0}/test/test_all.py +0 -0
  28. {pycodata-2.6.1 → pycodata-2.7.0}/test/test_lookup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Milan Skocic
3
+ Copyright (c) 2022-2026 Milan Skocic
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycodata
3
- Version: 2.6.1
3
+ Version: 2.7.0
4
4
  Summary: pycodata: CODATA constants for python.
5
5
  Author-email: Milan Skocic <milan.skocic@gmail.com>
6
6
  License-Expression: MIT
pycodata-2.7.0/VERSION ADDED
@@ -0,0 +1 @@
1
+ 2.7.0
@@ -0,0 +1 @@
1
+ __version__ = "2.7.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycodata
3
- Version: 2.6.1
3
+ Version: 2.7.0
4
4
  Summary: pycodata: CODATA constants for python.
5
5
  Author-email: Milan Skocic <milan.skocic@gmail.com>
6
6
  License-Expression: MIT
@@ -1,10 +1,8 @@
1
1
  LICENSE
2
2
  MANIFEST.in
3
- Makefile
4
3
  README.md
5
4
  VERSION
6
5
  pyproject.toml
7
- setup-old.txt
8
6
  setup.py
9
7
  src/pycodata/__init__.py
10
8
  src/pycodata/__main__.py
@@ -19,6 +17,5 @@ src/pycodata.egg-info/PKG-INFO
19
17
  src/pycodata.egg-info/SOURCES.txt
20
18
  src/pycodata.egg-info/dependency_links.txt
21
19
  src/pycodata.egg-info/top_level.txt
22
- test/__init__.py
23
20
  test/test_all.py
24
21
  test/test_lookup.py
pycodata-2.6.1/Makefile DELETED
@@ -1,34 +0,0 @@
1
- include make.in
2
- # ---------------------------------------------------------------------
3
- # CONFIGURATION
4
- SETUP=setup.py pyproject.toml
5
- # ---------------------------------------------------------------------
6
-
7
-
8
- # ---------------------------------------------------------------------
9
- # TARGETS
10
- all: build
11
-
12
- .PHONY: build
13
- build: $(SETUP)
14
- $(FPM_PY) -m build --no-isolation --sdist
15
- $(FPM_PY) -m build --no-isolation --wheel
16
-
17
- test: build
18
- $(FPM_PY) -m pytest -v
19
-
20
- example: build
21
- $(FPM_PY) ../example/example.py
22
- # ---------------------------------------------------------------------
23
-
24
-
25
- # ---------------------------------------------------------------------
26
- # OTHERS
27
- clean:
28
- rm -rf build
29
- rm -rf dist
30
- rm -rf *.egg-info
31
- rm -rf __pycache__
32
- rm -rf wheelhouse
33
- rm -rf $(FPM_PY_SRC)/__pycache__
34
- # ---------------------------------------------------------------------
pycodata-2.6.1/VERSION DELETED
@@ -1 +0,0 @@
1
- 2.6.1
@@ -1,143 +0,0 @@
1
- r"""Setup."""
2
- import platform
3
- import shutil
4
- import pathlib
5
- import subprocess
6
- from setuptools import setup, Extension
7
-
8
- LIBSDARWIN = ("libgfortran.5", "libquadmath.0", "libgcc_s.1.1")
9
- LIBSWINDOWS = ("libgfortran-5", "libquadmath-0", "libgcc_s_seh-1", "libwinpthread-1")
10
- LIBSLINUX = []
11
- ROOTLINUX = "/usr/lib/"
12
- ROOTDARWIN = "/usr/local/opt/gcc/lib/gcc/current"
13
- ROOTWINDOWS = "C:/msys64/mingw64/bin"
14
- ROOT = ROOTLINUX
15
- LIBS = LIBSLINUX
16
-
17
- name = "codata"
18
- libraries = None
19
- library_dirs = None
20
- runtime_library_dirs = None
21
- extra_objects = None
22
- ext = [".so"]
23
-
24
-
25
- if platform.system() == "Linux":
26
- libraries = [name]
27
- library_dirs = [f"./src/py{name:s}"]
28
- runtime_library_dirs = ["$ORIGIN"]
29
- ext = [".so"]
30
- ROOT = ROOTLINUX
31
- LIBS = LIBSLINUX
32
- if platform.system() == "Windows":
33
- extra_objects = [f"./src/py{name:s}/lib{name:s}.dll.a"]
34
- ext = [".dll", ".dll.a"]
35
- ROOT = ROOTWINDOWS
36
- LIBS = LIBSWINDOWS
37
- if platform.system() == "Darwin":
38
- libraries = [name]
39
- library_dirs = [f"./src/py{name:s}"]
40
- runtime_library_dirs = ["@loader_path"]
41
- ext = [".dylib"]
42
- ROOT = ROOTDARWIN
43
- LIBS = LIBSDARWIN
44
-
45
-
46
- # Headers
47
- root_src = pathlib.Path(f"./src/py{name:s}/include/")
48
- root_dest = pathlib.Path(f"./src/py{name:s}/")
49
- files = [f"{name:s}.h"]
50
- for file in files:
51
- src = root_src / file
52
- dest = root_dest / file
53
- if not src.exists():
54
- raise ValueError(f"The library {name:s} was not installed. Run in the root folder: make install prefix=./py/src/py{name:s}")
55
- try:
56
- print(f"copying {str(src):s} -> {str(dest.parent):s}.")
57
- shutil.copy(src, dest)
58
- except:
59
- print(f"{file:s} was not copied.")
60
-
61
- # Libs
62
- root_src = pathlib.Path(f"./src/py{name:s}/lib/")
63
- root_dest = pathlib.Path(f"./src/py{name:s}/")
64
- files = list(map(lambda s: f"lib{name:s}"+s, ext))
65
- for file in files:
66
- src = root_src / file
67
- dest = root_dest / file
68
- if not src.exists():
69
- raise ValueError(f"The library {name:s} was not installed. Run in the root folder: make install prefix=./py/src/py{name:s}")
70
- try:
71
- print(f"copying {str(src):s} -> {str(dest.parent):s}.")
72
- shutil.copy(src, dest)
73
- except:
74
- print(f"{file:s} was not copied.")
75
-
76
- # gfortran libs
77
- root_src = pathlib.Path(ROOT)
78
- root_dest = pathlib.Path(f"./src/py{name:s}/")
79
- files = LIBS
80
- for file in files:
81
- src = root_src / (file + ext[0])
82
- dest = root_dest / (file + ext[0])
83
- cmd = ["install_name_tool", "-change", f"{str(src):s}", f"@loader_path/{src.name}", f"./src/py{name:s}/lib{name:s}{ext[0]:s}"]
84
- try:
85
- print(f"copying {str(src):s} -> {str(dest.parent):s}.")
86
- shutil.copy(src, dest)
87
- if platform.system() == "Darwin":
88
- print(f"changing rpath for {str(file):s}")
89
- subprocess.check_call(cmd)
90
- except subprocess.CalledProcessError:
91
- print(" ".join(cmd) + " was not successful.")
92
- except:
93
- print(f"{file:s} was not copied.")
94
-
95
- # check rpaths for Darwin
96
- if platform.system() == "Darwin":
97
- cmd = ["otool", "-L", f"./src/py{name:s}/lib{name:s}{ext[0]:s}"]
98
- try:
99
- print(f"checking rpaths")
100
- subprocess.check_call(cmd)
101
- except subprocess.CalledProcessError:
102
- print(" ".join(cmd) + " was not successful.")
103
-
104
- version = None
105
- with open("./VERSION", "r") as f:
106
- version = f.read().strip()
107
-
108
- if __name__ == "__main__":
109
-
110
- mod_constants_2022 = Extension(name="pycodata.constants_2022",
111
- sources=["./src/pycodata/cpy_codata_constants_2022.c"],
112
- libraries=libraries,
113
- library_dirs=library_dirs,
114
- runtime_library_dirs=runtime_library_dirs,
115
- extra_objects=extra_objects)
116
- mod_constants_2018 = Extension(name="pycodata.constants_2018",
117
- sources=["./src/pycodata/cpy_codata_constants_2018.c"],
118
- libraries=libraries,
119
- library_dirs=library_dirs,
120
- runtime_library_dirs=runtime_library_dirs,
121
- extra_objects=extra_objects)
122
- mod_constants_2014 = Extension(name="pycodata.constants_2014",
123
- sources=["./src/pycodata/cpy_codata_constants_2014.c"],
124
- libraries=libraries,
125
- library_dirs=library_dirs,
126
- runtime_library_dirs=runtime_library_dirs,
127
- extra_objects=extra_objects)
128
- mod_constants_2010 = Extension(name="pycodata.constants_2010",
129
- sources=["./src/pycodata/cpy_codata_constants_2010.c"],
130
- libraries=libraries,
131
- library_dirs=library_dirs,
132
- runtime_library_dirs=runtime_library_dirs,
133
- extra_objects=extra_objects)
134
- mod_version = Extension(name="pycodata.version",
135
- sources=["./src/pycodata/cpy_codata_version.c"],
136
- libraries=libraries,
137
- library_dirs=library_dirs,
138
- runtime_library_dirs=runtime_library_dirs,
139
- extra_objects=extra_objects)
140
- setup(version=version,
141
- ext_modules=[mod_constants_2022, mod_constants_2018, mod_constants_2014, mod_constants_2010, mod_version]
142
- )
143
-
@@ -1 +0,0 @@
1
- __version__ = "2.6.1"
@@ -1,5 +0,0 @@
1
- import os
2
- import sys
3
- PROJECT_PATH = os.getcwd()
4
- SOURCE_PATH = os.path.join(PROJECT_PATH,"src")
5
- sys.path.insert(0, SOURCE_PATH)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes