File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed
src/markdown_equations_fixer Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ include Readme.md
2+ include LICENSE
3+ include pyproject.toml
4+ recursive-include src *.py
5+
Original file line number Diff line number Diff line change 55
66here = 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
1322with open (os .path .join (here , "src/markdown_equations_fixer/__init__.py" )) as f :
Original file line number Diff line number Diff line change 1- __version__ = "1.1.7 "
1+ __version__ = "1.2.0 "
You can’t perform that action at this time.
0 commit comments