Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Latest commit

 

History

History
85 lines (52 loc) · 2.48 KB

File metadata and controls

85 lines (52 loc) · 2.48 KB

Badge Server

Displaying the compatibility status for your package as a Github Badge.

Types of badges

  1. Self Compatibility
  2. Compatibility with Google OSS Python packages
  3. Dependency version status

Usage

What to Check

  • Latest released version on PyPI
package=[name_on_pypi]
  • Github head version
package=git%2Bgit://github.com/[your_repo_name].git%23subdirectory=[subdirectory_containing_setup_py_file]

How to Check

  • One badge

Add this line to your README file on Github:

.. |package_details_example| image:: https://python-compatibility-tools.appspot.com/one_badge_image?package=compatibility_lib
   :target: https://python-compatibility-tools.appspot.com/one_badge_target?package=compatibility_lib

And the badge for package details will show up like below:

https://user-images.githubusercontent.com/12888824/46687056-c1255f00-cbae-11e8-9066-91d62cb120e0.png

  • Multiple badges

Adding the link of the badge image and badge target to your README file on Github:

.. csv-table::
   :header: "CHECK_TYPE", "RESULT"
   :widths: 20, 30

   "Self Compatibility", |self_compatibility|
   "Google Compatibility", |google_compatibility|
   "Dependency Version Status", |dependency_version_status|

.. |self_compatibility| image:: https://python-compatibility-tools.appspot.com/self_compatibility_badge_image?package=compatibility_lib
   :target: https://python-compatibility-tools.appspot.com/self_compatibility_badge_target?package=compatibility_lib
.. |google_compatibility| image:: https://python-compatibility-tools.appspot.com/google_compatibility_badge_image?package=compatibility_lib
   :target: https://python-compatibility-tools.appspot.com/google_compatibility_badge_target?package=compatibility_lib
.. |dependency_version_status| image:: https://python-compatibility-tools.appspot.com/self_dependency_badge_image?package=compatibility_lib
   :target: https://python-compatibility-tools.appspot.com/self_dependency_badge_target?package=compatibility_lib

And the badges will show up like below:

https://user-images.githubusercontent.com/12888824/46686958-8a4f4900-cbae-11e8-80dc-017bfd9ea437.png

For maintainers

Steps for building the docker image and deploying to GKE:

  • Update the dependency version in requirements.txt if there are any.
  • Deploy!
gcloud app deploy