Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit b2f8824

Browse files
authored
Merge pull request #118 from KonradIT/dev__support_max
MAX support partially added
2 parents 756b848 + ea32bee commit b2f8824

File tree

4 files changed

+28
-29
lines changed

4 files changed

+28
-29
lines changed

deploy.sh

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
version=$(jq -r .release_version version.json)
1+
echo -ne "Version number: "; read version
22
echo "Releasing version.... $version"
3-
echo -ne "Change version? [Y/n]: "; read choice
4-
if [ "$choice" == "Y" ]; then
5-
echo -ne "Version number: "; read new_version
6-
tmp=$(mktemp)
7-
jq ".release_version = \"$new_version\"" version.json > "$tmp" && mv "$tmp" version.json
8-
fi
9-
10-
version=$(jq -r .release_version version.json)
11-
echo "Releasing version.... $version"
12-
python setup.py sdist
3+
sudo python setup.py sdist
134
twine upload "dist/goprocam-$version.tar.gz"
145

156
if [ ! -z "$GITHUB_TOKEN" ]
@@ -25,16 +16,16 @@ read desc
2516

2617
github-release release \
2718
--security-token $GITHUB_TOKEN \
28-
--user konradit \
29-
--repo gopro-py-api \
30-
--tag "v$version" \
31-
--name "$name" \
32-
--description "$desc"
19+
--user konradit \
20+
--repo gopro-py-api \
21+
--tag "v$version" \
22+
--name "\"$name\"" \
23+
--description "\"$desc\""
3324

3425
github-release upload \
3526
--security-token $GITHUB_TOKEN \
3627
--user konradit \
37-
--repo gopro-py-api \
38-
--tag "v$version" \
39-
--name "goprocam-$version.tar.gz"
40-
--file "dist/goprocam-$version.tar.gz"
28+
--repo gopro-py-api \
29+
--tag "v$version" \
30+
--name "goprocam-$version.tar.gz" \
31+
--file "dist/goprocam-$version.tar.gz"

goprocam/constants.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,12 @@ class AudioTrack:
393393
class ShortClipLength:
394394
OFF="0"
395395
L15s="1"
396-
L30s="2"
396+
L30s="2"
397+
MAX_HYPERSMOOTH="148"
398+
class MaxHypersmooth:
399+
OFF="0"
400+
ON="1"
401+
397402
class Photo:
398403
RESOLUTION="17"
399404
class Resolution:
@@ -509,6 +514,16 @@ class PhotoTimer:
509514
OFF="0"
510515
T3s="1"
511516
T10s="2"
517+
518+
class Lens:
519+
SOURCE="143"
520+
class Source:
521+
FRONT="0"
522+
BACK="1"
523+
MODE="143"
524+
class Mode:
525+
Single="0"
526+
Dual="1"
512527
class Multishot:
513528
RESOLUTION="28"
514529
class Resolution:

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
from setuptools import setup
2-
import json
32
with open("README.md", "r") as fh:
43
long_description = fh.read()
5-
with open("version.json", "r") as ver:
6-
version = json.loads(ver.read())['release_version']
74

85
setup(name='goprocam',
9-
version=version,
6+
version="3.0.9",
107
description='GoPro WiFi API Wrapper for Python - Compatible with HERO3, HERO3+, HERO4, HERO5, HERO+, HERO6',
118
url='http://github.com/konradit/gopro-py-api',
129
long_description=long_description,

version.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)