mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-10-31 03:20:40 +00:00
docs: fix links for package publishing
This commit is contained in:
parent
9831d8a24a
commit
c0c8e081b8
13
setup.py
13
setup.py
@ -1,4 +1,6 @@
|
||||
import subprocess
|
||||
import sys
|
||||
from functools import lru_cache
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
@ -17,8 +19,19 @@ else:
|
||||
entry_points = None
|
||||
|
||||
|
||||
@lru_cache()
|
||||
def get_git_revision_hash() -> str:
|
||||
return subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii").strip()
|
||||
|
||||
|
||||
revision_hash = get_git_revision_hash()
|
||||
|
||||
with open("README.md", encoding="utf-8") as f:
|
||||
readme = f.read()
|
||||
readme = readme.replace(
|
||||
'<img src="',
|
||||
f'<img src="https://raw.githubusercontent.com/brycedrennan/imaginAIry/{revision_hash}/',
|
||||
)
|
||||
|
||||
setup(
|
||||
name="imaginAIry",
|
||||
|
Loading…
Reference in New Issue
Block a user