Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Latest commit

History

History

adafruit-bpt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

How to Update the Package Manifest

2. Install the GitPython module for Python 3

python -m pip install gitpython

3. Check for updates

Run the Adafruit Arduino Board Package Tool (bpt) script from the repository's home directory, using the bpt.ini config file, the package_dmadison_xinput_index.json board index JSON file, and the check-updates command:

python adafruit-bpt/bpt.py -c adafruit-bpt/bpt.ini -i package_dmadison_xinput_index.json check-updates

This will poll the XInput board GitHub repositories for updates:

Comparing current packages with published versions in board index...
- XInput AVR Boards
latest index version = 1.0.5
!!!! BOARD INDEX NOT UP TO DATE !!!!
- XInput SparkFun Boards
latest index version = 1.0.0

4. Update the board index

If the board index is not up to date, run the script again with the update-index command. There are two packages in the repo: "XInput AVR Boards", and "XInput SparkFun Boards". Each package needs to be updated separately:

python adafruit-bpt/bpt.py -c adafruit-bpt/bpt.ini -i package_dmadison_xinput_index.json update-index "XInput AVR Boards"
python adafruit-bpt/bpt.py -c adafruit-bpt/bpt.ini -i package_dmadison_xinput_index.json update-index "XInput SparkFun Boards"

If the remote contains a newer version of the boards, the script will create a new board package archive (tarball) and update the board index JSON.

5. Commit the changes

And we're done :D