Bryan Bishop
22d5cc55e2
rewrite the encoding line in sym.py
2013-08-27 10:10:55 -05:00
Bryan Bishop
7ac26e0546
remove unused imports from sym.py
2013-08-27 10:09:58 -05:00
Bryan Bishop
967de1cf3c
don't include precompiled python files in the egg
...
version bump to: v1.0.2
v1.0.2
2013-08-04 23:32:08 -05:00
Bryan Bishop
d4acb1349b
include README.md and bump version to v1.0.1
...
There was previously no way to install this package from pypi because
README.md is required through setup.py's long_description attribute.
v1.0.1
2013-08-04 23:06:44 -05:00
Bryan Bishop
b2a7156acb
Merge branch 'better-testing' into master
2013-08-04 17:16:27 -05:00
Bryan Bishop
611c2ecdd0
fix the test for calculate_bank
...
There shouldn't be any exception thrown by calculate_bank since it was
changed some time ago.
2013-08-04 16:11:51 -05:00
Bryan Bishop
a1bfc404cb
make isolate_incbins not take a global asm
...
Why on earth was this using globals?
2013-08-04 15:59:16 -05:00
Bryan Bishop
dbf6c1eedc
fix setUpClass for a unittest.TestCase
2013-08-04 15:42:59 -05:00
Bryan Bishop
51d7e0e876
fix a test that used Label
...
Label had changed since the test was first written.
2013-08-04 15:40:04 -05:00
Bryan Bishop
1169805e54
improve the test for incbin splitting
2013-08-04 15:35:51 -05:00
Bryan Bishop
5c32531c48
separate more integration tests
2013-08-04 14:27:36 -05:00
Bryan Bishop
4aacc3bf3e
move TestEncodedText into tests/integration/
2013-08-04 14:16:44 -05:00
Bryan Bishop
782f6fee10
move a TestAsmList test into tests/integrations/
2013-08-04 14:00:56 -05:00
Bryan Bishop
b401a99d42
clean up the formatting in test_write_all_labels
2013-08-04 13:52:17 -05:00
Bryan Bishop
3f68f25dbf
remove a file that was created during a test
2013-08-04 13:46:43 -05:00
Bryan Bishop
09ac98ba7a
separate some of the integration tests
...
These tests require extra assets to complete. At the moment they
shouldn't work because the data isn't available.
2013-08-04 13:43:16 -05:00
Bryan Bishop
0ee820c6d6
remove unused imports from tests.py
2013-08-04 13:14:50 -05:00
Bryan Bishop
f4f0005e94
remove a useless test
2013-08-04 13:07:59 -05:00
Bryan Bishop
0d97582126
remove test helpers and meta testing
...
The meta testing code was really redundant. There are libraries and
tools already made for coverage tests.
Also, it was causing a problem with the unit testing because importing
the unittest module inside of another included module is apparently
broken. Why would that be broken?
2013-08-04 13:00:07 -05:00
Bryan Bishop
a818c979e6
remove unused modules from test helpers
2013-08-04 12:59:28 -05:00
Bryan Bishop
8d179bb81b
split meta-testing into separate files
2013-08-04 12:54:33 -05:00
Bryan Bishop
fac185b781
remove python2.6 check in tests.py
...
There's no way that this library supports python2.6, and even if it
does, it's not a target or something worth maintaining.
2013-08-04 10:41:37 -05:00
Bryan Bishop
3011f9243c
fix path walking in gfx.py
2013-08-03 19:59:19 -05:00
Bryan Bishop
39afc5873a
add dist/ to .gitignore
...
This is a leftover from the python egg building process.
2013-08-03 18:39:14 -05:00
Bryan Bishop
2c58182ddd
README: fix import statements (pokemontools)
2013-08-03 17:10:11 -05:00
Bryan Bishop
0403a4a90d
Merge branch 'organizing' into master
...
Everything works in pokecrystal, so it's time to merge.
2013-08-03 16:51:46 -05:00
Bryan Bishop
a76acbadd2
fix import lines in tests/
2013-08-03 16:12:54 -05:00
Bryan Bishop
28490230cf
make a basic python module
2013-08-03 16:10:52 -05:00
Bryan Bishop
a14c36eadb
ignore python/egg output
2013-08-03 15:55:34 -05:00
Bryan Bishop
4bc7d85036
write some TODO comments in wram.py
2013-08-03 15:21:36 -05:00
Bryan Bishop
ed2949c31d
add mock into requirements.txt
...
(for unit testing)
2013-08-03 15:16:27 -05:00
Bryan Bishop
f6b13962f6
combine hram/gbhw readers into read_constants
...
This consolidates read_hram_constants and read_gbhw_constants.
2013-08-03 15:12:45 -05:00
Bryan Bishop
860829c2b1
make read_gbhw_constants consume an IOError
2013-08-03 15:08:08 -05:00
Bryan Bishop
b94bbf92ba
make read_hram_constants to eat hram.asm IOError
2013-08-03 15:05:17 -05:00
Bryan Bishop
1bdb15456e
fix the bss/wram section default
...
The default section needs to include a list of labels (even if the list
is empty) because downstream code assumes that the section contains a
key called "labels" that has a value associated with a list.
2013-08-03 14:55:58 -05:00
Bryan Bishop
2bbe5da4b6
ignore wram.asm non-existence
...
The IOError is now caught and swallowed by read_wram_sections.
2013-08-03 14:53:42 -05:00
Bryan Bishop
f17090f319
remove extra newlines from python files
...
Remove all of the ending newlines at the end of the file, since this is
apparently against pep8.
2013-08-03 14:41:27 -05:00
Bryan Bishop
7ea430ac9a
a requirements.txt to specify python dependencies
...
This is taken straight from the pokecrystal.git repo.
2013-08-03 14:36:36 -05:00
Bryan Bishop
162b3eab0e
Merge branch 'fix-tabs' into master
2013-08-03 14:07:06 -05:00
Bryan Bishop
e707c064f8
remove dangling whitespace in source code files
2013-08-03 14:04:13 -05:00
Bryan Bishop
fc931b7f27
tabs to spaces in crystal.py
...
This was just the move effects list.
2013-08-03 14:02:35 -05:00
Bryan Bishop
a49e8b58ae
tabs to spaces in sym.py
2013-08-03 14:01:29 -05:00
Bryan Bishop
13dfbba8d2
make a docstring for wram.py
2013-08-03 13:23:04 -05:00
Bryan Bishop
9dc552e46c
remove dangling whitespace in wram.py
2013-08-03 12:25:25 -05:00
Bryan Bishop
7ee0269e23
normalize tabs to whitespace in wram.py
2013-08-03 12:25:02 -05:00
Bryan Bishop
6824783300
remove trailing newline from wram.py
2013-08-03 12:24:42 -05:00
Bryan Bishop
bc3502dc1f
fix path handling in wram.py
...
Otherwise pokecrystal doesn't compile anymore. This is because of how
wram.asm, hram.asm and other files are parsed.
2013-08-03 12:23:59 -05:00
Bryan Bishop
21113e1852
fix the *.json rule in .gitignore
2013-08-03 12:23:08 -05:00
Bryan Bishop
ea42b05085
remove sgm/sav cruft from .gitignore
2013-08-03 12:22:31 -05:00
Bryan Bishop
dcd10de877
update png.py .gitignore reference
2013-08-03 12:20:56 -05:00