Skip to content

Commit

Permalink
Merge branch 'develop' into ferdnyc-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc authored Dec 23, 2018
2 parents b29a682 + beec2f8 commit 101ac08
Show file tree
Hide file tree
Showing 178 changed files with 281,819 additions and 66,383 deletions.
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ about: Create a report to help us improve OpenShot

---

**Please fill out this template**

**Describe the bug**
A clear and concise description of what the bug is.

**System Details (please complete the following information):**
- Operating System / Distro: [e.g. Windows 10, Linux Mint 17.1]
- OpenShot Version [e.g. 2.4.1]
- OpenShot Version [e.g. 2.4.3]

**To Reproduce**
Steps to reproduce the behavior:
Expand Down
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ about: Suggest an idea for OpenShot

---

**Please fill out this template**

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Expand Down
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/i-have-a-question.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ about: Ask a question about obtaining, installing, or using OpenShot

---

**Please fill out this template**

<!--Give your question a descriptive title so that others will be able to understand at a glance how they can help. Then, explain in more detail under "My Question" below -->

**My Question:**
Expand All @@ -15,7 +17,7 @@ about: Ask a question about obtaining, installing, or using OpenShot

**System Details**
- Operating System / Distro: [e.g. Windows 10, Linux Mint 17.1]
- OpenShot Version [e.g. 2.4.1]
- OpenShot Version [e.g. 2.4.3]

**Screenshots**
<!-- If applicable, add screenshots to help illustrate your question. You can include screenshots by copy/pasting them here, dragging-and-dropping into this form, or clicking below and loading images saved to your computer. All images are public, so please don't post screenshots containing personal information. -->
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
idea/*
doc/_build
**/__pycache__/
build
dist
openshot_qt.egg-info
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: cpp
dist: trusty

before_install:
- sudo add-apt-repository ppa:openshot.developers/libopenshot-daily -y
- sudo apt-get update -qq
- sudo apt-get install gcc-4.8 xvfb tar cmake libopenshot-dev libopenshot-audio-dev libunittest++-dev swig doxygen doxypy libssl-dev python3 python3-dev python3-pip python3-pyqt5 python3-setuptools python3-openshot python3-pyqt5 python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-pyqt5.qtwebkit python3-requests python3-xdg python3-zmq qttranslations5-l10n -y
- sudo apt autoremove -y
- wget https://files.pythonhosted.org/packages/d0/6d/9492644452727094543575de9846af5a2b9c764f760e2d414af7c876618c/cx_Freeze-5.0.1.tar.gz
- tar xf cx_Freeze-5.0.1.tar.gz
- cd cx_Freeze-5.0.1; python3 setup.py build; sudo python3 setup.py install; cd ..;
- pwd

script:
- python3 freeze.py build;
- xvfb-run --auto-servernum --server-num=1 --server-args "-screen 0 1920x1080x24" python3 src/tests/query_tests.py

notifications:
email: true

env:
global:
- TRAVIS_LIBOPENSHOT=TEST
- LANG="en_US.UTF-8"
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ developer credits.


Translation:
See src/locale/ folders for details on translation credits. Each
See src/language/ folder for details on translation credits. Each
translation contains a "translator-credits" key containing the
details of each translator that contributed to that language.

Expand Down Expand Up @@ -35,4 +35,4 @@ https://github.com/OpenShot/openshot-qt/graphs/contributors
https://github.com/OpenShot/libopenshot/graphs/contributors
https://github.com/OpenShot/libopenshot-audio/graphs/contributors
http://openshot.org/developers
https://launchpad.net/~openshot.developers
https://launchpad.net/~openshot.developers
8 changes: 4 additions & 4 deletions freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ def find_files(directory, patterns):
build_exe_options = {}

# Copy QT translations to local folder (to be packaged)
qt_local_path = os.path.join(PATH, "openshot_qt", "locale", "QT")
qt_local_path = os.path.join(PATH, "openshot_qt", "language")
qt_system_path = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
if os.path.exists(qt_system_path):
# Create local QT translation folder (if needed)
if not os.path.exists(qt_local_path):
os.mkdir(qt_local_path)
# Loop through QT translation files and copy them
for file in os.listdir(qt_system_path):
# Copy QT locale files
if file.startswith("qt_") and file.endswith(".qm"):
# Copy QT translation files
if (file.startswith("qt_") or file.startswith("qtbase_")) and file.endswith(".qm"):
shutil.copyfile(os.path.join(qt_system_path, file), os.path.join(qt_local_path, file))

