Skip to content

Commit 70bd204

Browse files
chg: ♻️ preparing pip publishing
1 parent 061fbbe commit 70bd204

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,4 @@ mindee_client = Client(
215215

216216
financial_document = mindee_client.parse_financial_document("./path/to/invoice.pdf/or/receipt.jpg")
217217
print(financial_document.document)
218-
```
219-
218+
```

setup.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
import subprocess
33
import re
44
from setuptools import find_packages, setup
5+
import pathlib
56

67
__version__ = None
78

9+
# The directory containing this file
10+
HERE = pathlib.Path(__file__).parent
11+
12+
# The text of the README file
13+
README = (HERE / "README.md").read_text()
14+
815

916
def get_latest_git_tag(filepath):
1017
try:
@@ -23,7 +30,7 @@ def get_latest_git_tag(filepath):
2330
APP_NAME = "mindee"
2431
PACKAGE_NAME = "mindee"
2532
GIT_URL = "https://github.com/publicMindee/mindee-api-python"
26-
VERSION = get_latest_git_tag(__file__)
33+
VERSION = "v0.1"
2734

2835

2936
def make_requirements_list(file="requirements.txt", only_regular=True):
@@ -46,9 +53,11 @@ def make_requirements_list(file="requirements.txt", only_regular=True):
4653

4754

4855
setup(
49-
name=f"{PACKAGE_NAME}-{VERSION}",
56+
name=f"{PACKAGE_NAME}",
5057
version=VERSION,
58+
long_description_content_type="text/markdown",
5159
url=GIT_URL,
60+
long_description=README,
5261
packages=find_packages(),
5362
install_requires=make_requirements_list(),
5463
include_package_data=True

0 commit comments

Comments
 (0)