Skip to content

Commit 91d4326

Browse files
committed
Fixed pypi upload and version bump to 0.2.0.1
1 parent f3b387e commit 91d4326

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif()
2020

2121
# Pybindings project
2222
set(TARGET_NAME depthai)
23-
project(${TARGET_NAME} VERSION "0") # revision of bindings [depthai-core].[rev]
23+
project(${TARGET_NAME} VERSION "1") # revision of bindings [depthai-core].[rev]
2424

2525
# Add depthai-cpp dependency
2626
add_subdirectory(depthai-core EXCLUDE_FROM_ALL)

ci/upload-pypi.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
#!/bin/bash
22
python3 -m pip install -U twine
33

4-
echo "[TEST] PYPI_SERVER: $PYPI_SERVER ; PYPI_USER: $PYPI_USER ; PYPI_PASSWORD: $PYPI_PASSWORD"
4+
# Uploads prebuilt binary distribution
55
for file in wheelhouse/audited/*.whl; do
6-
echo "Uploading $file"
7-
python3 -m twine upload --repository-url "$PYPI_SERVER" --username $PYPI_USER --password $PYPI_PASSWORD $file
6+
echo "Uploading $file"
7+
python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
8+
done
9+
10+
# Uploads zip source distribution
11+
for file in wheelhouse/audited/*.zip; do
12+
echo "Uploading $file"
13+
python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
14+
done
15+
16+
# Uploads tar.bz2 source distribution
17+
for file in wheelhouse/audited/*.tar.bz2; do
18+
echo "Uploading $file"
19+
python3 -m twine upload --repository-url "$PYPI_SERVER" --username "$PYPI_USER" --password "$PYPI_PASSWORD" "$file"
820
done

0 commit comments

Comments
 (0)