Skip to content

Commit

Permalink
Fix setup to use readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
shaikatzz committed Apr 16, 2024
1 parent d47d4b1 commit 00f5f63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
- name: inject readme into setup.py long_description
run: |
python -c "import os; from setuptools import setup; setup(long_description=open('README.md').read())"
- name: Build package
run: python -m build
- name: Publish package
Expand Down
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"pydantic >= 2",
"typing-extensions >= 4.7.1",
]
# read the contents of your README file
from pathlib import Path

this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()

setup(
name=NAME,
Expand All @@ -42,9 +47,7 @@
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="MIT",
long_description_content_type='text/markdown',
long_description="""\
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
""", # noqa: E501
long_description=long_description,
long_description_content_type="text/markdown",
package_data={"monday_code": ["py.typed"]},
)

0 comments on commit 00f5f63

Please sign in to comment.