Skip to content

Commit 68aa219

Browse files
authored
Merge pull request #3 from Unstructured-IO/roman/pypi-release
feat: add CI task to push release to pypi
2 parents 4cdc5f4 + 27192c7 commit 68aa219

File tree

6 files changed

+105
-2
lines changed

6 files changed

+105
-2
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Pypi Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
- created
8+
- released
9+
10+
env:
11+
PYTHON_VERSION: "3.10"
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ env.PYTHON_VERSION }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ env.PYTHON_VERSION }}
22+
- name: Build artifact
23+
run: |
24+
make install-release
25+
python setup.py sdist
26+
python setup.py bdist_wheel
27+
- name: Publish package
28+
uses: pypa/gh-action-pypi-publish@release/v1
29+
with:
30+
password: ${{ secrets.PYPI_API_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.0.0-dev0
1+
## 0.0.0
22

33
### Enhancements
44

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ install-lint:
1818
install-test:
1919
pip install -r requirements/test.txt
2020

21+
.PHONY: install-release
22+
install-release:
23+
pip install -r requirements/release.txt
24+
2125
.PHONY: install-base
2226
install-base:
2327
pip install -r requirements/common/base.txt
@@ -77,7 +81,7 @@ tidy-autoflake:
7781
check: check-python check-shell
7882

7983
.PHONY: check-python
80-
check-python: check-black check-flake8 check-ruff check-autoflake
84+
check-python: check-black check-flake8 check-ruff check-autoflake check-version
8185

8286
.PHONY: check-black
8387
check-black:

requirements/release.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
twine
2+
wheel

requirements/release.txt

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.9
3+
# by the following command:
4+
#
5+
# pip-compile release.in
6+
#
7+
backports-tarfile==1.2.0
8+
# via jaraco-context
9+
certifi==2024.7.4
10+
# via requests
11+
charset-normalizer==3.3.2
12+
# via requests
13+
docutils==0.21.2
14+
# via readme-renderer
15+
idna==3.7
16+
# via requests
17+
importlib-metadata==8.2.0
18+
# via
19+
# keyring
20+
# twine
21+
jaraco-classes==3.4.0
22+
# via keyring
23+
jaraco-context==5.3.0
24+
# via keyring
25+
jaraco-functools==4.0.1
26+
# via keyring
27+
keyring==25.2.1
28+
# via twine
29+
markdown-it-py==3.0.0
30+
# via rich
31+
mdurl==0.1.2
32+
# via markdown-it-py
33+
more-itertools==10.3.0
34+
# via
35+
# jaraco-classes
36+
# jaraco-functools
37+
nh3==0.2.18
38+
# via readme-renderer
39+
pkginfo==1.10.0
40+
# via twine
41+
pygments==2.18.0
42+
# via
43+
# readme-renderer
44+
# rich
45+
readme-renderer==44.0
46+
# via twine
47+
requests==2.32.3
48+
# via
49+
# requests-toolbelt
50+
# twine
51+
requests-toolbelt==1.0.0
52+
# via twine
53+
rfc3986==2.0.0
54+
# via twine
55+
rich==13.7.1
56+
# via twine
57+
twine==5.1.1
58+
# via -r release.in
59+
urllib3==2.2.2
60+
# via
61+
# requests
62+
# twine
63+
wheel==0.43.0
64+
# via -r release.in
65+
zipp==3.19.2
66+
# via importlib-metadata

test_e2e/test-dest.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ tests_to_ignore=(
6464
'notion.sh'
6565
'dropbox.sh'
6666
'sharepoint.sh'
67+
'databricks-volumes.sh'
6768
)
6869

6970
for test in "${all_tests[@]}"; do

0 commit comments

Comments
 (0)