This repository is used to package Hearthstone's card data as the hearthstone_data package on PyPI.
CardDefs.xml, BountyDefs.xml and MercenaryDefs.xml are sourced from api.hearthstonejson.com. The strings files are not published there and still come from hsdata.
The build script will automatically fetch the latest data and generate a new version of this package with the appropriate build number. No changes or commits to this repository are necessary as part of the release process.
To trigger an automated release via GitHub actions, open this page and click "Run workflow".
Prerequisites:
xmllint(e.g. Debian/Ubuntu:libxml2-utils)curlandgit
Ensure that wheel is installed in your Python environment or virtualenv.
Then, run the following:
$ git clean -xfd
$ ./bootstrap.sh
$ python setup.py sdist bdist_wheel upload --sign