Skip to content

Commit

Permalink
only add pypi entries in readme if using pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Chan authored and coretl committed Feb 15, 2024
1 parent 8275107 commit 00cdda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/README.md.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![CI]({{repo_url}}/actions/workflows/ci.yml/badge.svg)]({{repo_url}}/actions/workflows/ci.yml)
[![Coverage](https://codecov.io/gh/{{github_org}}/{{repo_name}}/branch/main/graph/badge.svg)](https://codecov.io/gh/{{github_org}}/{{repo_name}})
[![PyPI](https://img.shields.io/pypi/v/{{distribution_name}}.svg)](https://pypi.org/project/{{distribution_name}})
{% if pypi %}[![PyPI](https://img.shields.io/pypi/v/{{distribution_name}}.svg)](https://pypi.org/project/{{distribution_name}}){% endif %}
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

# {{ package_name }}
Expand All @@ -12,7 +12,7 @@ how it does it, and why people should use it.

Source | <{{repo_url}}>
:---: | :---:
PyPI | `pip install {{distribution_name}}`
{% if pypi %}PyPI | `pip install {{distribution_name}}`{% endif %}
{% if sphinx %}Documentation | <{{docs_url}}>{% endif %}
Releases | <{{repo_url}}/releases>

Expand Down

0 comments on commit 00cdda4

Please sign in to comment.