Upgrading the following packages to the respected versions: WTForms==2.1 Flask-WTF==0.12 Werkzeug==0.11.0 Passing newly required metadata to the QueryForm constructor in puppetboard/app.py Apache >= 2.4 with mod_wsgi experienced a major issue where it would re-generate the app's secret key on each request. The fix for this turned out to be placing a permanent statis 'secret_key' value in the wsgi.py. Adding a block in README.rst on how to implement the user's own secret_key
54 lines
1.5 KiB
Python
54 lines
1.5 KiB
Python
import sys
|
|
import os
|
|
import codecs
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
if sys.argv[-1] == 'publish':
|
|
os.system('python setup.py sdist upload')
|
|
sys.exit()
|
|
|
|
VERSION = "0.1.3"
|
|
|
|
with codecs.open('README.rst', encoding='utf-8') as f:
|
|
README = f.read()
|
|
|
|
with codecs.open('CHANGELOG.rst', encoding='utf-8') as f:
|
|
CHANGELOG = f.read()
|
|
|
|
setup(
|
|
name='puppetboard',
|
|
version=VERSION,
|
|
author='Daniele Sluijters',
|
|
author_email='daniele.sluijters+pypi@gmail.com',
|
|
packages=find_packages(),
|
|
url='https://github.com/voxpupuli/puppetboard',
|
|
license='Apache License 2.0',
|
|
description='Web frontend for PuppetDB',
|
|
include_package_data=True,
|
|
long_description='\n'.join((README, CHANGELOG)),
|
|
install_requires=[
|
|
"Flask >= 0.10.1",
|
|
"Flask-WTF >= 0.12, <= 0.13",
|
|
"WTForms < 3.0",
|
|
"pypuppetdb >= 0.3.0, < 0.4.0",
|
|
],
|
|
keywords="puppet puppetdb puppetboard",
|
|
classifiers=[
|
|
'Development Status :: 3 - Alpha',
|
|
'Environment :: Web Environment',
|
|
'Framework :: Flask',
|
|
'Intended Audience :: System Administrators',
|
|
'Natural Language :: English',
|
|
'License :: OSI Approved :: Apache Software License',
|
|
'Operating System :: POSIX',
|
|
'Programming Language :: Python :: 2',
|
|
'Programming Language :: Python :: 2.6',
|
|
'Programming Language :: Python :: 2.7',
|
|
'Programming Language :: Python :: 3',
|
|
'Programming Language :: Python :: 3.2',
|
|
'Programming Language :: Python :: 3.3',
|
|
],
|
|
)
|