amulet-core 2.0a9__tar.gz → 2.0.1a0__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.0a9/src/amulet_core.egg-info → amulet_core-2.0.1a0}/PKG-INFO +4 -5
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/build_requires.py +3 -2
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/pyproject.toml +3 -2
- amulet_core-2.0.1a0/requirements.py +70 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/setup.py +28 -67
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/_version.py +3 -3
- {amulet_core-2.0a9 → amulet_core-2.0.1a0/src/amulet_core.egg-info}/PKG-INFO +4 -5
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet_core.egg-info/requires.txt +3 -4
- amulet_core-2.0a9/requirements.py +0 -46
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/CMakeLists.txt +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/MANIFEST.in +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/README.md +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/setup.cfg +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/__init__.py +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/__pyinstaller/__init__.py +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/__pyinstaller/hook-amulet.core.py +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/_amulet_core.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/_amulet_core.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/amulet_coreConfig.cmake +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/biome/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/biome/biome.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/biome/biome.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/biome/biome.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block/block.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block/block.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block/block.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block_entity/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block_entity/block_entity.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block_entity/block_entity.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/block_entity/block_entity.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/chunk.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/chunk.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/chunk.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/__init_chunk_components.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/biome_3d_component.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/biome_3d_component.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_entity_component.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_entity_component.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/dll.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/entity/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/entity/entity.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/entity/entity.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/entity/entity.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/__init_palette.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/biome_palette.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/biome_palette.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/biome_palette.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/biome_palette.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/block_palette.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/block_palette.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/block_palette.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/palette/block_palette.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/py.typed +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/__init_selection.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/box.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/box.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/box.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/group.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/group.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/selection/group.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/version/__init__.pyi +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/version/version.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/version/version.hpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/version/version.py.cpp +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet_core.egg-info/SOURCES.txt +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet_core.egg-info/dependency_links.txt +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet_core.egg-info/entry_points.txt +0 -0
- {amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet_core.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amulet-core
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.0.1a0
|
|
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
|
|
@@ -12,10 +12,9 @@ Requires-Python: >=3.11
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
Requires-Dist: amulet-compiler-target==1.0
|
|
14
14
|
Requires-Dist: numpy~=2.0
|
|
15
|
-
Requires-Dist: amulet-compiler-version==
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist: amulet_nbt==4.0a20
|
|
15
|
+
Requires-Dist: amulet-compiler-version==3.0.0
|
|
16
|
+
Requires-Dist: amulet-io~=1.0
|
|
17
|
+
Requires-Dist: amulet-nbt~=4.0.0.0a24
|
|
19
18
|
Provides-Extra: docs
|
|
20
19
|
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
21
20
|
Requires-Dist: sphinx-autodoc-typehints>=1.3.0; extra == "docs"
|
|
@@ -10,7 +10,8 @@ def get_requires_for_build_wheel(
|
|
|
10
10
|
) -> list[str]:
|
|
11
11
|
return [
|
|
12
12
|
*build_meta.get_requires_for_build_wheel(config_settings),
|
|
13
|
-
|
|
13
|
+
"wheel",
|
|
14
|
+
*requirements.get_build_dependencies(),
|
|
14
15
|
]
|
|
15
16
|
|
|
16
17
|
|
|
@@ -19,5 +20,5 @@ def get_requires_for_build_editable(
|
|
|
19
20
|
) -> list[str]:
|
|
20
21
|
return [
|
|
21
22
|
*build_meta.get_requires_for_build_editable(config_settings),
|
|
22
|
-
*requirements.
|
|
23
|
+
*requirements.get_build_dependencies(),
|
|
23
24
|
]
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
requires = [
|
|
3
3
|
"setuptools>=42",
|
|
4
4
|
"versioneer",
|
|
5
|
-
"packaging"
|
|
5
|
+
"packaging",
|
|
6
|
+
"amulet-compiler-version@git+https://github.com/Amulet-Team/Amulet-Compiler-Version.git@3.0"
|
|
6
7
|
]
|
|
7
8
|
build-backend = "build_requires"
|
|
8
9
|
backend-path = [""]
|
|
@@ -73,4 +74,4 @@ style = "pep440"
|
|
|
73
74
|
versionfile_source = "src/amulet/core/_version.py"
|
|
74
75
|
versionfile_build = "amulet/core/_version.py"
|
|
75
76
|
tag_prefix = ""
|
|
76
|
-
parentdir_prefix = "amulet-"
|
|
77
|
+
parentdir_prefix = "amulet-core-"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import amulet_compiler_version
|
|
3
|
+
from packaging.version import Version
|
|
4
|
+
|
|
5
|
+
AMULET_COMPILER_TARGET_REQUIREMENT = "==1.0"
|
|
6
|
+
AMULET_COMPILER_VERSION_REQUIREMENT = "==3.0.0"
|
|
7
|
+
|
|
8
|
+
PYBIND11_REQUIREMENT = "==2.13.6"
|
|
9
|
+
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = "~=1.0"
|
|
10
|
+
|
|
11
|
+
AMULET_IO_REQUIREMENT = "~=1.0"
|
|
12
|
+
# AMULET_NBT_REQUIREMENT = "~=4.0"
|
|
13
|
+
AMULET_NBT_REQUIREMENT = "~=4.0.0.0a24"
|
|
14
|
+
NUMPY_REQUIREMENT = "~=2.0"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def get_specifier_set(version_str: str, compiler_suffix_: str = "") -> str:
|
|
18
|
+
"""
|
|
19
|
+
version_str: The PEP 440 version number of the library.
|
|
20
|
+
compiler_suffix_: Only specified if it is a compiled library and the compiler is being frozen.
|
|
21
|
+
"""
|
|
22
|
+
version = Version(version_str)
|
|
23
|
+
if version.epoch != 0 or version.is_devrelease or version.is_postrelease:
|
|
24
|
+
raise RuntimeError(f"Unsupported version format. {version_str}")
|
|
25
|
+
|
|
26
|
+
major, minor, patch, fix, *_ = version.release + (0, 0, 0, 0)
|
|
27
|
+
|
|
28
|
+
return f"~={major}.{minor}.{patch}.{fix}{compiler_suffix_}{''.join(map(str, version.pre or ()))}"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
32
|
+
AMULET_COMPILER_VERSION_REQUIREMENT = f"=={amulet_compiler_version.__version__}"
|
|
33
|
+
|
|
34
|
+
compiler_suffix = f".{'.'.join(amulet_compiler_version.__version__.split('.')[3:])}"
|
|
35
|
+
|
|
36
|
+
try:
|
|
37
|
+
import amulet.io
|
|
38
|
+
except ImportError:
|
|
39
|
+
pass
|
|
40
|
+
else:
|
|
41
|
+
AMULET_IO_REQUIREMENT = get_specifier_set(amulet.io.__version__)
|
|
42
|
+
|
|
43
|
+
try:
|
|
44
|
+
import amulet.nbt
|
|
45
|
+
except ImportError:
|
|
46
|
+
pass
|
|
47
|
+
else:
|
|
48
|
+
AMULET_NBT_REQUIREMENT = get_specifier_set(
|
|
49
|
+
amulet.nbt.__version__, compiler_suffix
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def get_build_dependencies() -> list:
|
|
54
|
+
return [
|
|
55
|
+
f"pybind11{PYBIND11_REQUIREMENT}",
|
|
56
|
+
f"amulet_pybind11_extensions{AMULET_PYBIND11_EXTENSIONS_REQUIREMENT}",
|
|
57
|
+
f"amulet_nbt{AMULET_NBT_REQUIREMENT}",
|
|
58
|
+
f"amulet_io{AMULET_IO_REQUIREMENT}",
|
|
59
|
+
f"amulet-compiler-version{AMULET_COMPILER_VERSION_REQUIREMENT}",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def get_runtime_dependencies() -> list[str]:
|
|
64
|
+
return [
|
|
65
|
+
f"amulet-compiler-target{AMULET_COMPILER_TARGET_REQUIREMENT}",
|
|
66
|
+
f"numpy{NUMPY_REQUIREMENT}",
|
|
67
|
+
f"amulet-compiler-version{AMULET_COMPILER_VERSION_REQUIREMENT}",
|
|
68
|
+
f"amulet-io{AMULET_IO_REQUIREMENT}",
|
|
69
|
+
f"amulet-nbt{AMULET_NBT_REQUIREMENT}",
|
|
70
|
+
]
|
|
@@ -2,83 +2,23 @@ import os
|
|
|
2
2
|
import subprocess
|
|
3
3
|
import sys
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
import requirements
|
|
6
5
|
|
|
7
6
|
from setuptools import setup, Extension, Command
|
|
8
7
|
from setuptools.command.build_ext import build_ext
|
|
8
|
+
|
|
9
9
|
from packaging.version import Version
|
|
10
10
|
|
|
11
11
|
import versioneer
|
|
12
12
|
|
|
13
|
+
import requirements
|
|
14
|
+
import amulet_compiler_version
|
|
15
|
+
|
|
13
16
|
|
|
14
17
|
def fix_path(path: str) -> str:
|
|
15
18
|
return os.path.realpath(path).replace(os.sep, "/")
|
|
16
19
|
|
|
17
20
|
|
|
18
|
-
dependencies = requirements.
|
|
19
|
-
setup_args = {}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
def add_dependency(lib_name: str, version_str: str) -> None:
|
|
23
|
-
version = Version(version_str)
|
|
24
|
-
if version.is_prerelease:
|
|
25
|
-
# Breaking API changes can be made between pre-release versions. Pin to this exact release.
|
|
26
|
-
dependencies.append(f"{lib_name}=={version_str}")
|
|
27
|
-
else:
|
|
28
|
-
# Major - breaking API change. Dependents must be updated and recompiled.
|
|
29
|
-
major = version.major
|
|
30
|
-
# Minor - backwards compatible API change. Dependents must be recompiled.
|
|
31
|
-
minor = version.minor
|
|
32
|
-
# Patch - API unchanged. Dependents must be recompiled.
|
|
33
|
-
patch = version.micro
|
|
34
|
-
# Fix - API unchanged. Dependents do not need to be recompiled.
|
|
35
|
-
dependencies.append(f"{lib_name}~={major}.{minor}.{patch}.0")
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
try:
|
|
39
|
-
import amulet_compiler_version
|
|
40
|
-
except ImportError:
|
|
41
|
-
dependencies.append(
|
|
42
|
-
f"amulet-compiler-version{requirements.AMULET_COMPILER_VERSION_REQUIREMENT}"
|
|
43
|
-
)
|
|
44
|
-
else:
|
|
45
|
-
if os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
46
|
-
dependencies.append(
|
|
47
|
-
f"amulet-compiler-version=={amulet_compiler_version.__version__}"
|
|
48
|
-
)
|
|
49
|
-
setup_args["options"] = {
|
|
50
|
-
"bdist_wheel": {
|
|
51
|
-
"build_number": f"1.{amulet_compiler_version.compiler_id}.{amulet_compiler_version.compiler_version}"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
else:
|
|
55
|
-
dependencies.append(
|
|
56
|
-
f"amulet-compiler-version{requirements.AMULET_COMPILER_VERSION_REQUIREMENT}"
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
try:
|
|
60
|
-
import amulet.pybind11_extensions
|
|
61
|
-
except ImportError:
|
|
62
|
-
dependencies.append(
|
|
63
|
-
f"amulet_pybind11_extensions{requirements.AMULET_PYBIND11_EXTENSIONS_REQUIREMENT}"
|
|
64
|
-
)
|
|
65
|
-
else:
|
|
66
|
-
add_dependency("amulet_pybind11_extensions", amulet.pybind11_extensions.__version__)
|
|
67
|
-
|
|
68
|
-
try:
|
|
69
|
-
import amulet.io
|
|
70
|
-
except ImportError:
|
|
71
|
-
dependencies.append(f"amulet_io{requirements.AMULET_IO_REQUIREMENT}")
|
|
72
|
-
else:
|
|
73
|
-
add_dependency("amulet_io", amulet.io.__version__)
|
|
74
|
-
|
|
75
|
-
try:
|
|
76
|
-
import amulet.nbt
|
|
77
|
-
except ImportError:
|
|
78
|
-
dependencies.append(f"amulet_nbt{requirements.AMULET_NBT_REQUIREMENT}")
|
|
79
|
-
else:
|
|
80
|
-
add_dependency("amulet_nbt", amulet.nbt.__version__)
|
|
81
|
-
|
|
21
|
+
dependencies = requirements.get_runtime_dependencies()
|
|
82
22
|
|
|
83
23
|
cmdclass: dict[str, type[Command]] = versioneer.get_cmdclass()
|
|
84
24
|
|
|
@@ -138,10 +78,31 @@ class CMakeBuild(cmdclass.get("build_ext", build_ext)):
|
|
|
138
78
|
cmdclass["build_ext"] = CMakeBuild
|
|
139
79
|
|
|
140
80
|
|
|
81
|
+
def _get_version() -> str:
|
|
82
|
+
version_str: str = versioneer.get_version()
|
|
83
|
+
|
|
84
|
+
if os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
85
|
+
# Add the compiler version to the library version so that pip sees it as a distinct version.
|
|
86
|
+
compiler_version_str = ".".join(
|
|
87
|
+
amulet_compiler_version.__version__.split(".")[3:]
|
|
88
|
+
)
|
|
89
|
+
if compiler_version_str:
|
|
90
|
+
version = Version(version_str)
|
|
91
|
+
if version.epoch != 0 or version.is_devrelease or version.is_postrelease:
|
|
92
|
+
raise RuntimeError(f"Unsupported version format. {version_str}")
|
|
93
|
+
major, minor, patch, fix, *_ = version.release + (0, 0, 0, 0)
|
|
94
|
+
pre = "".join(map(str, version.pre)) if version.is_prerelease else ""
|
|
95
|
+
local = f"+{version.local}" if version.local else ""
|
|
96
|
+
version_str = (
|
|
97
|
+
f"{major}.{minor}.{patch}.{fix}.{compiler_version_str}{pre}{local}"
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
return version_str
|
|
101
|
+
|
|
102
|
+
|
|
141
103
|
setup(
|
|
142
|
-
version=
|
|
104
|
+
version=_get_version(),
|
|
143
105
|
cmdclass=cmdclass,
|
|
144
106
|
ext_modules=[Extension("amulet.core._amulet_core", [])],
|
|
145
107
|
install_requires=dependencies,
|
|
146
|
-
**setup_args,
|
|
147
108
|
)
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-05-
|
|
11
|
+
"date": "2025-05-28T10:06:43+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "2.
|
|
14
|
+
"full-revisionid": "25debe9d8c82b3c964e68035a723bed4a6f2e2e4",
|
|
15
|
+
"version": "2.0.1a0"
|
|
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.
|
|
3
|
+
Version: 2.0.1a0
|
|
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
|
|
@@ -12,10 +12,9 @@ Requires-Python: >=3.11
|
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
Requires-Dist: amulet-compiler-target==1.0
|
|
14
14
|
Requires-Dist: numpy~=2.0
|
|
15
|
-
Requires-Dist: amulet-compiler-version==
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist: amulet_nbt==4.0a20
|
|
15
|
+
Requires-Dist: amulet-compiler-version==3.0.0
|
|
16
|
+
Requires-Dist: amulet-io~=1.0
|
|
17
|
+
Requires-Dist: amulet-nbt~=4.0.0.0a24
|
|
19
18
|
Provides-Extra: docs
|
|
20
19
|
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
21
20
|
Requires-Dist: sphinx-autodoc-typehints>=1.3.0; extra == "docs"
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
from typing import Union, Mapping
|
|
2
|
-
import os
|
|
3
|
-
|
|
4
|
-
AMULET_COMPILER_VERSION_REQUIREMENT = "==1.3.0"
|
|
5
|
-
# AMULET_NBT_REQUIREMENT = "~=4.0"
|
|
6
|
-
AMULET_NBT_REQUIREMENT = "==4.0a20"
|
|
7
|
-
AMULET_PYBIND11_EXTENSIONS_REQUIREMENT = "~=1.0"
|
|
8
|
-
AMULET_IO_REQUIREMENT = "~=1.0"
|
|
9
|
-
|
|
10
|
-
_compile_dependencies: dict[str, str] = {
|
|
11
|
-
"wheel": "",
|
|
12
|
-
"pybind11": "==2.13.6",
|
|
13
|
-
"amulet_pybind11_extensions": AMULET_PYBIND11_EXTENSIONS_REQUIREMENT,
|
|
14
|
-
"amulet_nbt": AMULET_NBT_REQUIREMENT,
|
|
15
|
-
"amulet_io": AMULET_IO_REQUIREMENT,
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
fixed_runtime_dependencies_data: dict[str, str] = {
|
|
19
|
-
"amulet-compiler-target": "==1.0",
|
|
20
|
-
"numpy": "~=2.0",
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def get_compile_dependencies_data(
|
|
25
|
-
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
26
|
-
) -> dict[str, str]:
|
|
27
|
-
reqs = _compile_dependencies.copy()
|
|
28
|
-
if (
|
|
29
|
-
config_settings and config_settings.get("AMULET_FREEZE_COMPILER")
|
|
30
|
-
) or os.environ.get("AMULET_FREEZE_COMPILER", None):
|
|
31
|
-
reqs["amulet-compiler-version"] = (
|
|
32
|
-
"@git+https://github.com/Amulet-Team/Amulet-Compiler-Version.git@1.0"
|
|
33
|
-
)
|
|
34
|
-
return reqs
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
def get_compile_dependencies(
|
|
38
|
-
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
39
|
-
) -> list:
|
|
40
|
-
return [
|
|
41
|
-
f"{k}{v}" for k, v in get_compile_dependencies_data(config_settings).items()
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def get_fixed_runtime_dependencies() -> list[str]:
|
|
46
|
-
return [f"{k}{v}" for k, v in fixed_runtime_dependencies_data.items()]
|
|
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
|
|
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.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/biome_3d_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/biome_3d_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.py.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_component.pyi
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_entity_component.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/block_entity_component.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.hpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/src/amulet/core/chunk/component/section_array_map.py.cpp
RENAMED
|
File without changes
|
{amulet_core-2.0a9 → amulet_core-2.0.1a0}/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
|
|
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
|