Skip to content

Commit 93841f8

Browse files
For first production release
1 parent cd00619 commit 93841f8

File tree

5 files changed

+50
-7
lines changed

5 files changed

+50
-7
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.12"
21+
22+
- name: Install build tools
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install build twine
26+
27+
- name: Build package
28+
working-directory: packages/markitdown # Change to the correct directory
29+
run: |
30+
rm -rf dist
31+
python -m build
32+
33+
- name: Mask API Token
34+
run: echo "::add-mask::$PYPI_API_TOKEN"
35+
36+
- name: Publish to TestPyPI
37+
working-directory: packages/markitdown # Change to the correct directory
38+
env:
39+
TEST_PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
40+
run: |
41+
python -m twine upload --repository pypi dist/* \
42+
--username __token__ --password $PYPI_API_TOKEN

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Openize.MarkItDown
22

3-
![Python Version](https://img.shields.io/badge/python-3.7--3.12-blue)
3+
![Python Version](https://img.shields.io/badge/python-3.12+-blue)
44
![License](https://img.shields.io/badge/license-MIT-green)
55
![Status](https://img.shields.io/badge/status-alpha-orange)
66

@@ -29,7 +29,7 @@ You'll need to obtain valid licenses for these libraries separately. The package
2929
### From TestPyPI
3030

3131
```sh
32-
pip install -i https://test.pypi.org/simple/ openize-markitdown
32+
pip install openize-markitdown
3333
```
3434

3535
### From Source
@@ -67,7 +67,8 @@ converter = MarkItDown(output_dir)
6767
# Convert document and send output to LLM
6868
converter.convert_document(input_file, insert_into_llm=True)
6969

70-
print("Conversion completed and data sent to LLM.")```
70+
print("Conversion completed and data sent to LLM.")
71+
```
7172

7273
## Environment Variables
7374

packages/markitdown/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Openize.MarkItDown
22

3-
![Python Version](https://img.shields.io/badge/python-3.7--3.12-blue)
3+
![Python Version](https://img.shields.io/badge/python-3.12+-blue)
44
![License](https://img.shields.io/badge/license-MIT-green)
55
![Status](https://img.shields.io/badge/status-alpha-orange)
66

@@ -29,7 +29,7 @@ You'll need to obtain valid licenses for these libraries separately. The package
2929
### From TestPyPI
3030

3131
```sh
32-
pip install -i https://test.pypi.org/simple/ openize-markitdown
32+
pip install openize-markitdown
3333
```
3434

3535
## Usage

packages/markitdown/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[metadata]
33
name = openize-markitdown
4-
version = 25.3.17
4+
version = 25.3.0
55
author = Openize
66
author_email = packages@openize.com
77
description = A document converter for Word, PDF, Excel, and PowerPoint to Markdown.

packages/markitdown/src/openize/markitdown/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
sys.path.append(os.path.dirname(__file__))
55

6-
__version__ = "25.3.17"
6+
__version__ = "25.3.0"
77

88
from .processor import DocumentProcessor
99
from .converters import WordConverter, PDFConverter, ExcelConverter, PowerPointConverter

0 commit comments

Comments
 (0)