Skip to content

Commit b77a0db

Browse files
committed
chore: remove the limited support there was for Windows
1 parent 123166e commit b77a0db

File tree

7 files changed

+4
-12
lines changed

7 files changed

+4
-12
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
full_matrix = {
2626
'python': ['3.10', '3.11', '3.12'],
2727
# available OS's: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on
28-
'os': ['ubuntu-22.04', 'macos-12', 'windows-2022'],
28+
'os': ['ubuntu-22.04', 'macos-12'],
2929
}
3030
# this is the fastest one:
3131
reduced_matrix = {

poetry.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,12 @@ mnemonic = "~0.20"
6464
prometheus_client = "~0.15.0"
6565
pyopenssl = "=24.2.1"
6666
pycoin = "~0.92.20230326"
67-
pywin32 = {version = "306", markers = "sys_platform == 'win32'"}
6867
requests = "=2.32.3"
6968
service_identity = "~21.1.0"
7069
pexpect = "~4.8.0"
7170
intervaltree = "~3.1.0"
7271
structlog = "~22.3.0"
73-
rocksdb = {git = "https://github.com/hathornetwork/python-rocksdb.git", markers = "sys_platform != 'win32'"}
72+
rocksdb = {git = "https://github.com/hathornetwork/python-rocksdb.git"}
7473
aiohttp = "~3.10.3"
7574
idna = "~3.4"
7675
setproctitle = "^1.3.3"

tests/conftest.py

-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66

77
os.environ['HATHOR_CONFIG_YAML'] = os.environ.get('HATHOR_TEST_CONFIG_YAML', UNITTESTS_SETTINGS_FILEPATH)
88

9-
if sys.platform == 'win32':
10-
# XXX: because rocksdb isn't available on Windows, we force using memory-storage for tests so most of them can run
11-
os.environ['HATHOR_TEST_MEMORY_STORAGE'] = 'true'
12-
139
# TODO: We should remove this call from the module level.
1410
initialize_global_reactor(use_asyncio_reactor=True)

tests/p2p/test_connections.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class ConnectionsTest(unittest.TestCase):
11-
@pytest.mark.skipif(sys.platform == 'win32', reason='run_server is very finicky on Windows')
1211
def test_connections(self) -> None:
1312
process = run_server()
1413
process2 = run_server(listen=8006, status=8086, bootstrap='tcp://127.0.0.1:8005')

tests/resources/test_profiler.py

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def setUp(self):
1919
super().setUp()
2020
self.web = StubSite(ProfilerResource(self.manager))
2121

22-
@pytest.mark.skipif(sys.platform == 'win32', reason='shutil.rmtree fails on Windows')
2322
@inlineCallbacks
2423
def test_post(self):
2524
# Options

tests/tx/test_prometheus.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def setUp(self):
2020
self.network = 'testnet'
2121
self.manager = self.create_peer(self.network, unlock_wallet=True)
2222

23-
@pytest.mark.skipif(sys.platform == 'win32', reason='set_new_metrics fails on Windows')
2423
def test_wallet(self):
2524
tmpdir = tempfile.mkdtemp()
2625
tmpfile = tempfile.NamedTemporaryFile(dir=tmpdir, suffix='.prom', delete=False)

0 commit comments

Comments
 (0)