RP5RS 1.0.0__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.
- rp5rs-1.0.0/PKG-INFO +19 -0
- rp5rs-1.0.0/README.md +8 -0
- rp5rs-1.0.0/pyproject.toml +18 -0
- rp5rs-1.0.0/setup.cfg +4 -0
- rp5rs-1.0.0/src/RP5RS/RP5RS.py +35 -0
- rp5rs-1.0.0/src/RP5RS/__init__.py +1 -0
- rp5rs-1.0.0/src/RP5RS.egg-info/PKG-INFO +19 -0
- rp5rs-1.0.0/src/RP5RS.egg-info/SOURCES.txt +8 -0
- rp5rs-1.0.0/src/RP5RS.egg-info/dependency_links.txt +1 -0
- rp5rs-1.0.0/src/RP5RS.egg-info/top_level.txt +1 -0
rp5rs-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: RP5RS
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: An automated initialization environment wrapper for MakeCode Arcade on Raspberry Pi 5
|
|
5
|
+
Author-email: Jenny Fuller <jennyfuller1085@example.com>
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# RP5RS
|
|
13
|
+
Automated initialization environment wrapper for MakeCode Arcade on the Raspberry Pi 5.
|
|
14
|
+
/python module to easily run a makecode arcade game
|
|
15
|
+
## How to run:
|
|
16
|
+
```python
|
|
17
|
+
import RP5RS
|
|
18
|
+
RP5RS.SetCurrentGameTo()
|
|
19
|
+
RP5RS.RunGame()
|
rp5rs-1.0.0/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "RP5RS"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Jenny Fuller", email="jennyfuller1085@example.com" },
|
|
10
|
+
]
|
|
11
|
+
description = "An automated initialization environment wrapper for MakeCode Arcade on Raspberry Pi 5"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.7"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: POSIX :: Linux",
|
|
18
|
+
]
|
rp5rs-1.0.0/setup.cfg
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import glob
|
|
3
|
+
|
|
4
|
+
# This keeps track of the game name between functions
|
|
5
|
+
CURRENT_GAME = ""
|
|
6
|
+
|
|
7
|
+
def SetCurrentGameTo(game_name=None):
|
|
8
|
+
global CURRENT_GAME
|
|
9
|
+
# If no name is given, automatically grab the first .elf file
|
|
10
|
+
if game_name is None:
|
|
11
|
+
elf_files = glob.glob("*.elf")
|
|
12
|
+
if not elf_files:
|
|
13
|
+
print("Error: No game (.elf) found in this directory!")
|
|
14
|
+
return False
|
|
15
|
+
CURRENT_GAME = elf_files[0]
|
|
16
|
+
else:
|
|
17
|
+
CURRENT_GAME = game_name
|
|
18
|
+
|
|
19
|
+
print(f"Current game target set to: {CURRENT_GAME}")
|
|
20
|
+
return True
|
|
21
|
+
|
|
22
|
+
def RunGame():
|
|
23
|
+
global CURRENT_GAME
|
|
24
|
+
# Safety check: if they didn't run SetCurrentGameTo first, run it now
|
|
25
|
+
if not CURRENT_GAME:
|
|
26
|
+
if not SetCurrentGameTo():
|
|
27
|
+
return
|
|
28
|
+
|
|
29
|
+
print(f"Launching your custom setup script for {CURRENT_GAME}...")
|
|
30
|
+
|
|
31
|
+
# Make sure your shell script has execution permissions
|
|
32
|
+
os.system("chmod +x StartCode.sh")
|
|
33
|
+
|
|
34
|
+
# Run your exact shell script exactly as you wrote it
|
|
35
|
+
os.system("sudo ./StartCode.sh")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: RP5RS
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: An automated initialization environment wrapper for MakeCode Arcade on Raspberry Pi 5
|
|
5
|
+
Author-email: Jenny Fuller <jennyfuller1085@example.com>
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# RP5RS
|
|
13
|
+
Automated initialization environment wrapper for MakeCode Arcade on the Raspberry Pi 5.
|
|
14
|
+
/python module to easily run a makecode arcade game
|
|
15
|
+
## How to run:
|
|
16
|
+
```python
|
|
17
|
+
import RP5RS
|
|
18
|
+
RP5RS.SetCurrentGameTo()
|
|
19
|
+
RP5RS.RunGame()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
RP5RS
|