mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
Core: update cx-Freeze to 8.0.0 & Worlds: fix packages missing __init__.py (#4773)
This commit is contained in:
2
setup.py
2
setup.py
@@ -19,7 +19,7 @@ from typing import Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union
|
||||
|
||||
|
||||
# This is a bit jank. We need cx-Freeze to be able to run anything from this script, so install it
|
||||
requirement = 'cx-Freeze==7.2.0'
|
||||
requirement = 'cx-Freeze==8.0.0'
|
||||
try:
|
||||
import pkg_resources
|
||||
try:
|
||||
|
14
test/general/test_packages.py
Normal file
14
test/general/test_packages.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import unittest
|
||||
import os
|
||||
|
||||
|
||||
class TestPackages(unittest.TestCase):
|
||||
def test_packages_have_init(self):
|
||||
"""Test that all world folders containing .py files also have a __init__.py file,
|
||||
to indicate full package rather than namespace package."""
|
||||
import Utils
|
||||
|
||||
worlds_path = Utils.local_path("worlds")
|
||||
for dirpath, dirnames, filenames in os.walk(worlds_path):
|
||||
with self.subTest(directory=dirpath):
|
||||
self.assertEqual("__init__.py" in filenames, any(file.endswith(".py") for file in filenames))
|
0
worlds/civ_6/data/__init__.py
Normal file
0
worlds/civ_6/data/__init__.py
Normal file
0
worlds/cv64/data/__init__.py
Normal file
0
worlds/cv64/data/__init__.py
Normal file
0
worlds/cvcotm/data/__init__.py
Normal file
0
worlds/cvcotm/data/__init__.py
Normal file
0
worlds/ffmq/data/__init__.py
Normal file
0
worlds/ffmq/data/__init__.py
Normal file
0
worlds/kh2/Names/__init__.py
Normal file
0
worlds/kh2/Names/__init__.py
Normal file
0
worlds/ladx/LADXR/__init__.py
Normal file
0
worlds/ladx/LADXR/__init__.py
Normal file
0
worlds/ladx/LADXR/locations/__init__.py
Normal file
0
worlds/ladx/LADXR/locations/__init__.py
Normal file
0
worlds/ladx/LADXR/mapgen/locations/__init__.py
Normal file
0
worlds/ladx/LADXR/mapgen/locations/__init__.py
Normal file
0
worlds/ladx/LADXR/mapgen/roomtype/__init__.py
Normal file
0
worlds/ladx/LADXR/mapgen/roomtype/__init__.py
Normal file
0
worlds/ladx/LADXR/patches/__init__.py
Normal file
0
worlds/ladx/LADXR/patches/__init__.py
Normal file
0
worlds/landstalker/data/__init__.py
Normal file
0
worlds/landstalker/data/__init__.py
Normal file
0
worlds/mlss/Names/__init__.py
Normal file
0
worlds/mlss/Names/__init__.py
Normal file
0
worlds/mmbn3/Names/__init__.py
Normal file
0
worlds/mmbn3/Names/__init__.py
Normal file
0
worlds/osrs/LogicCSV/__init__.py
Normal file
0
worlds/osrs/LogicCSV/__init__.py
Normal file
0
worlds/smw/Names/__init__.py
Normal file
0
worlds/smw/Names/__init__.py
Normal file
0
worlds/tww/randomizers/__init__.py
Normal file
0
worlds/tww/randomizers/__init__.py
Normal file
0
worlds/witness/data/settings/__init__.py
Normal file
0
worlds/witness/data/settings/__init__.py
Normal file
Reference in New Issue
Block a user