Skip to content

Commit

Permalink
Merge pull request #118 from KonradIT/dev__support_max
Browse files Browse the repository at this point in the history
MAX support partially added
  • Loading branch information
KonradIT authored Nov 3, 2019
2 parents 756b848 + ea32bee commit b2f8824
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 29 deletions.
31 changes: 11 additions & 20 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
version=$(jq -r .release_version version.json)
echo -ne "Version number: "; read version
echo "Releasing version.... $version"
echo -ne "Change version? [Y/n]: "; read choice
if [ "$choice" == "Y" ]; then
echo -ne "Version number: "; read new_version
tmp=$(mktemp)
jq ".release_version = \"$new_version\"" version.json > "$tmp" && mv "$tmp" version.json
fi

version=$(jq -r .release_version version.json)
echo "Releasing version.... $version"
python setup.py sdist
sudo python setup.py sdist
twine upload "dist/goprocam-$version.tar.gz"

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

github-release release \
--security-token $GITHUB_TOKEN \
--user konradit \
--repo gopro-py-api \
--tag "v$version" \
--name "$name" \
--description "$desc"
--user konradit \
--repo gopro-py-api \
--tag "v$version" \
--name "\"$name\"" \
--description "\"$desc\""

github-release upload \
--security-token $GITHUB_TOKEN \
--user konradit \
--repo gopro-py-api \
--tag "v$version" \
--name "goprocam-$version.tar.gz"
--file "dist/goprocam-$version.tar.gz"
--repo gopro-py-api \
--tag "v$version" \
--name "goprocam-$version.tar.gz" \
--file "dist/goprocam-$version.tar.gz"
17 changes: 16 additions & 1 deletion goprocam/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,12 @@ class AudioTrack:
class ShortClipLength:
OFF="0"
L15s="1"
L30s="2"
L30s="2"
MAX_HYPERSMOOTH="148"
class MaxHypersmooth:
OFF="0"
ON="1"

class Photo:
RESOLUTION="17"
class Resolution:
Expand Down Expand Up @@ -509,6 +514,16 @@ class PhotoTimer:
OFF="0"
T3s="1"
T10s="2"

class Lens:
SOURCE="143"
class Source:
FRONT="0"
BACK="1"
MODE="143"
class Mode:
Single="0"
Dual="1"
class Multishot:
RESOLUTION="28"
class Resolution:
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
from setuptools import setup
import json
with open("README.md", "r") as fh:
long_description = fh.read()
with open("version.json", "r") as ver:
version = json.loads(ver.read())['release_version']

setup(name='goprocam',
version=version,
version="3.0.9",
description='GoPro WiFi API Wrapper for Python - Compatible with HERO3, HERO3+, HERO4, HERO5, HERO+, HERO6',
url='http://github.com/konradit/gopro-py-api',
long_description=long_description,
Expand Down
4 changes: 0 additions & 4 deletions version.json

This file was deleted.

0 comments on commit b2f8824

Please sign in to comment.