OpenShot Video Editor  2.0.0
info.py
Go to the documentation of this file.
1 ##
2 #
3 # @file
4 # @brief This file contains the current version number of OpenShot, along with other global settings.
5 # @author Jonathan Thomas <jonathan@openshot.org>
6 #
7 # @section LICENSE
8 #
9 # Copyright (c) 2008-2018 OpenShot Studios, LLC
10 # (http://www.openshotstudios.com). This file is part of
11 # OpenShot Video Editor (http://www.openshot.org), an open-source project
12 # dedicated to delivering high quality video editing and animation solutions
13 # to the world.
14 #
15 # OpenShot Video Editor is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU General Public License as published by
17 # the Free Software Foundation, either version 3 of the License, or
18 # (at your option) any later version.
19 #
20 # OpenShot Video Editor is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 # GNU General Public License for more details.
24 #
25 # You should have received a copy of the GNU General Public License
26 # along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
27 #
28 
29 import os
30 
31 VERSION = "2.4.2"
32 MINIMUM_LIBOPENSHOT_VERSION = "0.2.0"
33 DATE = "20180630000000"
34 NAME = "openshot-qt"
35 PRODUCT_NAME = "OpenShot Video Editor"
36 GPL_VERSION = "3"
37 DESCRIPTION = "Create and edit stunning videos, movies, and animations"
38 COMPANY_NAME = "OpenShot Studios, LLC"
39 COPYRIGHT = "Copyright (c) 2008-2018 %s" % COMPANY_NAME
40 CWD = os.getcwd()
41 PATH = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) # Primary openshot folder
42 HOME_PATH = os.path.join(os.path.expanduser("~"))
43 USER_PATH = os.path.join(HOME_PATH, ".openshot_qt")
44 BACKUP_PATH = os.path.join(USER_PATH, "backup")
45 BLENDER_PATH = os.path.join(USER_PATH, "blender")
46 ASSETS_PATH = os.path.join(USER_PATH, "assets")
47 THUMBNAIL_PATH = os.path.join(USER_PATH, "thumbnail")
48 CACHE_PATH = os.path.join(USER_PATH, "cache")
49 PREVIEW_CACHE_PATH = os.path.join(USER_PATH, "preview-cache")
50 TITLE_PATH = os.path.join(USER_PATH, "title")
51 PROFILES_PATH = os.path.join(PATH, "profiles")
52 IMAGES_PATH = os.path.join(PATH, "images")
53 TRANSITIONS_PATH = os.path.join(USER_PATH, "transitions")
54 EXPORT_PRESETS_DIR = os.path.join(PATH, "presets")
55 EXPORT_TESTS = os.path.join(USER_PATH, "tests")
56 USER_PROFILES_PATH = os.path.join(USER_PATH, "profiles")
57 
58 # Create PATHS if they do not exist (this is where temp files are stored... such as cached thumbnails)
59 for folder in [USER_PATH, THUMBNAIL_PATH, CACHE_PATH, BLENDER_PATH, ASSETS_PATH, TITLE_PATH, PROFILES_PATH, IMAGES_PATH,
60  TRANSITIONS_PATH, EXPORT_TESTS, BACKUP_PATH, USER_PROFILES_PATH, PREVIEW_CACHE_PATH]:
61  if not os.path.exists(folder.encode("UTF-8")):
62  os.makedirs(folder, exist_ok=True)
63 
64 # names of all contributors, using "u" for unicode encoding
65 JT = {"name": u"Jonathan Thomas", "email": "jonathan@openshot.org", "website":"http://openshot.org/developers/jonathan"}
66 
67 # Languages
68 CURRENT_LANGUAGE = 'en_US'
69 SUPPORTED_LANGUAGES = ['en_US']
70 for lang in os.listdir(os.path.join(PATH, 'locale')):
71  if lang not in ["OpenShot"] and not os.path.isfile(os.path.join(PATH, 'locale', lang)):
72  SUPPORTED_LANGUAGES.append(lang)
73 
74 SETUP = {
75  "name": NAME,
76  "version": VERSION,
77  "author": JT["name"] + " and others",
78  "author_email": JT["email"],
79  "maintainer": JT["name"],
80  "maintainer_email": JT["email"],
81  "url": "http://www.openshot.org/",
82  "license": "GNU GPL v." + GPL_VERSION,
83  "description": DESCRIPTION,
84  "long_description": "Create and edit videos and movies\n"
85  " OpenShot Video Editor is a free, open-source, non-linear video editor. It\n"
86  " can create and edit videos and movies using many popular video, audio, \n"
87  " image formats. Create videos for YouTube, Flickr, Vimeo, Metacafe, iPod,\n"
88  " Xbox, and many more common formats!\n"
89  ".\n"
90  " Features include:\n"
91  " * Multiple tracks (layers)\n"
92  " * Compositing, image overlays, and watermarks\n"
93  " * Support for image sequences (rotoscoping)\n"
94  " * Key-frame animation\n * Video and audio effects (chroma-key)\n"
95  " * Transitions (lumas and masks)\n"
96  " * 3D animation (titles and simulations)\n"
97  " * Upload videos (YouTube and Vimeo supported)",
98 
99  # see http://pypi.python.org/pypi?%3Aaction=list_classifiers
100  "classifiers": [
101  "Development Status :: 5 - Production/Stable",
102  "Environment :: X11 Applications",
103  "Environment :: X11 Applications :: GTK",
104  "Intended Audience :: End Users/Desktop",
105  "License :: OSI Approved :: GNU General Public License (GPL)",
106  "Operating System :: OS Independent",
107  "Operating System :: POSIX :: Linux",
108  "Programming Language :: Python",
109  "Topic :: Artistic Software",
110  "Topic :: Multimedia :: Video :: Non-Linear Editor", ] +
111  ["Natural Language :: " + language for language in SUPPORTED_LANGUAGES],
112 
113  # Automatic launch script creation
114  "entry_points": {
115  "gui_scripts": [
116  "openshot-qt = openshot_qt.launch:main"
117  ]
118  }
119 }
120 
121 ##
122 # Get the current website language code for URLs
124  website_lang = "www"
125  if CURRENT_LANGUAGE != "en_US":
126  website_lang = CURRENT_LANGUAGE
127  return website_lang
def website_language
Get the current website language code for URLs.
Definition: info.py:123