Skip to content

Commit

Permalink
add description and python version
Browse files Browse the repository at this point in the history
  • Loading branch information
viperadnan-git committed Sep 1, 2024
1 parent a1da191 commit 401a07e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ def get_version():
return version_match.group(1)
raise RuntimeError("Unable to find version string.")

# Function to read the README.md file for the long description
def read_long_description():
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme_path, 'r', encoding='utf-8') as f:
return f.read()

setup(
name="mailtm-python",
version=get_version(), # Dynamically get the version
Expand All @@ -22,6 +28,8 @@ def get_version():
"requests",
],
description="A Python SDK for interacting with the Mail.tm API",
long_description=read_long_description(), # Add long description from README.md
long_description_content_type="text/markdown", # Specify the format of the long description
author="Adnan Ahmad",
author_email="viperadnan@gmail.com",
url="https://github.com/viperadnan-git/mailtm-python-sdk",
Expand Down

0 comments on commit 401a07e

Please sign in to comment.