-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
59 lines (46 loc) · 1.73 KB
/
Copy pathrun.py
File metadata and controls
59 lines (46 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "api"))
import FetchApiData
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "badges"))
import GenerateBadges
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "issue-tracker"))
import ProcessFeatureRequests
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "membership"))
import UpdateMembershipData
import GenerateMemberBadges
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "versions"))
import UpdateLatestModVersions
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "web"))
import UpdateModLogos
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "mods"))
import UpdateModData
import UpdateModDescriptions
def main():
fprefix = " [Main] "
print("\n" + fprefix + "Starting the Python automated workflow.")
rootPath = os.path.dirname(sys.argv[0])
# Fetch all API data first:
FetchApiData.main(rootPath)
# Process GitHub Sponsors and Patreon members:
UpdateMembershipData.main(rootPath)
# Generate the per-member supporter badges:
GenerateMemberBadges.main(rootPath)
# Generate project description badges:
GenerateBadges.main(rootPath)
# Update latest mod versions
UpdateLatestModVersions.main(rootPath)
# Save the mod logos
UpdateModLogos.main(rootPath)
# Generate the website mod data
UpdateModData.main(rootPath)
# Save the full mod descriptions
UpdateModDescriptions.main(rootPath)
if os.environ['IS_PRODUCTION'] == "true":
# Process the requests from the .issue-tracker repo on GitHub:
ProcessFeatureRequests.main(rootPath)
return
if __name__ == "__main__":
main()