Skip to content

Commit

Permalink
Remove dark mode logo from the PyPI long description
Browse files Browse the repository at this point in the history
  • Loading branch information
aymgal committed Apr 17, 2024
1 parent 087879c commit aa5d024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
readme = f.read()

# Use the README as long description but remove the second version
# of the logo (readable only by GitHub's dark mode interface)
long_description = readme.replace('<img src="https://raw.githubusercontent.com/aymgal/COOLEST/main/images/full_logo_dark_bg.png#gh-dark-mode-only" width="600" alt="COOLEST logo" />', '')

# Python version
python_requires = '>=3.8'

Expand Down Expand Up @@ -45,7 +49,7 @@
packages=setuptools.find_packages(),
license=release_info['__license__'],
description=release_info['__description__'],
long_description=readme,
long_description=long_description,
long_description_content_type='text/markdown',
keywords=["coolest", "lensing", "gravitation", "astrophysics"],

Expand Down

0 comments on commit aa5d024

Please sign in to comment.