l.strip() and not l.startswith('#')] setup(name=name, packagename='kiwi', version=".".join(map(str, kiwi_version)), description="A framework and a set of enhanced widgets based on PyGTK", long_description=__doc__, author="Async Open Source", author_email="*****@*****.**", url="http://www.async.com.br/projects/kiwi/", license="GNU LGPL 2.1 (see COPYING)", data_files=[ # Glade3 ('share/glade3/catalogs', ['data/kiwiwidgets/kiwiwidgets.xml']), ('$libdir/glade3/modules', ['data/kiwiwidgets/kiwiwidgets.py']), ('share/glade3/pixmaps', pixmaps), # Documentation ('share/doc/kiwi', ('AUTHORS', 'NEWS', 'README')), ('share/doc/kiwi/howto', listfiles('doc/howto/', '*')), ('share/doc/kiwi/api', listfiles('doc/api/', '*')), ], scripts=['bin/kiwi-i18n', 'bin/kiwi-ui-test'], packages=listpackages('kiwi'), test_requires=['mock'], install_requires=install_requires, )
'python-nss >= 0.12', 'viivakoodi >= 0.8.0', 'qrcode >= 4.0', 'blinker >= 1.3', 'requests >= 2.18.4', 'PyGObject >= 3.30.1', 'storm >= 0.22', 'pyjwt >= 1.3.0', ] setup( name='stoq', version=version, author="Async Open Source", author_email="*****@*****.**", description="A powerful retail system", long_description=""" Stoq is an advanced retails system which has as main goals the usability, good devices support, and useful features for retails. """, url=website, license="GNU GPL 2.0 and GNU LGPL 2.1 (see COPYING and COPYING.stoqlib)", packages=packages, data_files=data_files, scripts=scripts, install_requires=install_requires, setup_requires=[ 'pycairo' ], # workaround to force pycairo installation before PyGObject zip_safe=building_egg)
('$datadir/xml', listfiles('xml', '*.rng'))] resources = dict(locale='$prefix/share/locale') global_resources = dict( doc='$prefix/share/doc/sacam', glade='$datadir/glade', ) kwargs = {} scripts = ['bin/sacam'] templates.append(('share/applications', ['sacam.desktop'])) setup( name='sacam', version='1.0', description='Sistema de Analise Comportamental de Animais em Movimento' '/ Animal Motion Behavior Analysis System ', author='Luiz Carlos Irber Junior', author_email='*****@*****.**', url='http://repositorio.agrolivre.gov.br/projects/sacam/', license='GPL', # ext_modules = [videoprocessor], ext_modules=[cutils], packages=listpackages('sacam'), scripts=scripts, data_files=data_files, resources=resources, templates=templates, global_resources=global_resources, **kwargs)
# Code by Async Open Source <http://www.async.com.br> from kiwi.dist import setup, listpackages, listfiles from stoqdrivers import __version__ with open('requirements.txt') as f: install_requires = [ l.strip() for l in f.readlines() if l.strip() and not l.startswith('#') ] setup( name="stoqdrivers", version=".".join(map(str, __version__)), author="Async Open Source", author_email="*****@*****.**", description="Python fiscal printer (ECF) drivers", long_description=("This package provices device drivers " "for fiscal printers, ECF (Emissor de Coupon Fiscal) " "written in Python. Supports printers from Bematech, " "Daruma, Dataregis, Perto, Sweda and the generic " "FiscNET protocol."), url="http://www.stoq.com.br", license="GNU LGPL 2.1 (see COPYING)", packages=listpackages('stoqdrivers'), data_files=[("$datadir/conf", listfiles("stoqdrivers/conf", "*.ini"))], global_resources=dict(conf="$datadir/conf"), resources=dict(locale="$prefix/share/locale"), install_requires=install_requires, )
pixmaps='$datadir/pixmaps', sql='$datadir/sql', template='$datadir/template', ) PLUGINS = ['ecf', 'nfe', 'books', 'magento'] PLUGIN_EXTS = [('csv', '*csv'), ('glade', '*.ui'), ('sql', '*.sql'), ('sql', '*.py')] data_files += listplugins(PLUGINS, PLUGIN_EXTS) setup(name='stoq', version=version, author="Async Open Source", author_email="*****@*****.**", description="A powerful retail system", long_description=""" Stoq is an advanced retails system which has as main goals the usability, good devices support, and useful features for retails. """, url=website, license="GNU GPL 2.0 and GNU LGPL 2.1 (see COPYING and COPYING.stoqlib)", packages=packages, data_files=data_files, scripts=scripts, resources=resources, install_requires=install_requires, global_resources=global_resources, templates=templates, zip_safe=True)
setup(name='crisk', description=crisk.__shortdescription__, version=crisk.__version__, author=crisk.__author__, author_email='*****@*****.**', long_description=crisk.__description__, url=crisk.__url__, license='GNU GPLv3 (see COPYING)', packages=packages, package_dir=package_dir, scripts=scripts, data_files=data_files, global_resources=global_resources, resources=resources, windows=[{ 'script': 'src/crisk.py', 'icon': 'criskicon.ico' }], options={ 'py2exe': { 'packages': [ 'encodings', 'crisk', 'sqlalchemy.databases.sqlite', 'locale', 'gettext' ], 'includes': [ 'cairo', 'pango', 'pangocairo', 'atk', 'gobject', 'geraldo', 'elixir', 'matplotlib', 'pytz', 'pylab', 'matplotlib.numerix.random_array', 'matplotlib.backends', 'matplotlib.backends.backend_agg' ] } })
('sql', '*.py')] data_files += listplugins(PLUGINS, PLUGIN_EXTS) # TODO: Put additional requirements that are not on pypi here. See: # https://pythonhosted.org/setuptools/setuptools.html#dependencies-that-aren-t-in-pypi # Try to make a way to integrate it with debian packaging, just like the # dependencies bellow. with open('requirements.txt') as f: install_requires = [l.strip() for l in f.readlines() if l.strip() and not l.startswith('#')] setup(name='stoq', version=version, author="Async Open Source", author_email="*****@*****.**", description="A powerful retail system", long_description=""" Stoq is an advanced retails system which has as main goals the usability, good devices support, and useful features for retails. """, url=website, license="GNU GPL 2.0 and GNU LGPL 2.1 (see COPYING and COPYING.stoqlib)", packages=packages, data_files=data_files, scripts=scripts, resources=resources, install_requires=install_requires, global_resources=global_resources, zip_safe=building_egg)
setup( name = 'crisk', description = crisk.__shortdescription__, version = crisk.__version__, author = crisk.__author__, author_email = '*****@*****.**', long_description = crisk.__description__, url = crisk.__url__, license = 'GNU GPLv3 (see COPYING)', packages = packages, package_dir = package_dir, scripts = scripts, data_files = data_files, global_resources = global_resources, resources = resources, windows = [ { 'script': 'src/crisk.py', 'icon' : 'criskicon.ico' } ], options = { 'py2exe': { 'packages' : ['encodings', 'crisk', 'sqlalchemy.databases.sqlite', 'locale', 'gettext' ], 'includes': [ 'cairo', 'pango', 'pangocairo', 'atk', 'gobject', 'geraldo', 'elixir', 'matplotlib', 'pytz', 'pylab', 'matplotlib.numerix.random_array', 'matplotlib.backends', 'matplotlib.backends.backend_agg' ] } } )
PACKAGE = 'stoqserver' scripts = [ 'bin/stoqserver', ] data_files = [ (os.path.join(os.sep, 'etc', 'supervisor', 'conf.d'), [os.path.join('data', 'supervisor', 'stoqserver.conf')]), (os.path.join(os.sep, 'usr', 'share', 'stoqserver', 'webrtc'), [os.path.join('data', 'webrtc', 'package.json'), os.path.join('data', 'webrtc', 'rtc.js'), os.path.join('data', 'webrtc', 'start.sh')]) ] with open('requirements.txt') as f: install_requires = [l.strip() for l in f.readlines() if l.strip() and not l.startswith('#')] setup( name=PACKAGE, author="Stoq Team", author_email="*****@*****.**", version=".".join(str(i) for i in stoqserver.__version__), packages=listpackages('stoqserver'), data_files=data_files, install_requires=install_requires, scripts=scripts, zip_safe=True, )
('$datadir/htsql', listfiles('data', 'htsql', '*.yml')), ] if 'bdist_egg' not in sys.argv and platform.system() != "Windows": data_files.extend([ ('/etc/sudoers.d', [os.path.join('data', 'sudoers.d', 'stoqserver')]), ('/etc/supervisor/conf.d', [os.path.join('data', 'supervisor', 'stoqserver.conf')]), ]) with open('requirements.txt') as f: install_requires = [l.strip() for l in f.readlines() if l.strip() and not l.startswith('#')] setup( name=PACKAGE, author="Stoq Team", author_email="*****@*****.**", description="Stoq server", url="http://www.stoq.com.br", license="GNU LGPL 2.1 (see COPYING)", long_description=("Service that provides a bridge between Stoq and " "stoq.link, along with other usefullnesses."), version=stoqserver.version_str, packages=listpackages('stoqserver'), data_files=data_files, install_requires=install_requires, scripts=scripts, zip_safe=True, )
# # Package installation # from kiwi.dist import setup, listpackages, listfiles from stoqdrivers import __version__ setup( name="stoqdrivers", version= ".".join(map(str, __version__)), author="Async Open Source", author_email="*****@*****.**", description="Python fiscal printer (ECF) drivers", long_description=("This package provices device drivers " "for fiscal printers, ECF (Emissor de Coupon Fiscal) " "written in Python. Supports printers from Bematech, " "Daruma, Dataregis, Perto, Sweda and the generic " "FiscNET protocol."), url="http://www.stoq.com.br", license="GNU LGPL 2.1 (see COPYING)", packages=listpackages('stoqdrivers'), data_files=[ ("$datadir/conf", listfiles("stoqdrivers/conf", "*.ini"))], global_resources=dict(conf="$datadir/conf"), resources=dict(locale="$prefix/share/locale"), install_requires="kiwi-gtk >= 1.9.28", )
l.strip() for l in f.readlines() if l.strip() and not l.startswith('#') ] setup( name=name, packagename='kiwi', version=".".join(map(str, kiwi_version)), description="A framework and a set of enhanced widgets based on PyGTK", long_description=__doc__, author="Async Open Source", author_email="*****@*****.**", url="http://www.async.com.br/projects/kiwi/", license="GNU LGPL 2.1 (see COPYING)", data_files=[ # Data ('$datadir/css', ['data/css/kiwi.css']), # Glade3 ('share/glade3/catalogs', ['data/kiwiwidgets/kiwiwidgets.xml']), ('$libdir/glade3/modules', ['data/kiwiwidgets/kiwiwidgets.py']), ('share/glade3/pixmaps', pixmaps), # Documentation ('share/doc/kiwi', ('AUTHORS', 'NEWS', 'README')), ('share/doc/kiwi/howto', listfiles('doc/howto/', '*')), ('share/doc/kiwi/api', listfiles('doc/api/', '*')), ], scripts=['bin/kiwi-i18n', 'bin/kiwi-ui-test'], packages=listpackages('kiwi'), test_requires=['mock'], install_requires=install_requires, )
GLADELIB = 'gladeui-1.0' def glade3_exists(): status, output = commands.getstatusoutput('pkg-config --exists %s' % GLADELIB) return not status def get_glade3_variable(variablename): return commands.getoutput('pkg-config --variable=%s %s' % (variablename, GLADELIB)) if not glade3_exists(): print 'Glade 3 is not installed, neither will be this plugin.' catalogdir = get_glade3_variable('catalogdir') moduledir = get_glade3_variable('moduledir') pixmapdir = get_glade3_variable('pixmapdir') pixmaps = listfiles('..', 'gazpacho-plugin', 'resources', 'kiwiwidgets', '*.png') setup( data_files=[ (catalogdir, ['kiwiwidgets.xml']), (moduledir, ['kiwiwidgets.py']), (os.path.join(pixmapdir, '16x16'), pixmaps), (os.path.join(pixmapdir, '22x22'), pixmaps), ] )
setup(name="kiwi", version=".".join(map(str, kiwi_version)), description="A framework and a set of enhanced widgets based on PyGTK", long_description=__doc__, author="Async Open Source", author_email="*****@*****.**", url="http://www.async.com.br/projects/kiwi/", license="GNU LGPL 2.1 (see COPYING)", data_files=[('$datadir/glade', listfiles('glade', '*.glade')), ('$datadir/pixmaps', listfiles('pixmaps', '*.png')), ('share/gazpacho/catalogs', listfiles('gazpacho-plugin', 'kiwiwidgets.xml')), ('share/gazpacho/resources/kiwiwidgets', listfiles('gazpacho-plugin', 'resources', 'kiwiwidgets', '*.png')), (get_site_packages_dir('gazpacho', 'widgets'), listfiles('gazpacho-plugin', 'kiwiwidgets.py')), ('share/doc/kiwi', ('AUTHORS', 'ChangeLog', 'NEWS', 'README')), ('share/doc/kiwi/howto', listfiles('doc/howto/', '*')), ('share/doc/kiwi/api', listfiles('doc/api/', '*')), ], scripts=['bin/kiwi-i18n', 'bin/kiwi-ui-test'], packages=listpackages('kiwi'), ext_modules=ext_modules, resources=dict(locale='$prefix/share/locale'), global_resources=dict(glade='$datadir/glade', pixmap='$datadir/pixmaps'), )