Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Dec 24, 2024
1 parent 2116d88 commit 9ffdabd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import re
from pathlib import Path

from setuptools import find_packages, setup

Expand All @@ -19,9 +19,9 @@ def clean_readme(text: str) -> str:
version = "0.17.14"

try:
readme = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
readme = clean_readme(readme)
except OSError:
readme_path = Path(__file__).parent / "README.rst"
readme = clean_readme(readme_path.read_text())
except FileNotFoundError:
readme = ""

dependency_links = []
Expand Down

0 comments on commit 9ffdabd

Please sign in to comment.