File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import email
2
+ import importlib .metadata
2
3
import io
3
4
import itertools
4
5
import mimetypes
@@ -103,6 +104,7 @@ def _human_size(size: int) -> str:
103
104
104
105
templates .env .filters ['human_size' ] = _human_size
105
106
templates .env .filters ['pluralize' ] = _pluralize
107
+ templates .env .globals ['pypi_browser_version' ] = importlib .metadata .version ('pypi-browser-webapp' )
106
108
107
109
108
110
@app .route ('/' )
Original file line number Diff line number Diff line change 34
34
<div class =" container mt-5 mb-3" >
35
35
<footer class =" border-top py-3 px-3" >
36
36
<p class =" text-muted small" >
37
- PyPI Browser is an open source project.
37
+ PyPI Browser v{{pypi_browser_version}} is an open source project.
38
38
<br />
39
- <a href =" {{url_for('package', package='pypibrowser ')}}" >View its files with PyPI Browser</a >
39
+ <a href =" {{url_for('package', package='pypi-browser-webapp ')}}" >View its files with PyPI Browser</a >
40
40
<br />
41
41
<a href =" https://github.com/chriskuehl/pypi-browser" >View it on GitHub</a >
42
42
</p >
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
- name = " pypibrowser "
2
+ name = " pypi-browser-webapp "
3
3
version = " 0.0.0"
4
4
description = " PyPI package browsing web application"
5
5
authors = [
" Chris Kuehl <[email protected] >" ]
You can’t perform that action at this time.
0 commit comments