Skip to content

Commit a5ed521

Browse files
committed
Add MANIFEST.in to include necessary files and update setup.py to support multiple README filename variations; bump version to 1.2.0
1 parent 0289fce commit a5ed521

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

MANIFEST.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include Readme.md
2+
include LICENSE
3+
include pyproject.toml
4+
recursive-include src *.py
5+

setup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@
55

66
here = os.path.abspath(os.path.dirname(__file__))
77

8-
# Get the long description from the README file (match actual filename)
9-
with open(os.path.join(here, "Readme.md"), encoding="utf-8") as f:
10-
long_description = f.read()
8+
# Get the long description from the README file (try common filename variations)
9+
readme_files = ["Readme.md", "README.md", "readme.md"]
10+
long_description = ""
11+
for readme_file in readme_files:
12+
readme_path = os.path.join(here, readme_file)
13+
if os.path.exists(readme_path):
14+
with open(readme_path, encoding="utf-8") as f:
15+
long_description = f.read()
16+
break
17+
18+
if not long_description:
19+
long_description = "A CLI tool to fix mathematical equations in markdown files and convert between formats"
1120

1221
# Get the version from the __init__.py file
1322
with open(os.path.join(here, "src/markdown_equations_fixer/__init__.py")) as f:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.7"
1+
__version__ = "1.2.0"

0 commit comments

Comments
 (0)