forked from jedie/DragonPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove .sh scripts and download in python so it's easier to startup under windows. Explicit download is not needed. All ROMs will be downloaded if needed. Add "download_roms" to cli to download all and check them. Add a "boot_dragonpy.cmd" for easy install under windows. Add unitests for download.
- Loading branch information
Showing
45 changed files
with
755 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.py[cod] | ||
*.rom | ||
/roms/* | ||
|
||
*.py[cod] | ||
*~ | ||
|
||
# C extensions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
# Config file for automatic testing at travis-ci.org | ||
|
||
language: python | ||
sudo: false | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "pypy" | ||
|
||
install: | ||
- "pip install ." | ||
- "pip install coveralls" | ||
- ./download_ROMs.sh | ||
- pip install --upgrade pip | ||
- pip install . | ||
- pip install coveralls | ||
|
||
script: | ||
# - python -m unittest discover | ||
- coverage run --source=dragonpy ./setup.py test | ||
|
||
after_success: | ||
coveralls | ||
- coveralls | ||
|
||
branches: | ||
only: | ||
- master | ||
- stable | ||
- refactory_rom_downloads | ||
|
||
notifications: | ||
irc: "irc.freenode.org#pylucid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@echo off | ||
|
||
title "%~0" | ||
|
||
set python=C:\Python34\python.exe | ||
if NOT exist %python% ( | ||
echo ERROR: '%python%' doesn't exists?!? | ||
pause | ||
exit 1 | ||
) | ||
|
||
set boot_script=boot_dragonpy.py | ||
if NOT exist %boot_script% ( | ||
echo ERROR: '%boot_script%' doesn't exists?!? | ||
pause | ||
exit 1 | ||
) | ||
|
||
set destination=%APPDATA%\DragonPy_env | ||
mkdir %destination% | ||
if NOT exist %destination% ( | ||
echo ERROR: '%destination%' doesn't exists?!? | ||
pause | ||
exit 1 | ||
) | ||
|
||
echo on | ||
%python% %boot_script% --install_type=pypi %destination% | ||
explorer.exe %destination% | ||
@pause |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
DragonPy - 6809 emulator in Python | ||
================================== | ||
:created: 2015 by Jens Diemer - www.jensdiemer.de | ||
:copyleft: 2015 by the DragonPy team, see AUTHORS for more details. | ||
:license: GNU GPL v3 or above, see LICENSE for more details. | ||
""" | ||
|
||
from __future__ import print_function, absolute_import | ||
|
||
from dragonpy.components.rom import ROMFile, ARCHIVE_EXT_ZIP | ||
|
||
|
||
class CoCo2b_Basic13_ROM(ROMFile): | ||
ARCHIVE_EXT = ARCHIVE_EXT_ZIP | ||
URL = "http://mess.oldos.net/coco2b.zip" | ||
DOWNLOAD_SHA1 = "059a8461f09f267a3847980c497e61d6c3ce5d9b" # downloaded .zip archive | ||
FILE_COUNT = 2 # How many files are in the archive? | ||
SHA1 = "28b92bebe35fa4f026a084416d6ea3b1552b63d3" # extracted ROM | ||
FILENAME = "bas13.rom" | ||
|
||
|
||
class CoCo2b_ExtendedBasic11_ROM(CoCo2b_Basic13_ROM): | ||
SHA1 = "ad927fb4f30746d820cb8b860ebb585e7f095dea" # extracted ROM | ||
FILENAME = "extbas11.rom" | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
DragonPy - 6809 emulator in Python | ||
================================== | ||
:created: 2015 by Jens Diemer - www.jensdiemer.de | ||
:copyleft: 2015 by the DragonPy team, see AUTHORS for more details. | ||
:license: GNU GPL v3 or above, see LICENSE for more details. | ||
""" | ||
|
||
from __future__ import print_function, absolute_import | ||
|
||
from dragonpy.components.rom import ROMFile, ARCHIVE_EXT_ZIP | ||
|
||
|
||
class Dragon32Rom(ROMFile): | ||
ARCHIVE_EXT = ARCHIVE_EXT_ZIP | ||
URL = "http://archive.worldofdragon.org/archive/index.php?dir=Roms/Dragon/\&file=Dragon%20Data%20Ltd%20-%20Dragon%2032%20-%20IC17.zip" | ||
DOWNLOAD_SHA1 = "2cc4cbf81769746d261063eee20719899a001fed" # downloaded .zip archive | ||
FILE_COUNT = 1 # How many files are in the archive? | ||
RENAME_DATA = {"Dragon Data Ltd - Dragon 32 - IC17.ROM": "d32.rom"} | ||
SHA1 = "f2dab125673e653995a83bf6b793e3390ec7f65a" # extracted ROM | ||
FILENAME = "d32.rom" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.