From 05d05297caeb6adcfdcea733171b2fc7dff7882b Mon Sep 17 00:00:00 2001 From: niklases Date: Sun, 28 Jul 2024 11:12:52 +0200 Subject: [PATCH] Update setup.py --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 7756b93..b8fb390 100644 --- a/setup.py +++ b/setup.py @@ -3,14 +3,17 @@ # or for editable/develop mode with: pip install -e . +import os from setuptools import setup, find_packages -from pathlib import Path from pypef import __version__ -this_directory = Path(__file__).parent -long_description = Path.joinpath(this_directory, "README.md").read_text() +directory_readme = os.path.join(os.path.dirname(__file__), "README.md") +with open(directory_readme, 'r') as readme: + long_description = readme.read() + +long_description = long_description.replace(".github/imgs/", "https://github.com/niklases/PyPEF/raw/main/.github/imgs/") with open("requirements.txt", "r", encoding="utf-8") as install_requirements: requirements = install_requirements.read()