Skip to content

Commit

Permalink
Adding README text to setup's long description
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Aug 27, 2023
1 parent 215b4fa commit 86b103f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@20.8b1
- uses: psf/black@23.7.0
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@
ext_modules_list = []


# grab the README.md text
this_dir = os.path.abspath(os.path.dirname(__file__))
try:
with open(os.path.join(this_dir, "README.md")) as f:
readme = f.read()
except IOError:
readme = ""


# perform the actual build/install
setup(
cmdclass=cmdclass,
Expand Down Expand Up @@ -102,7 +111,7 @@
],
python_requires=">=3.4, <3.12",
license="MIT",
long_description="A Python library for creating and solving mazes.",
long_description=readme,
long_description_content_type="text/markdown",
packages=find_packages(),
package_data={"mazelib": ["generate/*.pxd", "solve/*.pxd", "transmute/*.pxd"]},
Expand Down

0 comments on commit 86b103f

Please sign in to comment.