def add_style(): app = u'PyiUpdater v{}'.format(get_version()) top = u'*' * window_size + u'\n' bottom = u'\n' + u'*' * window_size + u'\n' if page_name is not None: header = app + u' - ' + page_name else: header = app header = header.center(window_size) msg = top + header + bottom return msg
#!/usr/bin/env python from setuptools import setup, find_packages import sys sys.path.insert(0, 'src') from pyi_updater import get_version setup( name='PyiUpdater', version=get_version(), description='Simple App update framwork', author='Johny Mo Swag', author_email='*****@*****.**', url='pyiupdater.jmsapps.net', download_url=('https://github.com/JohnyMoSwag/Pyi' 'Updater/archive/master.zip'), license='Apache License 2.0', extras_require = { 's3': 'PyiUpdater-s3-Plugin>=0.11', 'scp': 'PyiUpdater-scp-Plugin>=0.9', }, install_requires=[ 'appdirs', 'blinker', 'bsdiff4', 'certifi', 'cryptography', 'ed25519', 'jms-utils >= 0.3.2',
#!/usr/bin/env python from setuptools import setup, find_packages import sys sys.path.insert(0, 'src') from pyi_updater import get_version setup( name='PyiUpdater', version=get_version(), description='Simple App update framwork', author='Johny Mo Swag', author_email='*****@*****.**', url='pyiupdater.jmsapps.net', download_url=('https://github.com/JohnyMoSwag/Pyi' 'Updater/archive/master.zip'), license='Apache License 2.0', extras_require={ 's3': 'PyiUpdater-s3-Plugin>=0.11', 'scp': 'PyiUpdater-scp-Plugin>=0.9', }, install_requires=[ 'appdirs', 'blinker', 'bsdiff4', 'certifi', 'cryptography', 'ed25519', 'jms-utils >= 0.3.2',
# The encoding of source files. # source_encoding = 'utf-8-sig' # The master toctree document. master_doc = "index" # General information about the project. project = u"PyiUpdater" copyright = u"2014, JohnyMoSwag" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = get_version() # The full version, including alpha/beta/rc tags. release = get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: # today = '' # Else, today_fmt is used as the format for a strftime call. # today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.
from jms_utils.terminal import get_terminal_size, terminal_formatter from pyi_updater.exceptions import ArchiverError from pyi_updater.utils import (get_version_number, parse_platform, version_string_to_tuple) from pyi_updater import get_version max_help_position = 80 max_width = get_terminal_size()[0] fmt = terminal_formatter() usage = ('usage: pyi-archive -n "My App" -v 1.0.1 FILE [FILE...]\n' 'Usage: pyi-archive -c gzip -n "My App" -v 1.0.1 FILE [FILE...]') kw = { 'version': get_version(), 'usage': usage, 'formatter': fmt, 'conflict_handler': 'resolve', } parser = optparse.OptionParser(**kw) parser.add_option('-n', '--name', help='Name of update') parser.add_option('-v', '--version-num', help="Version # of update. Must have Major.Minor.Patch " "even if it's 0 eg. 1.1.0") parser.add_option('--keep', action='store_true', default=False,
# The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'index' # General information about the project. project = u'PyiUpdater' copyright = u'2014, JohnyMoSwag' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = get_version() # The full version, including alpha/beta/rc tags. release = get_version() # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files.