Skip to content

Commit 2baa89a

Browse files
committed
Rename to supported_platforms.py
1 parent a07d951 commit 2baa89a

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

oshminer/supported_domains.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

oshminer/supported_platforms.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
# SPDX-FileCopyrightText: 2022 Pen-Yuan Hsing
4+
# SPDX-License-Identifier: AGPL-3.0-or-later
5+
6+
import oshminer.GitHub
7+
import oshminer.Wikifactory
8+
9+
# Supported hosting platforms as a dictionary of their domains, which are
10+
# matched to names of internal functions that construct API requests to the
11+
# associated platforms.
12+
# `repo_urls` need to include one of these domains.
13+
supported_domains: dict = {
14+
"github.com": oshminer.GitHub.make_GitHub_request,
15+
"wikifactory.com": oshminer.Wikifactory.make_Wikifactory_request
16+
}

0 commit comments

Comments
 (0)