amulet-core 2.0.2a1__tar.gz → 2.0.3a0__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.
Potentially problematic release.
This version of amulet-core might be problematic. Click here for more details.
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/CMakeLists.txt +5 -9
- {amulet_core-2.0.2a1/src/amulet_core.egg-info → amulet_core-2.0.3a0}/PKG-INFO +7 -5
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/build_requires.py +2 -1
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/pyproject.toml +1 -2
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/requirements.py +37 -11
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/setup.py +9 -11
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/__init__.py +2 -2
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/_version.py +3 -3
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0/src/amulet_core.egg-info}/PKG-INFO +7 -5
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet_core.egg-info/requires.txt +6 -4
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/MANIFEST.in +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/README.md +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/setup.cfg +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/__pyinstaller/__init__.py +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/__pyinstaller/hook-amulet.core.py +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/_amulet_core.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/_amulet_core.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/amulet_coreConfig.cmake +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/biome/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/biome/biome.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/biome/biome.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/biome/biome.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block/block.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block/block.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block/block.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block_entity/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block_entity/block_entity.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block_entity/block_entity.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block_entity/block_entity.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/chunk.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/chunk.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/chunk.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/__init_chunk_components.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/biome_3d_component.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/biome_3d_component.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_entity_component.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_entity_component.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/dll.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/entity/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/entity/entity.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/entity/entity.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/entity/entity.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/__init_palette.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/biome_palette.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/biome_palette.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/biome_palette.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/biome_palette.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/block_palette.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/block_palette.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/block_palette.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/palette/block_palette.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/py.typed +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/__init_selection.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/box.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/box.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/box.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/group.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/group.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/group.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/version/__init__.pyi +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/version/version.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/version/version.hpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/version/version.py.cpp +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet_core.egg-info/SOURCES.txt +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet_core.egg-info/dependency_links.txt +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet_core.egg-info/entry_points.txt +0 -0
- {amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet_core.egg-info/top_level.txt +0 -0
|
@@ -21,10 +21,8 @@ if (MSVC)
|
|
|
21
21
|
add_definitions("/MP")
|
|
22
22
|
endif()
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# Find libraries
|
|
25
25
|
find_package(pybind11 CONFIG REQUIRED)
|
|
26
|
-
|
|
27
|
-
# Add Amulet libraries
|
|
28
26
|
find_package(amulet_pybind11_extensions CONFIG REQUIRED)
|
|
29
27
|
find_package(amulet_io CONFIG REQUIRED)
|
|
30
28
|
find_package(amulet_nbt CONFIG REQUIRED)
|
|
@@ -40,9 +38,9 @@ list(REMOVE_ITEM HEADERS ${EXTENSION_HEADERS})
|
|
|
40
38
|
|
|
41
39
|
# Add implementation
|
|
42
40
|
add_library(amulet_core SHARED)
|
|
43
|
-
target_link_libraries( amulet_core PRIVATE amulet_io )
|
|
44
|
-
target_link_libraries( amulet_core PRIVATE amulet_nbt )
|
|
45
41
|
target_compile_definitions(amulet_core PRIVATE ExportAmuletCore)
|
|
42
|
+
target_link_libraries(amulet_core PUBLIC amulet_io)
|
|
43
|
+
target_link_libraries(amulet_core PUBLIC amulet_nbt)
|
|
46
44
|
target_include_directories(amulet_core PUBLIC ${SOURCE_PATH})
|
|
47
45
|
target_sources(amulet_core PRIVATE ${SOURCES} ${HEADERS})
|
|
48
46
|
foreach(FILE ${SOURCES} ${HEADERS})
|
|
@@ -54,10 +52,8 @@ endforeach()
|
|
|
54
52
|
|
|
55
53
|
# Add python extension
|
|
56
54
|
pybind11_add_module(_amulet_core)
|
|
57
|
-
target_link_libraries(
|
|
58
|
-
target_link_libraries(
|
|
59
|
-
target_link_libraries( _amulet_core PRIVATE amulet_nbt )
|
|
60
|
-
target_link_libraries( _amulet_core PRIVATE amulet_core )
|
|
55
|
+
target_link_libraries(_amulet_core PRIVATE amulet_pybind11_extensions)
|
|
56
|
+
target_link_libraries(_amulet_core PRIVATE amulet_core)
|
|
61
57
|
target_compile_definitions(_amulet_core PRIVATE PYBIND11_DETAILED_ERROR_MESSAGES)
|
|
62
58
|
target_compile_definitions(_amulet_core PRIVATE PYBIND11_VERSION="${pybind11_VERSION}")
|
|
63
59
|
target_compile_definitions(_amulet_core PRIVATE COMPILER_ID="${CMAKE_CXX_COMPILER_ID}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amulet-core
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3a0
|
|
4
4
|
Summary: A Python library for reading/writing Minecraft's various save formats.
|
|
5
5
|
Author: James Clare, Ben Gothard
|
|
6
6
|
Project-URL: Homepage, https://www.amuletmc.com
|
|
@@ -10,11 +10,14 @@ Classifier: Programming Language :: Python :: 3
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.11
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
|
-
Requires-Dist: amulet-compiler-target==
|
|
14
|
-
Requires-Dist: numpy~=2.0
|
|
13
|
+
Requires-Dist: amulet-compiler-target==2.0
|
|
15
14
|
Requires-Dist: amulet-compiler-version==3.0.0
|
|
15
|
+
Requires-Dist: pybind11==2.13.6
|
|
16
|
+
Requires-Dist: amulet-pybind11-extensions~=1.1.0.0a0
|
|
16
17
|
Requires-Dist: amulet-io~=1.0
|
|
17
|
-
Requires-Dist: amulet-
|
|
18
|
+
Requires-Dist: amulet-zlib~=1.0.0.0a4
|
|
19
|
+
Requires-Dist: amulet-nbt~=5.0.0.0a4
|
|
20
|
+
Requires-Dist: numpy~=2.0
|
|
18
21
|
Provides-Extra: docs
|
|
19
22
|
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
20
23
|
Requires-Dist: sphinx-autodoc-typehints>=1.3.0; extra == "docs"
|
|
@@ -24,7 +27,6 @@ Requires-Dist: setuptools>=42; extra == "dev"
|
|
|
24
27
|
Requires-Dist: versioneer; extra == "dev"
|
|
25
28
|
Requires-Dist: packaging; extra == "dev"
|
|
26
29
|
Requires-Dist: wheel; extra == "dev"
|
|
27
|
-
Requires-Dist: pybind11==2.13.6; extra == "dev"
|
|
28
30
|
Requires-Dist: amulet_pybind11_extensions~=1.0; extra == "dev"
|
|
29
31
|
Requires-Dist: pybind11_stubgen>=2.5.4; extra == "dev"
|
|
30
32
|
Requires-Dist: black>=22.3; extra == "dev"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
from typing import Union, Mapping
|
|
2
|
-
import requirements
|
|
3
2
|
|
|
4
3
|
from setuptools import build_meta
|
|
5
4
|
from setuptools.build_meta import *
|
|
6
5
|
|
|
6
|
+
import requirements
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
def get_requires_for_build_wheel(
|
|
9
10
|
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
@@ -33,7 +33,6 @@ dev = [
|
|
|
33
33
|
"versioneer",
|
|
34
34
|
"packaging",
|
|
35
35
|
"wheel",
|
|
36
|
-
"pybind11==2.13.6",
|
|
37
36
|
"amulet_pybind11_extensions~=1.0",
|
|
38
37
|
"pybind11_stubgen>=2.5.4",
|
|
39
38
|
"black>=22.3",
|
|
@@ -74,4 +73,4 @@ style = "pep440"
|
|
|
74
73
|
versionfile_source = "src/amulet/core/_version.py"
|
|
75
74
|
versionfile_build = "amulet/core/_version.py"
|
|
76
75
|
tag_prefix = ""
|
|
77
|
-
parentdir_prefix = "
|
|
76
|
+
parentdir_prefix = "amulet_core-"
|
|
@@ -2,23 +2,29 @@ import os
|
|
|
2
2
|
import amulet_compiler_version
|
|
3
3
|
from packaging.version import Version
|
|
4
4
|
|
|
5
|
-
AMULET_COMPILER_TARGET_REQUIREMENT = "==
|
|
5
|
+
AMULET_COMPILER_TARGET_REQUIREMENT = "==2.0"
|
|
6
6
|
AMULET_COMPILER_VERSION_REQUIREMENT = "==3.0.0"
|
|
7
7
|
|
|
8
8
|
PYBIND11_REQUIREMENT = "==2.13.6"
|
|
9
|
-
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = "~=1.0"
|
|
10
|
-
|
|
9
|
+
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = "~=1.1.0.0a0"
|
|
11
10
|
AMULET_IO_REQUIREMENT = "~=1.0"
|
|
12
|
-
|
|
13
|
-
AMULET_NBT_REQUIREMENT = "~=5.0.0.
|
|
11
|
+
AMULET_ZLIB_REQUIREMENT = "~=1.0.0.0a4"
|
|
12
|
+
AMULET_NBT_REQUIREMENT = "~=5.0.0.0a4"
|
|
14
13
|
NUMPY_REQUIREMENT = "~=2.0"
|
|
15
14
|
|
|
15
|
+
if os.environ.get("AMULET_PYBIND11_EXTENSIONS_REQUIREMENT", None):
|
|
16
|
+
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = f"{AMULET_PYBIND11_EXTENSIONS_REQUIREMENT},{os.environ['AMULET_PYBIND11_EXTENSIONS_REQUIREMENT']}"
|
|
16
17
|
|
|
17
18
|
if os.environ.get("AMULET_IO_REQUIREMENT", None):
|
|
18
19
|
AMULET_IO_REQUIREMENT = (
|
|
19
20
|
f"{AMULET_IO_REQUIREMENT},{os.environ['AMULET_IO_REQUIREMENT']}"
|
|
20
21
|
)
|
|
21
22
|
|
|
23
|
+
if os.environ.get("AMULET_ZLIB_REQUIREMENT", None):
|
|
24
|
+
AMULET_ZLIB_REQUIREMENT = (
|
|
25
|
+
f"{AMULET_ZLIB_REQUIREMENT},{os.environ['AMULET_ZLIB_REQUIREMENT']}"
|
|
26
|
+
)
|
|
27
|
+
|
|
22
28
|
if os.environ.get("AMULET_NBT_REQUIREMENT", None):
|
|
23
29
|
AMULET_NBT_REQUIREMENT = (
|
|
24
30
|
f"{AMULET_NBT_REQUIREMENT},{os.environ['AMULET_NBT_REQUIREMENT']}"
|
|
@@ -39,6 +45,15 @@ def get_specifier_set(version_str: str) -> str:
|
|
|
39
45
|
if os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
40
46
|
AMULET_COMPILER_VERSION_REQUIREMENT = f"=={amulet_compiler_version.__version__}"
|
|
41
47
|
|
|
48
|
+
try:
|
|
49
|
+
import amulet.pybind11_extensions
|
|
50
|
+
except ImportError:
|
|
51
|
+
pass
|
|
52
|
+
else:
|
|
53
|
+
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = get_specifier_set(
|
|
54
|
+
amulet.pybind11_extensions.__version__
|
|
55
|
+
)
|
|
56
|
+
|
|
42
57
|
try:
|
|
43
58
|
import amulet.io
|
|
44
59
|
except ImportError:
|
|
@@ -46,6 +61,13 @@ if os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
|
46
61
|
else:
|
|
47
62
|
AMULET_IO_REQUIREMENT = get_specifier_set(amulet.io.__version__)
|
|
48
63
|
|
|
64
|
+
try:
|
|
65
|
+
import amulet.zlib
|
|
66
|
+
except ImportError:
|
|
67
|
+
pass
|
|
68
|
+
else:
|
|
69
|
+
AMULET_ZLIB_REQUIREMENT = get_specifier_set(amulet.zlib.__version__)
|
|
70
|
+
|
|
49
71
|
try:
|
|
50
72
|
import amulet.nbt
|
|
51
73
|
except ImportError:
|
|
@@ -56,19 +78,23 @@ if os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
|
56
78
|
|
|
57
79
|
def get_build_dependencies() -> list:
|
|
58
80
|
return [
|
|
59
|
-
f"pybind11{PYBIND11_REQUIREMENT}",
|
|
60
|
-
f"amulet_pybind11_extensions{AMULET_PYBIND11_EXTENSIONS_REQUIREMENT}",
|
|
61
|
-
f"amulet_nbt{AMULET_NBT_REQUIREMENT}",
|
|
62
|
-
f"amulet_io{AMULET_IO_REQUIREMENT}",
|
|
63
81
|
f"amulet-compiler-version{AMULET_COMPILER_VERSION_REQUIREMENT}",
|
|
64
|
-
|
|
82
|
+
f"pybind11{PYBIND11_REQUIREMENT}",
|
|
83
|
+
f"amulet-pybind11-extensions{AMULET_PYBIND11_EXTENSIONS_REQUIREMENT}",
|
|
84
|
+
f"amulet-io{AMULET_IO_REQUIREMENT}",
|
|
85
|
+
f"amulet-zlib{AMULET_ZLIB_REQUIREMENT}",
|
|
86
|
+
f"amulet-nbt{AMULET_NBT_REQUIREMENT}",
|
|
87
|
+
] * (not os.environ.get("AMULET_SKIP_COMPILE", None))
|
|
65
88
|
|
|
66
89
|
|
|
67
90
|
def get_runtime_dependencies() -> list[str]:
|
|
68
91
|
return [
|
|
69
92
|
f"amulet-compiler-target{AMULET_COMPILER_TARGET_REQUIREMENT}",
|
|
70
|
-
f"numpy{NUMPY_REQUIREMENT}",
|
|
71
93
|
f"amulet-compiler-version{AMULET_COMPILER_VERSION_REQUIREMENT}",
|
|
94
|
+
f"pybind11{PYBIND11_REQUIREMENT}",
|
|
95
|
+
f"amulet-pybind11-extensions{AMULET_PYBIND11_EXTENSIONS_REQUIREMENT}",
|
|
72
96
|
f"amulet-io{AMULET_IO_REQUIREMENT}",
|
|
97
|
+
f"amulet-zlib{AMULET_ZLIB_REQUIREMENT}",
|
|
73
98
|
f"amulet-nbt{AMULET_NBT_REQUIREMENT}",
|
|
99
|
+
f"numpy{NUMPY_REQUIREMENT}",
|
|
74
100
|
]
|
|
@@ -14,7 +14,6 @@ import versioneer
|
|
|
14
14
|
|
|
15
15
|
import requirements
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
if (
|
|
19
18
|
os.environ.get("AMULET_FREEZE_COMPILER", None)
|
|
20
19
|
and sys.platform == "darwin"
|
|
@@ -27,8 +26,6 @@ def fix_path(path: str) -> str:
|
|
|
27
26
|
return os.path.realpath(path).replace(os.sep, "/")
|
|
28
27
|
|
|
29
28
|
|
|
30
|
-
dependencies = requirements.get_runtime_dependencies()
|
|
31
|
-
|
|
32
29
|
cmdclass: dict[str, type[Command]] = versioneer.get_cmdclass()
|
|
33
30
|
|
|
34
31
|
|
|
@@ -60,12 +57,14 @@ class CMakeBuild(cmdclass.get("build_ext", build_ext)):
|
|
|
60
57
|
if platform.machine() == "arm64":
|
|
61
58
|
platform_args.append("-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64")
|
|
62
59
|
|
|
60
|
+
if subprocess.run(["cmake", "--version"]).returncode:
|
|
61
|
+
raise RuntimeError("Could not find cmake")
|
|
63
62
|
if subprocess.run(
|
|
64
63
|
[
|
|
65
64
|
"cmake",
|
|
66
65
|
*platform_args,
|
|
67
66
|
f"-DPYTHON_EXECUTABLE={sys.executable}",
|
|
68
|
-
f"-Dpybind11_DIR={pybind11.get_cmake_dir()
|
|
67
|
+
f"-Dpybind11_DIR={fix_path(pybind11.get_cmake_dir())}",
|
|
69
68
|
f"-Damulet_pybind11_extensions_DIR={fix_path(amulet.pybind11_extensions.__path__[0])}",
|
|
70
69
|
f"-Damulet_io_DIR={fix_path(amulet.io.__path__[0])}",
|
|
71
70
|
f"-Damulet_nbt_DIR={fix_path(amulet.nbt.__path__[0])}",
|
|
@@ -76,15 +75,15 @@ class CMakeBuild(cmdclass.get("build_ext", build_ext)):
|
|
|
76
75
|
"build",
|
|
77
76
|
]
|
|
78
77
|
).returncode:
|
|
79
|
-
raise RuntimeError("Error configuring
|
|
78
|
+
raise RuntimeError("Error configuring amulet-core")
|
|
80
79
|
if subprocess.run(
|
|
81
80
|
["cmake", "--build", "build", "--config", "Release"]
|
|
82
81
|
).returncode:
|
|
83
|
-
raise RuntimeError("Error installing
|
|
82
|
+
raise RuntimeError("Error installing amulet-core")
|
|
84
83
|
if subprocess.run(
|
|
85
84
|
["cmake", "--install", "build", "--config", "Release"]
|
|
86
85
|
).returncode:
|
|
87
|
-
raise RuntimeError("Error installing
|
|
86
|
+
raise RuntimeError("Error installing amulet-core")
|
|
88
87
|
|
|
89
88
|
|
|
90
89
|
cmdclass["build_ext"] = CMakeBuild
|
|
@@ -98,11 +97,9 @@ def _get_version() -> str:
|
|
|
98
97
|
try:
|
|
99
98
|
with open("build/timestamp.txt", "r") as f:
|
|
100
99
|
timestamp = datetime.datetime.strptime(f.read(), date_format)
|
|
101
|
-
print("using cached timestamp")
|
|
102
100
|
except Exception:
|
|
103
101
|
timestamp = datetime.datetime(1, 1, 1)
|
|
104
102
|
if datetime.timedelta(minutes=10) < datetime.datetime.now() - timestamp:
|
|
105
|
-
print("get timestamp")
|
|
106
103
|
timestamp = datetime.datetime.now()
|
|
107
104
|
os.makedirs("build", exist_ok=True)
|
|
108
105
|
with open("build/timestamp.txt", "w") as f:
|
|
@@ -122,6 +119,7 @@ def _get_version() -> str:
|
|
|
122
119
|
setup(
|
|
123
120
|
version=_get_version(),
|
|
124
121
|
cmdclass=cmdclass,
|
|
125
|
-
ext_modules=[Extension("amulet.core._amulet_core", [])]
|
|
126
|
-
|
|
122
|
+
ext_modules=[Extension("amulet.core._amulet_core", [])]
|
|
123
|
+
* (not os.environ.get("AMULET_SKIP_COMPILE", None)),
|
|
124
|
+
install_requires=requirements.get_runtime_dependencies(),
|
|
127
125
|
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import logging
|
|
1
|
+
import logging as _logging
|
|
2
2
|
|
|
3
3
|
from . import _version
|
|
4
4
|
|
|
5
5
|
__version__ = _version.get_versions()["version"]
|
|
6
6
|
|
|
7
7
|
# init a default logger
|
|
8
|
-
|
|
8
|
+
_logging.basicConfig(level=_logging.INFO, format="%(levelname)s - %(message)s")
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def _init() -> None:
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-06-
|
|
11
|
+
"date": "2025-06-24T15:49:50+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.0.
|
|
14
|
+
"full-revisionid": "2360770e8508f0ae742ac79673ff6f84b539349f",
|
|
15
|
+
"version": "2.0.3a0"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amulet-core
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3a0
|
|
4
4
|
Summary: A Python library for reading/writing Minecraft's various save formats.
|
|
5
5
|
Author: James Clare, Ben Gothard
|
|
6
6
|
Project-URL: Homepage, https://www.amuletmc.com
|
|
@@ -10,11 +10,14 @@ Classifier: Programming Language :: Python :: 3
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Requires-Python: >=3.11
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
|
-
Requires-Dist: amulet-compiler-target==
|
|
14
|
-
Requires-Dist: numpy~=2.0
|
|
13
|
+
Requires-Dist: amulet-compiler-target==2.0
|
|
15
14
|
Requires-Dist: amulet-compiler-version==3.0.0
|
|
15
|
+
Requires-Dist: pybind11==2.13.6
|
|
16
|
+
Requires-Dist: amulet-pybind11-extensions~=1.1.0.0a0
|
|
16
17
|
Requires-Dist: amulet-io~=1.0
|
|
17
|
-
Requires-Dist: amulet-
|
|
18
|
+
Requires-Dist: amulet-zlib~=1.0.0.0a4
|
|
19
|
+
Requires-Dist: amulet-nbt~=5.0.0.0a4
|
|
20
|
+
Requires-Dist: numpy~=2.0
|
|
18
21
|
Provides-Extra: docs
|
|
19
22
|
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
20
23
|
Requires-Dist: sphinx-autodoc-typehints>=1.3.0; extra == "docs"
|
|
@@ -24,7 +27,6 @@ Requires-Dist: setuptools>=42; extra == "dev"
|
|
|
24
27
|
Requires-Dist: versioneer; extra == "dev"
|
|
25
28
|
Requires-Dist: packaging; extra == "dev"
|
|
26
29
|
Requires-Dist: wheel; extra == "dev"
|
|
27
|
-
Requires-Dist: pybind11==2.13.6; extra == "dev"
|
|
28
30
|
Requires-Dist: amulet_pybind11_extensions~=1.0; extra == "dev"
|
|
29
31
|
Requires-Dist: pybind11_stubgen>=2.5.4; extra == "dev"
|
|
30
32
|
Requires-Dist: black>=22.3; extra == "dev"
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
amulet-compiler-target==
|
|
2
|
-
numpy~=2.0
|
|
1
|
+
amulet-compiler-target==2.0
|
|
3
2
|
amulet-compiler-version==3.0.0
|
|
3
|
+
pybind11==2.13.6
|
|
4
|
+
amulet-pybind11-extensions~=1.1.0.0a0
|
|
4
5
|
amulet-io~=1.0
|
|
5
|
-
amulet-
|
|
6
|
+
amulet-zlib~=1.0.0.0a4
|
|
7
|
+
amulet-nbt~=5.0.0.0a4
|
|
8
|
+
numpy~=2.0
|
|
6
9
|
|
|
7
10
|
[dev]
|
|
8
11
|
setuptools>=42
|
|
9
12
|
versioneer
|
|
10
13
|
packaging
|
|
11
14
|
wheel
|
|
12
|
-
pybind11==2.13.6
|
|
13
15
|
amulet_pybind11_extensions~=1.0
|
|
14
16
|
pybind11_stubgen>=2.5.4
|
|
15
17
|
black>=22.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/__pyinstaller/hook-amulet.core.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/block_entity/block_entity.py.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/biome_3d_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/biome_3d_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.py.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/block_component.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.py.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/chunk/component/section_array_map.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amulet_core-2.0.2a1 → amulet_core-2.0.3a0}/src/amulet/core/selection/__init_selection.py.cpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|