Skip to content

Commit

Permalink
Merge pull request #68 from permitio/omer/per-9663-add-readme-to-setuppy
Browse files Browse the repository at this point in the history
Fix long description error on CI
  • Loading branch information
omer9564 authored Apr 11, 2024
2 parents 1429971 + 13bc229 commit eea2d0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

from setuptools import find_packages, setup


Expand All @@ -8,6 +10,12 @@ def get_requirements(env=""):
return [x.strip() for x in fp.read().split("\n") if not x.startswith("#")]


def get_readme() -> str:
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
return long_description


setup(
name="permit",
version="2.3.0",
Expand All @@ -18,6 +26,8 @@ def get_requirements(env=""):
python_requires=">=3.8",
description="Permit.io python sdk",
install_requires=get_requirements(),
long_description=get_readme(),
long_description_content_type="text/markdown",
classifiers=[
"Operating System :: OS Independent",
"Programming Language :: Python",
Expand Down

0 comments on commit eea2d0f

Please sign in to comment.