Ejemplo n.º 1
0
		compress = True,
		targetName = "syncthing-gtk.exe",
		base = "Win32GUI",
		icon = "icons/st-logo-128.ico",
	),
	Executable(
		"scripts/syncthing-gtk-exe.py",
		compress = True,
		targetName = "syncthing-gtk-console.exe",
		base = "console",
		icon = "icons/st-logo-128.ico",
	)
]


get_version = lambda : "%s-win32" % (_get_version(),)

# Monkey-patch _AddVersionResource in cx_Freeze so win32verstamp will
# not bitch about non-numeric version
RE_NUMBER = re.compile(r'v?([0-9]+).*')
extract_number = lambda x : RE_NUMBER.match(x).group(1) if \
		RE_NUMBER.match(x) else "0"
win32version = lambda x : ".".join([ extract_number(i) for i in x.split(".") ])
Freezer._AddVersionResource = lambda self, filename : \
	stamp(filename, VersionInfo(
			win32version(self.metadata.version),
			comments = self.metadata.long_description,
			description = self.metadata.description,
			company = self.metadata.author,
			product = self.metadata.name
	))
Ejemplo n.º 2
0
        "scripts/syncthing-gtk-exe.py",
        compress=True,
        targetName="syncthing-gtk.exe",
        base="Win32GUI",
        icon="icons/st-logo-128.ico",
    ),
    Executable(
        "scripts/syncthing-gtk-exe.py",
        compress=True,
        targetName="syncthing-gtk-console.exe",
        base="console",
        icon="icons/st-logo-128.ico",
    ),
]

get_version = lambda: "%s-win32" % (_get_version(), )

# Monkey-patch _AddVersionResource in cx_Freeze so win32verstamp will
# not bitch about non-numeric version
RE_NUMBER = re.compile(r'v?([0-9]+).*')
extract_number = lambda x : RE_NUMBER.match(x).group(1) if \
  RE_NUMBER.match(x) else "0"
win32version = lambda x: ".".join(
    [extract_number(i) for i in x.split(".")[0:4]])
Freezer._AddVersionResource = lambda self, filename : \
 stamp(filename, VersionInfo(
   win32version(self.metadata.version),
   comments = self.metadata.long_description,
   description = self.metadata.description,
   company = self.metadata.author,
   product = self.metadata.name
Ejemplo n.º 3
0
#
import os
import sys

sys.path.insert(0, os.path.abspath("../"))

from setup import _get_version

# -- Project information -----------------------------------------------------

project = "PyFunceble"
copyright = "2017, 2018, 2019, Nissar Chababy (@funilrys)"
author = "Nissar Chababy (@funilrys)"

# The short X.Y version
version = _get_version()
# The full version, including alpha/beta/rc tags
release = _get_version()

# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    "sphinx.ext.autodoc",
    "sphinx.ext.todo",