Skip to content

Commit

Permalink
Merge pull request #65 from barseghyanartur/dev
Browse files Browse the repository at this point in the history
Fix readme
  • Loading branch information
barseghyanartur committed Nov 19, 2023
2 parents ddefc3c + abbc7e0 commit 68b1293
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build_docs:

check_release:
python setup.py sdist bdist_wheel
twine check dist/* --verbose
twine check dist/*

clean:
find . -name "*.pyc" -exec rm -rf {} \;
Expand Down
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import os
import re

from setuptools import find_packages, setup


def clean_readme(text):
# Define the pattern to match ":emphasize-lines:" followed by digits
pattern = r":emphasize-lines: \d+"
# Replace the found patterns with an empty string
return re.sub(pattern, "", text)


version = "0.17.10"

try:
readme = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
readme = clean_readme(readme)
except OSError:
readme = ""

Expand Down

0 comments on commit 68b1293

Please sign in to comment.