if sys.platform == "win32":
Expand Down Expand Up @@ -272,4 +272,4 @@ def find_files(directory, patterns):

# Remove temporary folder (if SRC folder present)
if os.path.exists(os.path.join(PATH, "src")):
rmtree(os.path.join(PATH, "openshot_qt"), True)
rmtree(os.path.join(PATH, "openshot_qt"), True)
25 changes: 15 additions & 10 deletions installer/analyze_errors.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
"""Analyze archived/exported error messages and aggregate data"""
import re
import sys
import os
import json
import urllib.request
from urllib.request import Request, urlopen
from collections import OrderedDict

# Read in slack token
if len(sys.argv) >= 2:
slack_token = sys.argv[1]

# Compile error message matching regex (file path, line number)
error_regex = re.compile(r"([\\|/].*.py).*line (.*),")
Expand All @@ -13,10 +17,10 @@
openshot_version_regex = re.compile(r"\((.*)\)")

# Message folder with exported archived error messages
messages_folder = "/home/jonathan/Downloads/OpenShot Project Slack export Jan 21 2018/library-exceptions"
messages_folder = "/home/jonathan/Downloads/OpenShot Project Slack export Jul 9 2018 - Aug 8 2018/python-exceptions"
cache_path = local_path = os.path.join(messages_folder, "cache")
version_starts_with = "2.4.1"
scan_cache = True
version_starts_with = "2.4.2"
scan_cache = False

# Create cache folder (if needed)
if not os.path.exists(cache_path):
Expand All @@ -29,9 +33,9 @@
if os.path.isfile(message_path):
with open(message_path, "r") as f:
for message in json.load(f):
if message.get("file"):
file_title = message.get("file").get("title")
file_id = message.get("file").get("id")
for file_details in message.get("files", []):
file_title = file_details.get("title")
file_id = file_details.get("id")

# Parse openshot version (if any)
version = "Unknown"
Expand All @@ -47,9 +51,10 @@
# Cache attachment (if needed)
local_path = os.path.join(cache_path, "%s-%s" % (version, file_id))
if not os.path.exists(local_path):
attachment_url = message.get("file").get("url_private_download")
response = urllib.request.urlopen(attachment_url)
data = response.read()
attachment_url = file_details.get("url_private_download").split("?")[0]
q = Request(attachment_url)
q.add_header('Authorization', slack_token)
data = urlopen(q).read()

with open(local_path, "wb") as f1:
print("Writing local file: %s-%s" % (version, file_id))
Expand Down
2 changes: 1 addition & 1 deletion installer/build-mac-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mv "$OS_PATH/MacOS/blender" "$OS_PATH/Resources/blender"; ln -s "../Resources/bl
mv "$OS_PATH/MacOS/classes" "$OS_PATH/Resources/classes"; ln -s "../Resources/classes" "$OS_PATH/MacOS/classes";
mv "$OS_PATH/MacOS/effects" "$OS_PATH/Resources/effects"; ln -s "../Resources/effects" "$OS_PATH/MacOS/effects";
mv "$OS_PATH/MacOS/images" "$OS_PATH/Resources/images"; ln -s "../Resources/images" "$OS_PATH/MacOS/images";
mv "$OS_PATH/MacOS/locale" "$OS_PATH/Resources/locale"; ln -s "../Resources/locale" "$OS_PATH/MacOS/locale";
mv "$OS_PATH/MacOS/language" "$OS_PATH/Resources/language"; ln -s "../Resources/language" "$OS_PATH/MacOS/language";
mv "$OS_PATH/MacOS/presets" "$OS_PATH/Resources/presets"; ln -s "../Resources/presets" "$OS_PATH/MacOS/presets";
mv "$OS_PATH/MacOS/profiles" "$OS_PATH/Resources/profiles"; ln -s "../Resources/profiles" "$OS_PATH/MacOS/profiles";
mv "$OS_PATH/MacOS/settings" "$OS_PATH/Resources/settings"; ln -s "../Resources/settings" "$OS_PATH/MacOS/settings";
Expand Down
Loading

0 comments on commit 101ac08

Please sign in to comment.