whosonfirst / whosonfirst-sources

Where things come from in Who's On First.
Other
21 stars 13 forks source link

Support Python 3 #169

Closed stepps00 closed 4 years ago

stepps00 commented 4 years ago

Fixes https://github.com/whosonfirst/whosonfirst-sources/issues/167.

This PR updates the compile.py, docs.py, and Makefile to be Python 3 compatible. I've verified the changes work, and docs write out correctly.

Running the make all command...

>>>$ make all
python ./bin/compile.py > data/sources-spec-`date "+%Y%m%d"`.json
cp data/sources-spec-`date "+%Y%m%d"`.json data/sources-spec-latest.json
python ./bin/docs.py

Results in the expected...

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   LICENSE.md
    modified:   data/sources-spec-latest.json
    modified:   sources/README.md

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    data/sources-spec-20200427.json