amulet-core 2.0.1a0__tar.gz → 2.0.1a2__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.1a0 → amulet_core-2.0.1a2}/CMakeLists.txt +111 -111
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/MANIFEST.in +8 -8
- {amulet_core-2.0.1a0/src/amulet_core.egg-info → amulet_core-2.0.1a2}/PKG-INFO +108 -108
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/README.md +71 -71
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/build_requires.py +24 -24
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/pyproject.toml +77 -77
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/requirements.py +65 -70
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/setup.cfg +4 -4
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/setup.py +127 -108
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/__init__.py +36 -36
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/__pyinstaller/__init__.py +2 -2
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/__pyinstaller/hook-amulet.core.py +4 -4
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/_amulet_core.py.cpp +40 -40
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/_amulet_core.pyi +7 -7
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/_version.py +21 -21
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/amulet_coreConfig.cmake +18 -18
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/biome/__init__.pyi +75 -75
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/biome/biome.cpp +41 -41
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/biome/biome.hpp +53 -53
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/biome/biome.py.cpp +108 -108
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block/__init__.pyi +270 -270
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block/block.cpp +423 -423
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block/block.hpp +156 -156
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block/block.py.cpp +345 -345
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block_entity/__init__.pyi +78 -78
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block_entity/block_entity.cpp +26 -26
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block_entity/block_entity.hpp +84 -84
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/block_entity/block_entity.py.cpp +112 -112
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/__init__.pyi +67 -67
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/chunk.cpp +50 -50
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/chunk.hpp +126 -126
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/chunk.py.cpp +113 -113
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/__init__.pyi +18 -18
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/__init_chunk_components.py.cpp +22 -22
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/biome_3d_component.cpp +45 -45
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/biome_3d_component.hpp +96 -96
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/block_component.cpp +74 -74
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/block_component.hpp +101 -101
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/block_component.py.cpp +47 -47
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/block_component.pyi +28 -28
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/block_entity_component.cpp +71 -71
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/block_entity_component.hpp +119 -119
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/section_array_map.cpp +223 -223
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/section_array_map.hpp +129 -129
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/section_array_map.py.cpp +237 -237
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/chunk/component/section_array_map.pyi +77 -77
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/dll.hpp +21 -21
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/entity/__init__.pyi +105 -105
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/entity/entity.cpp +29 -29
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/entity/entity.hpp +100 -100
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/entity/entity.py.cpp +135 -135
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/__init__.pyi +8 -8
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/__init_palette.py.cpp +23 -23
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/biome_palette.cpp +33 -33
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/biome_palette.hpp +65 -65
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/biome_palette.py.cpp +88 -88
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/biome_palette.pyi +45 -45
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/block_palette.cpp +33 -33
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/block_palette.hpp +71 -71
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/block_palette.py.cpp +88 -88
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/palette/block_palette.pyi +47 -47
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/__init__.pyi +8 -8
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/__init_selection.py.cpp +598 -598
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/box.cpp +65 -65
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/box.hpp +86 -86
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/box.pyi +215 -215
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/group.cpp +236 -236
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/group.hpp +80 -80
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/selection/group.pyi +213 -213
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/version/__init__.pyi +134 -134
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/version/version.cpp +147 -147
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/version/version.hpp +204 -204
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/version/version.py.cpp +275 -275
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2/src/amulet_core.egg-info}/PKG-INFO +108 -108
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet_core.egg-info/SOURCES.txt +77 -77
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet_core.egg-info/requires.txt +1 -1
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet/core/py.typed +0 -0
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet_core.egg-info/dependency_links.txt +0 -0
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet_core.egg-info/entry_points.txt +0 -0
- {amulet_core-2.0.1a0 → amulet_core-2.0.1a2}/src/amulet_core.egg-info/top_level.txt +0 -0
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
cmake_minimum_required(VERSION 3.13)
|
|
2
|
-
|
|
3
|
-
project(amulet_core LANGUAGES CXX)
|
|
4
|
-
|
|
5
|
-
# Set C++20
|
|
6
|
-
set(CMAKE_CXX_STANDARD 20)
|
|
7
|
-
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
8
|
-
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
9
|
-
|
|
10
|
-
# Set platform variables
|
|
11
|
-
if (WIN32)
|
|
12
|
-
# set windows 7 as the minimum version
|
|
13
|
-
add_definitions(-D_WIN32_WINNT=0x0601)
|
|
14
|
-
elseif(APPLE)
|
|
15
|
-
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
|
16
|
-
else()
|
|
17
|
-
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
18
|
-
endif()
|
|
19
|
-
|
|
20
|
-
if (MSVC)
|
|
21
|
-
add_definitions("/MP")
|
|
22
|
-
endif()
|
|
23
|
-
|
|
24
|
-
include(FetchContent)
|
|
25
|
-
|
|
26
|
-
# Add zlib
|
|
27
|
-
set(ZLIB_BUILD_EXAMPLES OFF)
|
|
28
|
-
FetchContent_Declare(
|
|
29
|
-
zlib
|
|
30
|
-
GIT_REPOSITORY https://github.com/madler/zlib.git
|
|
31
|
-
GIT_TAG 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
|
|
32
|
-
)
|
|
33
|
-
FetchContent_MakeAvailable(zlib)
|
|
34
|
-
set(ZLIB_ROOT ${zlib_SOURCE_DIR})
|
|
35
|
-
set(ZLIB_USE_STATIC_LIBS ON)
|
|
36
|
-
set(ZLIB_LIBRARY ${INSTALL_LIB_DIR})
|
|
37
|
-
find_package(ZLIB REQUIRED)
|
|
38
|
-
target_compile_definitions(zlibstatic PUBLIC ZLIB_CONST)
|
|
39
|
-
|
|
40
|
-
# Add lz4
|
|
41
|
-
FetchContent_Declare(
|
|
42
|
-
lz4
|
|
43
|
-
GIT_REPOSITORY https://github.com/lz4/lz4.git
|
|
44
|
-
GIT_TAG ebb370ca83af193212df4dcbadcc5d87bc0de2f0
|
|
45
|
-
)
|
|
46
|
-
FetchContent_MakeAvailable(lz4)
|
|
47
|
-
set(LZ4_BUILD_CLI OFF)
|
|
48
|
-
add_subdirectory(${lz4_SOURCE_DIR}/build/cmake)
|
|
49
|
-
|
|
50
|
-
# Add pybind11
|
|
51
|
-
find_package(pybind11 CONFIG REQUIRED)
|
|
52
|
-
|
|
53
|
-
# Add Amulet libraries
|
|
54
|
-
find_package(amulet_pybind11_extensions CONFIG REQUIRED)
|
|
55
|
-
find_package(amulet_io CONFIG REQUIRED)
|
|
56
|
-
find_package(amulet_nbt CONFIG REQUIRED)
|
|
57
|
-
|
|
58
|
-
# Find C++ files
|
|
59
|
-
file(REAL_PATH src SOURCE_PATH)
|
|
60
|
-
file(GLOB_RECURSE EXTENSION_SOURCES LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.py.cpp)
|
|
61
|
-
file(GLOB_RECURSE EXTENSION_HEADERS LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.py.hpp)
|
|
62
|
-
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.cpp)
|
|
63
|
-
file(GLOB_RECURSE HEADERS LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.hpp)
|
|
64
|
-
list(REMOVE_ITEM SOURCES ${EXTENSION_SOURCES})
|
|
65
|
-
list(REMOVE_ITEM HEADERS ${EXTENSION_HEADERS})
|
|
66
|
-
|
|
67
|
-
# Add implementation
|
|
68
|
-
add_library(amulet_core SHARED)
|
|
69
|
-
target_link_libraries( amulet_core PRIVATE zlibstatic )
|
|
70
|
-
target_link_libraries( amulet_core PRIVATE lz4_static )
|
|
71
|
-
target_link_libraries( amulet_core PRIVATE amulet_io )
|
|
72
|
-
target_link_libraries( amulet_core PRIVATE amulet_nbt )
|
|
73
|
-
target_compile_definitions(amulet_core PRIVATE ExportAmuletCore)
|
|
74
|
-
target_include_directories(amulet_core PUBLIC ${SOURCE_PATH})
|
|
75
|
-
target_sources(amulet_core PRIVATE ${SOURCES} ${HEADERS})
|
|
76
|
-
foreach(FILE ${SOURCES} ${HEADERS})
|
|
77
|
-
file(RELATIVE_PATH REL_PATH ${SOURCE_PATH} ${FILE})
|
|
78
|
-
get_filename_component(GROUP ${REL_PATH} DIRECTORY)
|
|
79
|
-
string(REPLACE "/" "\\" GROUP ${GROUP})
|
|
80
|
-
source_group(${GROUP} FILES ${FILE})
|
|
81
|
-
endforeach()
|
|
82
|
-
|
|
83
|
-
# Add python extension
|
|
84
|
-
pybind11_add_module(_amulet_core)
|
|
85
|
-
target_link_libraries( _amulet_core PRIVATE amulet_pybind11_extensions )
|
|
86
|
-
target_link_libraries( _amulet_core PRIVATE amulet_io )
|
|
87
|
-
target_link_libraries( _amulet_core PRIVATE amulet_nbt )
|
|
88
|
-
target_link_libraries( _amulet_core PRIVATE amulet_core )
|
|
89
|
-
target_compile_definitions(_amulet_core PRIVATE PYBIND11_DETAILED_ERROR_MESSAGES)
|
|
90
|
-
target_compile_definitions(_amulet_core PRIVATE PYBIND11_VERSION="${pybind11_VERSION}")
|
|
91
|
-
target_compile_definitions(_amulet_core PRIVATE COMPILER_ID="${CMAKE_CXX_COMPILER_ID}")
|
|
92
|
-
target_compile_definitions(_amulet_core PRIVATE COMPILER_VERSION="${CMAKE_CXX_COMPILER_VERSION}")
|
|
93
|
-
target_sources(_amulet_core PRIVATE ${EXTENSION_SOURCES} ${EXTENSION_HEADERS})
|
|
94
|
-
foreach(FILE ${EXTENSION_SOURCES} ${EXTENSION_HEADERS})
|
|
95
|
-
file(RELATIVE_PATH REL_PATH ${SOURCE_PATH} ${FILE})
|
|
96
|
-
get_filename_component(GROUP ${REL_PATH} DIRECTORY)
|
|
97
|
-
string(REPLACE "/" "\\" GROUP ${GROUP})
|
|
98
|
-
source_group(${GROUP} FILES ${FILE})
|
|
99
|
-
endforeach()
|
|
100
|
-
|
|
101
|
-
if(NOT DEFINED AMULET_CORE_EXT_DIR)
|
|
102
|
-
set(AMULET_CORE_EXT_DIR ${amulet_core_DIR})
|
|
103
|
-
endif()
|
|
104
|
-
|
|
105
|
-
# Install
|
|
106
|
-
install(TARGETS amulet_core DESTINATION ${amulet_core_DIR})
|
|
107
|
-
install(TARGETS _amulet_core DESTINATION ${AMULET_CORE_EXT_DIR})
|
|
108
|
-
|
|
109
|
-
if (DEFINED BUILD_AMULET_CORE_TESTS)
|
|
110
|
-
add_subdirectory(tests)
|
|
111
|
-
endif()
|
|
1
|
+
cmake_minimum_required(VERSION 3.13)
|
|
2
|
+
|
|
3
|
+
project(amulet_core LANGUAGES CXX)
|
|
4
|
+
|
|
5
|
+
# Set C++20
|
|
6
|
+
set(CMAKE_CXX_STANDARD 20)
|
|
7
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
8
|
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
9
|
+
|
|
10
|
+
# Set platform variables
|
|
11
|
+
if (WIN32)
|
|
12
|
+
# set windows 7 as the minimum version
|
|
13
|
+
add_definitions(-D_WIN32_WINNT=0x0601)
|
|
14
|
+
elseif(APPLE)
|
|
15
|
+
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
|
16
|
+
else()
|
|
17
|
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
18
|
+
endif()
|
|
19
|
+
|
|
20
|
+
if (MSVC)
|
|
21
|
+
add_definitions("/MP")
|
|
22
|
+
endif()
|
|
23
|
+
|
|
24
|
+
include(FetchContent)
|
|
25
|
+
|
|
26
|
+
# Add zlib
|
|
27
|
+
set(ZLIB_BUILD_EXAMPLES OFF)
|
|
28
|
+
FetchContent_Declare(
|
|
29
|
+
zlib
|
|
30
|
+
GIT_REPOSITORY https://github.com/madler/zlib.git
|
|
31
|
+
GIT_TAG 51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
|
|
32
|
+
)
|
|
33
|
+
FetchContent_MakeAvailable(zlib)
|
|
34
|
+
set(ZLIB_ROOT ${zlib_SOURCE_DIR})
|
|
35
|
+
set(ZLIB_USE_STATIC_LIBS ON)
|
|
36
|
+
set(ZLIB_LIBRARY ${INSTALL_LIB_DIR})
|
|
37
|
+
find_package(ZLIB REQUIRED)
|
|
38
|
+
target_compile_definitions(zlibstatic PUBLIC ZLIB_CONST)
|
|
39
|
+
|
|
40
|
+
# Add lz4
|
|
41
|
+
FetchContent_Declare(
|
|
42
|
+
lz4
|
|
43
|
+
GIT_REPOSITORY https://github.com/lz4/lz4.git
|
|
44
|
+
GIT_TAG ebb370ca83af193212df4dcbadcc5d87bc0de2f0
|
|
45
|
+
)
|
|
46
|
+
FetchContent_MakeAvailable(lz4)
|
|
47
|
+
set(LZ4_BUILD_CLI OFF)
|
|
48
|
+
add_subdirectory(${lz4_SOURCE_DIR}/build/cmake)
|
|
49
|
+
|
|
50
|
+
# Add pybind11
|
|
51
|
+
find_package(pybind11 CONFIG REQUIRED)
|
|
52
|
+
|
|
53
|
+
# Add Amulet libraries
|
|
54
|
+
find_package(amulet_pybind11_extensions CONFIG REQUIRED)
|
|
55
|
+
find_package(amulet_io CONFIG REQUIRED)
|
|
56
|
+
find_package(amulet_nbt CONFIG REQUIRED)
|
|
57
|
+
|
|
58
|
+
# Find C++ files
|
|
59
|
+
file(REAL_PATH src SOURCE_PATH)
|
|
60
|
+
file(GLOB_RECURSE EXTENSION_SOURCES LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.py.cpp)
|
|
61
|
+
file(GLOB_RECURSE EXTENSION_HEADERS LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.py.hpp)
|
|
62
|
+
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.cpp)
|
|
63
|
+
file(GLOB_RECURSE HEADERS LIST_DIRECTORIES false ${SOURCE_PATH}/amulet/*.hpp)
|
|
64
|
+
list(REMOVE_ITEM SOURCES ${EXTENSION_SOURCES})
|
|
65
|
+
list(REMOVE_ITEM HEADERS ${EXTENSION_HEADERS})
|
|
66
|
+
|
|
67
|
+
# Add implementation
|
|
68
|
+
add_library(amulet_core SHARED)
|
|
69
|
+
target_link_libraries( amulet_core PRIVATE zlibstatic )
|
|
70
|
+
target_link_libraries( amulet_core PRIVATE lz4_static )
|
|
71
|
+
target_link_libraries( amulet_core PRIVATE amulet_io )
|
|
72
|
+
target_link_libraries( amulet_core PRIVATE amulet_nbt )
|
|
73
|
+
target_compile_definitions(amulet_core PRIVATE ExportAmuletCore)
|
|
74
|
+
target_include_directories(amulet_core PUBLIC ${SOURCE_PATH})
|
|
75
|
+
target_sources(amulet_core PRIVATE ${SOURCES} ${HEADERS})
|
|
76
|
+
foreach(FILE ${SOURCES} ${HEADERS})
|
|
77
|
+
file(RELATIVE_PATH REL_PATH ${SOURCE_PATH} ${FILE})
|
|
78
|
+
get_filename_component(GROUP ${REL_PATH} DIRECTORY)
|
|
79
|
+
string(REPLACE "/" "\\" GROUP ${GROUP})
|
|
80
|
+
source_group(${GROUP} FILES ${FILE})
|
|
81
|
+
endforeach()
|
|
82
|
+
|
|
83
|
+
# Add python extension
|
|
84
|
+
pybind11_add_module(_amulet_core)
|
|
85
|
+
target_link_libraries( _amulet_core PRIVATE amulet_pybind11_extensions )
|
|
86
|
+
target_link_libraries( _amulet_core PRIVATE amulet_io )
|
|
87
|
+
target_link_libraries( _amulet_core PRIVATE amulet_nbt )
|
|
88
|
+
target_link_libraries( _amulet_core PRIVATE amulet_core )
|
|
89
|
+
target_compile_definitions(_amulet_core PRIVATE PYBIND11_DETAILED_ERROR_MESSAGES)
|
|
90
|
+
target_compile_definitions(_amulet_core PRIVATE PYBIND11_VERSION="${pybind11_VERSION}")
|
|
91
|
+
target_compile_definitions(_amulet_core PRIVATE COMPILER_ID="${CMAKE_CXX_COMPILER_ID}")
|
|
92
|
+
target_compile_definitions(_amulet_core PRIVATE COMPILER_VERSION="${CMAKE_CXX_COMPILER_VERSION}")
|
|
93
|
+
target_sources(_amulet_core PRIVATE ${EXTENSION_SOURCES} ${EXTENSION_HEADERS})
|
|
94
|
+
foreach(FILE ${EXTENSION_SOURCES} ${EXTENSION_HEADERS})
|
|
95
|
+
file(RELATIVE_PATH REL_PATH ${SOURCE_PATH} ${FILE})
|
|
96
|
+
get_filename_component(GROUP ${REL_PATH} DIRECTORY)
|
|
97
|
+
string(REPLACE "/" "\\" GROUP ${GROUP})
|
|
98
|
+
source_group(${GROUP} FILES ${FILE})
|
|
99
|
+
endforeach()
|
|
100
|
+
|
|
101
|
+
if(NOT DEFINED AMULET_CORE_EXT_DIR)
|
|
102
|
+
set(AMULET_CORE_EXT_DIR ${amulet_core_DIR})
|
|
103
|
+
endif()
|
|
104
|
+
|
|
105
|
+
# Install
|
|
106
|
+
install(TARGETS amulet_core DESTINATION ${amulet_core_DIR})
|
|
107
|
+
install(TARGETS _amulet_core DESTINATION ${AMULET_CORE_EXT_DIR})
|
|
108
|
+
|
|
109
|
+
if (DEFINED BUILD_AMULET_CORE_TESTS)
|
|
110
|
+
add_subdirectory(tests)
|
|
111
|
+
endif()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
include build_requires.py
|
|
2
|
-
include requirements.py
|
|
3
|
-
|
|
4
|
-
recursive-include src/amulet *.cpp *.hpp *Config.cmake
|
|
5
|
-
|
|
6
|
-
include CMakeLists.txt
|
|
7
|
-
|
|
8
|
-
prune tests
|
|
1
|
+
include build_requires.py
|
|
2
|
+
include requirements.py
|
|
3
|
+
|
|
4
|
+
recursive-include src/amulet *.cpp *.hpp *Config.cmake
|
|
5
|
+
|
|
6
|
+
include CMakeLists.txt
|
|
7
|
+
|
|
8
|
+
prune tests
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: amulet-core
|
|
3
|
-
Version: 2.0.
|
|
4
|
-
Summary: A Python library for reading/writing Minecraft's various save formats.
|
|
5
|
-
Author: James Clare, Ben Gothard
|
|
6
|
-
Project-URL: Homepage, https://www.amuletmc.com
|
|
7
|
-
Project-URL: Repository, https://github.com/Amulet-Team/Amulet-Core
|
|
8
|
-
Project-URL: Issues, https://github.com/Amulet-Team/Amulet-Core/issues
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.11
|
|
12
|
-
Description-Content-Type: text/markdown
|
|
13
|
-
Requires-Dist: amulet-compiler-target==1.0
|
|
14
|
-
Requires-Dist: numpy~=2.0
|
|
15
|
-
Requires-Dist: amulet-compiler-version==3.0.0
|
|
16
|
-
Requires-Dist: amulet-io~=1.0
|
|
17
|
-
Requires-Dist: amulet-nbt~=4.0.
|
|
18
|
-
Provides-Extra: docs
|
|
19
|
-
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
20
|
-
Requires-Dist: sphinx-autodoc-typehints>=1.3.0; extra == "docs"
|
|
21
|
-
Requires-Dist: sphinx_rtd_theme>=0.3.1; extra == "docs"
|
|
22
|
-
Provides-Extra: dev
|
|
23
|
-
Requires-Dist: setuptools>=42; extra == "dev"
|
|
24
|
-
Requires-Dist: versioneer; extra == "dev"
|
|
25
|
-
Requires-Dist: packaging; extra == "dev"
|
|
26
|
-
Requires-Dist: wheel; extra == "dev"
|
|
27
|
-
Requires-Dist: pybind11[global]==2.13.6; extra == "dev"
|
|
28
|
-
Requires-Dist: amulet_pybind11_extensions~=1.0; extra == "dev"
|
|
29
|
-
Requires-Dist: pybind11_stubgen>=2.5.4; extra == "dev"
|
|
30
|
-
Requires-Dist: black>=22.3; extra == "dev"
|
|
31
|
-
Requires-Dist: isort; extra == "dev"
|
|
32
|
-
Requires-Dist: autoflake; extra == "dev"
|
|
33
|
-
Requires-Dist: mypy; extra == "dev"
|
|
34
|
-
Requires-Dist: types-pyinstaller; extra == "dev"
|
|
35
|
-
Requires-Dist: amulet-test-utils~=1.1; extra == "dev"
|
|
36
|
-
Dynamic: requires-dist
|
|
37
|
-
|
|
38
|
-
# Amulet Core
|
|
39
|
-
|
|
40
|
-

|
|
41
|
-

|
|
42
|
-

|
|
43
|
-
[](https://amulet-core.readthedocs.io)
|
|
44
|
-
|
|
45
|
-
A Python 3 library to read and write data from Minecraft's various save formats.
|
|
46
|
-
|
|
47
|
-
This library provides the main world editing functionality for Amulet Map Editor
|
|
48
|
-
|
|
49
|
-
#### If you are looking for the actual editor it can be found at [Amulet Map Editor](https://github.com/Amulet-Team/Amulet-Map-Editor)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## Documentation
|
|
53
|
-
|
|
54
|
-
Our online documentation can be found here: https://amulet-core.readthedocs.io
|
|
55
|
-
|
|
56
|
-
## Installing
|
|
57
|
-
1) Install Python 3.7
|
|
58
|
-
2) We recommend setting up a [python virtual environment](https://docs.python.org/3/tutorial/venv.html) so you don't run into issues with dependency conflicts.
|
|
59
|
-
3) run `pip install amulet-core` to install the library and all its dependencies.
|
|
60
|
-
|
|
61
|
-
## Dependencies
|
|
62
|
-
|
|
63
|
-
This library uses a number of other libraries. These will be automatically installed when running the command above.
|
|
64
|
-
- Numpy
|
|
65
|
-
- [Amulet_NBT](https://github.com/Amulet-Team/Amulet-NBT)
|
|
66
|
-
- [PyMCTranslate](https://github.com/gentlegiantJGC/PyMCTranslate)
|
|
67
|
-
|
|
68
|
-
## Contributing
|
|
69
|
-
|
|
70
|
-
### For Development
|
|
71
|
-
Download the code to your computer, install python and run the following command from the root directory.
|
|
72
|
-
run `pip install -e .[dev]`
|
|
73
|
-
This command will install the library in development mode with the libraries required for development.
|
|
74
|
-
- [Black](https://github.com/ambv/black) (Required for formatting)
|
|
75
|
-
- Must be run before pushing a Pull Request
|
|
76
|
-
|
|
77
|
-
For information about contributing to this project, please see the contribution section [below](#contributing)
|
|
78
|
-
|
|
79
|
-
### Code Formatting
|
|
80
|
-
For code formatting, we use the formatting utility [black](https://github.com/psf/black).
|
|
81
|
-
To run it, run the following command from your favorite terminal after installing: `black amulet tests`
|
|
82
|
-
|
|
83
|
-
In order for your pull request to be accepted, this command must be run to format every file.
|
|
84
|
-
|
|
85
|
-
### Building the Documentation
|
|
86
|
-
To build the documentation locally, run the following command: `make html` and then navigate to the
|
|
87
|
-
generated directory `docs_build/html` in your favorite web browser
|
|
88
|
-
|
|
89
|
-
### Branch Naming
|
|
90
|
-
Branches should be created when a certain bug or feature may take multiple attempts to fix. Naming
|
|
91
|
-
them should follow the following convention (even for forked repositories when a pull request is being made):
|
|
92
|
-
|
|
93
|
-
* For features, use: `impl-<feature name>`
|
|
94
|
-
* For bug fixes, use: `bug-<bug tracker ID>`
|
|
95
|
-
* For improvements/rewrites, use: `improv-<feature name>`
|
|
96
|
-
* For prototyping, use: `proto-<feature name>`
|
|
97
|
-
|
|
98
|
-
### Pull Requests
|
|
99
|
-
We ask that submitted Pull Requests give moderately detailed notes about the changes and explain
|
|
100
|
-
any changes that were made to the program outside of those directly related to the feature/bug-fix.
|
|
101
|
-
Make sure to run all tests and formatting otherwise we cannot accept your pull request.
|
|
102
|
-
|
|
103
|
-
_Note: We will also re-run all tests before reviewing, this is to mitigate additional changes/commits
|
|
104
|
-
needed to pass all tests._
|
|
105
|
-
|
|
106
|
-
Once a Pull Request is submitted, we will mark the request for review, once that is done, we will
|
|
107
|
-
review the changes and provide any notes/things to change. Once all additional changes have been made,
|
|
108
|
-
we will merge the request.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: amulet-core
|
|
3
|
+
Version: 2.0.1a2
|
|
4
|
+
Summary: A Python library for reading/writing Minecraft's various save formats.
|
|
5
|
+
Author: James Clare, Ben Gothard
|
|
6
|
+
Project-URL: Homepage, https://www.amuletmc.com
|
|
7
|
+
Project-URL: Repository, https://github.com/Amulet-Team/Amulet-Core
|
|
8
|
+
Project-URL: Issues, https://github.com/Amulet-Team/Amulet-Core/issues
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: amulet-compiler-target==1.0
|
|
14
|
+
Requires-Dist: numpy~=2.0
|
|
15
|
+
Requires-Dist: amulet-compiler-version==3.0.0
|
|
16
|
+
Requires-Dist: amulet-io~=1.0
|
|
17
|
+
Requires-Dist: amulet-nbt~=4.0.1.0a2
|
|
18
|
+
Provides-Extra: docs
|
|
19
|
+
Requires-Dist: Sphinx>=1.7.4; extra == "docs"
|
|
20
|
+
Requires-Dist: sphinx-autodoc-typehints>=1.3.0; extra == "docs"
|
|
21
|
+
Requires-Dist: sphinx_rtd_theme>=0.3.1; extra == "docs"
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: setuptools>=42; extra == "dev"
|
|
24
|
+
Requires-Dist: versioneer; extra == "dev"
|
|
25
|
+
Requires-Dist: packaging; extra == "dev"
|
|
26
|
+
Requires-Dist: wheel; extra == "dev"
|
|
27
|
+
Requires-Dist: pybind11[global]==2.13.6; extra == "dev"
|
|
28
|
+
Requires-Dist: amulet_pybind11_extensions~=1.0; extra == "dev"
|
|
29
|
+
Requires-Dist: pybind11_stubgen>=2.5.4; extra == "dev"
|
|
30
|
+
Requires-Dist: black>=22.3; extra == "dev"
|
|
31
|
+
Requires-Dist: isort; extra == "dev"
|
|
32
|
+
Requires-Dist: autoflake; extra == "dev"
|
|
33
|
+
Requires-Dist: mypy; extra == "dev"
|
|
34
|
+
Requires-Dist: types-pyinstaller; extra == "dev"
|
|
35
|
+
Requires-Dist: amulet-test-utils~=1.1; extra == "dev"
|
|
36
|
+
Dynamic: requires-dist
|
|
37
|
+
|
|
38
|
+
# Amulet Core
|
|
39
|
+
|
|
40
|
+

|
|
41
|
+

|
|
42
|
+

|
|
43
|
+
[](https://amulet-core.readthedocs.io)
|
|
44
|
+
|
|
45
|
+
A Python 3 library to read and write data from Minecraft's various save formats.
|
|
46
|
+
|
|
47
|
+
This library provides the main world editing functionality for Amulet Map Editor
|
|
48
|
+
|
|
49
|
+
#### If you are looking for the actual editor it can be found at [Amulet Map Editor](https://github.com/Amulet-Team/Amulet-Map-Editor)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Documentation
|
|
53
|
+
|
|
54
|
+
Our online documentation can be found here: https://amulet-core.readthedocs.io
|
|
55
|
+
|
|
56
|
+
## Installing
|
|
57
|
+
1) Install Python 3.7
|
|
58
|
+
2) We recommend setting up a [python virtual environment](https://docs.python.org/3/tutorial/venv.html) so you don't run into issues with dependency conflicts.
|
|
59
|
+
3) run `pip install amulet-core` to install the library and all its dependencies.
|
|
60
|
+
|
|
61
|
+
## Dependencies
|
|
62
|
+
|
|
63
|
+
This library uses a number of other libraries. These will be automatically installed when running the command above.
|
|
64
|
+
- Numpy
|
|
65
|
+
- [Amulet_NBT](https://github.com/Amulet-Team/Amulet-NBT)
|
|
66
|
+
- [PyMCTranslate](https://github.com/gentlegiantJGC/PyMCTranslate)
|
|
67
|
+
|
|
68
|
+
## Contributing
|
|
69
|
+
|
|
70
|
+
### For Development
|
|
71
|
+
Download the code to your computer, install python and run the following command from the root directory.
|
|
72
|
+
run `pip install -e .[dev]`
|
|
73
|
+
This command will install the library in development mode with the libraries required for development.
|
|
74
|
+
- [Black](https://github.com/ambv/black) (Required for formatting)
|
|
75
|
+
- Must be run before pushing a Pull Request
|
|
76
|
+
|
|
77
|
+
For information about contributing to this project, please see the contribution section [below](#contributing)
|
|
78
|
+
|
|
79
|
+
### Code Formatting
|
|
80
|
+
For code formatting, we use the formatting utility [black](https://github.com/psf/black).
|
|
81
|
+
To run it, run the following command from your favorite terminal after installing: `black amulet tests`
|
|
82
|
+
|
|
83
|
+
In order for your pull request to be accepted, this command must be run to format every file.
|
|
84
|
+
|
|
85
|
+
### Building the Documentation
|
|
86
|
+
To build the documentation locally, run the following command: `make html` and then navigate to the
|
|
87
|
+
generated directory `docs_build/html` in your favorite web browser
|
|
88
|
+
|
|
89
|
+
### Branch Naming
|
|
90
|
+
Branches should be created when a certain bug or feature may take multiple attempts to fix. Naming
|
|
91
|
+
them should follow the following convention (even for forked repositories when a pull request is being made):
|
|
92
|
+
|
|
93
|
+
* For features, use: `impl-<feature name>`
|
|
94
|
+
* For bug fixes, use: `bug-<bug tracker ID>`
|
|
95
|
+
* For improvements/rewrites, use: `improv-<feature name>`
|
|
96
|
+
* For prototyping, use: `proto-<feature name>`
|
|
97
|
+
|
|
98
|
+
### Pull Requests
|
|
99
|
+
We ask that submitted Pull Requests give moderately detailed notes about the changes and explain
|
|
100
|
+
any changes that were made to the program outside of those directly related to the feature/bug-fix.
|
|
101
|
+
Make sure to run all tests and formatting otherwise we cannot accept your pull request.
|
|
102
|
+
|
|
103
|
+
_Note: We will also re-run all tests before reviewing, this is to mitigate additional changes/commits
|
|
104
|
+
needed to pass all tests._
|
|
105
|
+
|
|
106
|
+
Once a Pull Request is submitted, we will mark the request for review, once that is done, we will
|
|
107
|
+
review the changes and provide any notes/things to change. Once all additional changes have been made,
|
|
108
|
+
we will merge the request.
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
# Amulet Core
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-

|
|
5
|
-

|
|
6
|
-
[](https://amulet-core.readthedocs.io)
|
|
7
|
-
|
|
8
|
-
A Python 3 library to read and write data from Minecraft's various save formats.
|
|
9
|
-
|
|
10
|
-
This library provides the main world editing functionality for Amulet Map Editor
|
|
11
|
-
|
|
12
|
-
#### If you are looking for the actual editor it can be found at [Amulet Map Editor](https://github.com/Amulet-Team/Amulet-Map-Editor)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Documentation
|
|
16
|
-
|
|
17
|
-
Our online documentation can be found here: https://amulet-core.readthedocs.io
|
|
18
|
-
|
|
19
|
-
## Installing
|
|
20
|
-
1) Install Python 3.7
|
|
21
|
-
2) We recommend setting up a [python virtual environment](https://docs.python.org/3/tutorial/venv.html) so you don't run into issues with dependency conflicts.
|
|
22
|
-
3) run `pip install amulet-core` to install the library and all its dependencies.
|
|
23
|
-
|
|
24
|
-
## Dependencies
|
|
25
|
-
|
|
26
|
-
This library uses a number of other libraries. These will be automatically installed when running the command above.
|
|
27
|
-
- Numpy
|
|
28
|
-
- [Amulet_NBT](https://github.com/Amulet-Team/Amulet-NBT)
|
|
29
|
-
- [PyMCTranslate](https://github.com/gentlegiantJGC/PyMCTranslate)
|
|
30
|
-
|
|
31
|
-
## Contributing
|
|
32
|
-
|
|
33
|
-
### For Development
|
|
34
|
-
Download the code to your computer, install python and run the following command from the root directory.
|
|
35
|
-
run `pip install -e .[dev]`
|
|
36
|
-
This command will install the library in development mode with the libraries required for development.
|
|
37
|
-
- [Black](https://github.com/ambv/black) (Required for formatting)
|
|
38
|
-
- Must be run before pushing a Pull Request
|
|
39
|
-
|
|
40
|
-
For information about contributing to this project, please see the contribution section [below](#contributing)
|
|
41
|
-
|
|
42
|
-
### Code Formatting
|
|
43
|
-
For code formatting, we use the formatting utility [black](https://github.com/psf/black).
|
|
44
|
-
To run it, run the following command from your favorite terminal after installing: `black amulet tests`
|
|
45
|
-
|
|
46
|
-
In order for your pull request to be accepted, this command must be run to format every file.
|
|
47
|
-
|
|
48
|
-
### Building the Documentation
|
|
49
|
-
To build the documentation locally, run the following command: `make html` and then navigate to the
|
|
50
|
-
generated directory `docs_build/html` in your favorite web browser
|
|
51
|
-
|
|
52
|
-
### Branch Naming
|
|
53
|
-
Branches should be created when a certain bug or feature may take multiple attempts to fix. Naming
|
|
54
|
-
them should follow the following convention (even for forked repositories when a pull request is being made):
|
|
55
|
-
|
|
56
|
-
* For features, use: `impl-<feature name>`
|
|
57
|
-
* For bug fixes, use: `bug-<bug tracker ID>`
|
|
58
|
-
* For improvements/rewrites, use: `improv-<feature name>`
|
|
59
|
-
* For prototyping, use: `proto-<feature name>`
|
|
60
|
-
|
|
61
|
-
### Pull Requests
|
|
62
|
-
We ask that submitted Pull Requests give moderately detailed notes about the changes and explain
|
|
63
|
-
any changes that were made to the program outside of those directly related to the feature/bug-fix.
|
|
64
|
-
Make sure to run all tests and formatting otherwise we cannot accept your pull request.
|
|
65
|
-
|
|
66
|
-
_Note: We will also re-run all tests before reviewing, this is to mitigate additional changes/commits
|
|
67
|
-
needed to pass all tests._
|
|
68
|
-
|
|
69
|
-
Once a Pull Request is submitted, we will mark the request for review, once that is done, we will
|
|
70
|
-
review the changes and provide any notes/things to change. Once all additional changes have been made,
|
|
71
|
-
we will merge the request.
|
|
1
|
+
# Amulet Core
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://amulet-core.readthedocs.io)
|
|
7
|
+
|
|
8
|
+
A Python 3 library to read and write data from Minecraft's various save formats.
|
|
9
|
+
|
|
10
|
+
This library provides the main world editing functionality for Amulet Map Editor
|
|
11
|
+
|
|
12
|
+
#### If you are looking for the actual editor it can be found at [Amulet Map Editor](https://github.com/Amulet-Team/Amulet-Map-Editor)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
Our online documentation can be found here: https://amulet-core.readthedocs.io
|
|
18
|
+
|
|
19
|
+
## Installing
|
|
20
|
+
1) Install Python 3.7
|
|
21
|
+
2) We recommend setting up a [python virtual environment](https://docs.python.org/3/tutorial/venv.html) so you don't run into issues with dependency conflicts.
|
|
22
|
+
3) run `pip install amulet-core` to install the library and all its dependencies.
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
This library uses a number of other libraries. These will be automatically installed when running the command above.
|
|
27
|
+
- Numpy
|
|
28
|
+
- [Amulet_NBT](https://github.com/Amulet-Team/Amulet-NBT)
|
|
29
|
+
- [PyMCTranslate](https://github.com/gentlegiantJGC/PyMCTranslate)
|
|
30
|
+
|
|
31
|
+
## Contributing
|
|
32
|
+
|
|
33
|
+
### For Development
|
|
34
|
+
Download the code to your computer, install python and run the following command from the root directory.
|
|
35
|
+
run `pip install -e .[dev]`
|
|
36
|
+
This command will install the library in development mode with the libraries required for development.
|
|
37
|
+
- [Black](https://github.com/ambv/black) (Required for formatting)
|
|
38
|
+
- Must be run before pushing a Pull Request
|
|
39
|
+
|
|
40
|
+
For information about contributing to this project, please see the contribution section [below](#contributing)
|
|
41
|
+
|
|
42
|
+
### Code Formatting
|
|
43
|
+
For code formatting, we use the formatting utility [black](https://github.com/psf/black).
|
|
44
|
+
To run it, run the following command from your favorite terminal after installing: `black amulet tests`
|
|
45
|
+
|
|
46
|
+
In order for your pull request to be accepted, this command must be run to format every file.
|
|
47
|
+
|
|
48
|
+
### Building the Documentation
|
|
49
|
+
To build the documentation locally, run the following command: `make html` and then navigate to the
|
|
50
|
+
generated directory `docs_build/html` in your favorite web browser
|
|
51
|
+
|
|
52
|
+
### Branch Naming
|
|
53
|
+
Branches should be created when a certain bug or feature may take multiple attempts to fix. Naming
|
|
54
|
+
them should follow the following convention (even for forked repositories when a pull request is being made):
|
|
55
|
+
|
|
56
|
+
* For features, use: `impl-<feature name>`
|
|
57
|
+
* For bug fixes, use: `bug-<bug tracker ID>`
|
|
58
|
+
* For improvements/rewrites, use: `improv-<feature name>`
|
|
59
|
+
* For prototyping, use: `proto-<feature name>`
|
|
60
|
+
|
|
61
|
+
### Pull Requests
|
|
62
|
+
We ask that submitted Pull Requests give moderately detailed notes about the changes and explain
|
|
63
|
+
any changes that were made to the program outside of those directly related to the feature/bug-fix.
|
|
64
|
+
Make sure to run all tests and formatting otherwise we cannot accept your pull request.
|
|
65
|
+
|
|
66
|
+
_Note: We will also re-run all tests before reviewing, this is to mitigate additional changes/commits
|
|
67
|
+
needed to pass all tests._
|
|
68
|
+
|
|
69
|
+
Once a Pull Request is submitted, we will mark the request for review, once that is done, we will
|
|
70
|
+
review the changes and provide any notes/things to change. Once all additional changes have been made,
|
|
71
|
+
we will merge the request.
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
from typing import Union, Mapping
|
|
2
|
-
import requirements
|
|
3
|
-
|
|
4
|
-
from setuptools import build_meta
|
|
5
|
-
from setuptools.build_meta import *
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def get_requires_for_build_wheel(
|
|
9
|
-
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
10
|
-
) -> list[str]:
|
|
11
|
-
return [
|
|
12
|
-
*build_meta.get_requires_for_build_wheel(config_settings),
|
|
13
|
-
"wheel",
|
|
14
|
-
*requirements.get_build_dependencies(),
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
def get_requires_for_build_editable(
|
|
19
|
-
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
20
|
-
) -> list[str]:
|
|
21
|
-
return [
|
|
22
|
-
*build_meta.get_requires_for_build_editable(config_settings),
|
|
23
|
-
*requirements.get_build_dependencies(),
|
|
24
|
-
]
|
|
1
|
+
from typing import Union, Mapping
|
|
2
|
+
import requirements
|
|
3
|
+
|
|
4
|
+
from setuptools import build_meta
|
|
5
|
+
from setuptools.build_meta import *
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def get_requires_for_build_wheel(
|
|
9
|
+
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
10
|
+
) -> list[str]:
|
|
11
|
+
return [
|
|
12
|
+
*build_meta.get_requires_for_build_wheel(config_settings),
|
|
13
|
+
"wheel",
|
|
14
|
+
*requirements.get_build_dependencies(),
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def get_requires_for_build_editable(
|
|
19
|
+
config_settings: Union[Mapping[str, Union[str, list[str], None]], None] = None,
|
|
20
|
+
) -> list[str]:
|
|
21
|
+
return [
|
|
22
|
+
*build_meta.get_requires_for_build_editable(config_settings),
|
|
23
|
+
*requirements.get_build_dependencies(),
|
|
24
|
+
]
|