Skip to content
Snippets Groups Projects
Commit 2a6621f1 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

Support for PyPi

parent 0098c18d
No related branches found
No related tags found
1 merge request!44Support for PyPi
......@@ -12,6 +12,7 @@ Cargo.lock
/.idea
/ndk
/dist
/build
/target
/aarch64-linux-gnu
......
......@@ -166,3 +166,14 @@ deploy-npm:
- build-wasm
only:
- tags
deploy-pypi:
stage: deploy
script:
- pip install twine wheel
- python setup.py sdist bdist_wheel
- python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
dependencies:
- build-pyo3
only:
- tags
......@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
* Initial support for the `PyBoy` compatibility layer - [#36](https://gitlab.stage.hive.pt/joamag/boytacean/-/issues/36)
* Support for PyPi registry for the PyO3 package - [#43](https://gitlab.stage.hive.pt/joamag/boytacean/-/issues/43)
* Python interface file for base boytacean (`boytacean.pyi`)
* Interface to custom boot ROM loading in Python
......
include build.rs Cargo.toml LICENSE
recursive-include src *.rs
recursive-include frontends Cargo.toml *.rs
......@@ -61,5 +61,10 @@ setuptools.setup(
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
long_description=open(os.path.join(os.path.dirname(__file__), "README.md"), "rb")
.read()
.decode("utf-8"),
long_description_content_type="text/markdown",
)
......@@ -7,12 +7,11 @@ from boytacean import GameBoy
CURRENT_DIR = dirname(realpath(__file__))
POCKET_ROM_PATH = join(CURRENT_DIR, "../../../../res/roms/demo/pocket.gb")
class BaseTest(unittest.TestCase):
def test_pocket(self):
gb = GameBoy(
apu_enabled=False, serial_enabled=False, load_graphics=False
)
gb = GameBoy(apu_enabled=False, serial_enabled=False, load_graphics=False)
gb.load_rom(POCKET_ROM_PATH)
for _ in range(600):
gb.next_frame()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment