0
Commit Graph

38 Commits

Author SHA1 Message Date
Nicolas F
e348a548b6 Initial Python 3 port
Many things work, some don't. Notably, genPOI doesn't work, and
there's some signedness comparison stuff going on in the C extension.

This also completely drops support for Python 2, as maintaining a C
extension for both Python 2 and 3 is a pain and not worth it for the
9 months that Python 2 is still going to be supported upstream.

The documentation needs to be adjusted as well.

All of the few tests we have pass, and rendering a map works, both
with a configuration file and without. We can also use optimizeimages.

Concerns #1528.
2019-03-17 17:57:07 +01:00
Patrick-Emmanuel Boulanger-Nadeau
a0640e8bdb extra character ? 2014-01-20 16:10:48 -05:00
Patrick-Emmanuel Boulanger-Nadeau
2b2d929659 Add the new function to the synthetic test 2014-01-20 16:04:11 -05:00
Johan Kiviniemi
6692d10af0 test_posttraverse{,_roundrobin}: Unduplicate expected list 2013-12-28 06:03:35 +02:00
Johan Kiviniemi
c49fdd19e1 RendertileSet: Round-robin the four top-level subtrees 2013-12-27 08:51:36 +02:00
Johan Kiviniemi
754487389d test_tileset: Depth is now 5 because of ‘maxrow + 32’ in tileset.py 2013-12-27 04:37:35 +02:00
Johan Kiviniemi
9d669f4bbf test_tileset: Drop unused correct_tiles list 2013-12-27 04:36:35 +02:00
Johan Kiviniemi
2adebabc19 test_tileset: Add required name item to defoptions 2013-12-27 03:47:10 +02:00
Johan Kiviniemi
b5dec03cff test_tileset: Add missing world parameter 2013-12-27 03:46:36 +02:00
Johan Kiviniemi
c32abc00e0 test_settings/test_manual: Match renders order with file 2013-12-27 03:46:03 +02:00
Johan Kiviniemi
b1bd77d962 test_settings: ValueError → MissingConfigException 2013-12-27 03:24:08 +02:00
Johan Kiviniemi
37ab11899d test_all: import logging 2013-12-25 06:14:01 +02:00
Johan Kiviniemi
2252b1e69b Update test_posttraverse to match expanding order 2013-12-25 06:12:18 +02:00
Aaron Griffith
626129394a split up util.py into files.py and logger.py, moved code appropriately 2012-03-05 12:12:27 -05:00
Andrew Brown
b852e8b1e3 Re-did the caching layer for regionset chunk caching 2012-03-03 23:56:38 -05:00
Andrew Brown
4c21fb2e05 modified tileset.py for the new Anvil format 2012-02-19 00:04:26 -05:00
Andrew Brown
aaf8e1d7cb Changed "worldname" to "world" in configfile
Also brought tests up to date. All tests pass now.
2012-02-14 20:39:05 -05:00
Andrew Brown
6d95d80a73 overhaul to configParser. Parsing config works now. 2012-02-04 21:23:44 -05:00
Andrew Brown
9e61407c67 fixed a bug in TileSet. Traversal now works according to tests. 2012-01-08 03:12:06 -05:00
Andrew Brown
3995a06c97 added TileSet tests, fixed several bugs. Still needs work. 2012-01-08 02:51:06 -05:00
Andrew Chin
cb2f0129bc Allow regionsets to be named in a settings.py file 2012-01-07 15:11:19 -05:00
Andrew Chin
c14cd1a66f Fixed/added some config parsing tests 2012-01-02 01:13:29 -05:00
Aaron Griffith
a1dc392526 c_overviewer is now auto-initialized, and some other minor fixes 2012-01-02 00:40:56 -05:00
Andrew Chin
fbb5230849 World test case stuff 2012-01-02 00:33:19 -05:00
Andrew Chin
287b16fd13 Fixing some settings stuff 2012-01-02 00:03:10 -05:00
Andrew Chin
74a3fd7915 new skeleton for world test case 2012-01-01 23:28:28 -05:00
Andrew Chin
4a12d3dadc Updated test/data/world submodule 2012-01-01 23:26:37 -05:00
Andrew Chin
8ef25ca72e Added new test data submodule 2012-01-01 23:26:37 -05:00
Andrew Chin
fed7ae0157 Allow global defaults to be specified 2011-12-31 20:59:02 -05:00
Andrew Brown
054e502885 setup rendercheck mode 1 to go layer-by-layer
Doesn't work yet.
2011-12-29 02:03:57 -05:00
Andrew Chin
2d99aef78f Start of some unit tests for setting.py parsing 2011-12-28 16:04:24 -05:00
Andrew Brown
3d9603590b changed Tile to RenderTile 2011-12-28 14:53:47 -05:00
Andrew Brown
cbd5a0e1cc Changed DirtyTiles to RendertileSet 2011-12-28 14:41:49 -05:00
Andrew Brown
fa18b26eb5 copied DirtyTiles and Tile objects to tileset.py 2011-12-22 02:00:50 -05:00
Andrew Brown
b439eef3c6 wrote a failing test for dirtytile post traversal
For the to-be-implemented post traversal method to iterate over the
tiles in an order that will render correctly
2011-12-01 10:54:22 -05:00
Andrew Brown
c6b56030ec dirtytile trees can now iterate at any level
Fixed some broken tests too.
2011-11-20 10:50:37 -05:00
Andrew Brown
4c34e413ab renamed "level" to "depth" in DirtyTilesTree. Also...
iterate_dirty() yields tuples, not reverseiterators
added another level to test_iterate_level()
2011-11-16 20:53:52 -05:00
Andrew Brown
95b4ec5922 wrote some unit tests! 2011-11-16 20:39:01 -05:00