47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
#! /usr/bin/env python
|
|
|
|
'''
|
|
Setup script for Vincennes RP
|
|
'''
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
from setuptools import setup, find_packages
|
|
from sys import version
|
|
|
|
install_requires=[
|
|
'gunicorn>=0.17',
|
|
'mandaye>=0.7',
|
|
'pycrypto>=2.0',
|
|
]
|
|
|
|
def get_version():
|
|
if os.path.exists('VERSION'):
|
|
version_file = open('VERSION', 'r')
|
|
version = version_file.read()
|
|
version_file.close()
|
|
return version
|
|
if os.path.exists('.git'):
|
|
p = subprocess.Popen(['git','describe','--long'], stdout=subprocess.PIPE)
|
|
result = p.communicate()[0]
|
|
return result.split()[0].replace('-','.')
|
|
import mandaye_vincennes
|
|
return mandaye_vincennes.VERSION
|
|
|
|
setup(name="mandaye-vincennes",
|
|
version=get_version(),
|
|
license="AGPLv3 or later",
|
|
description="Vincennes rp is a Mandaye project, modular reverse proxy to authenticate",
|
|
url="http://dev.entrouvert.org/projects/reverse-proxy/",
|
|
author="Entr'ouvert",
|
|
author_email="info@entrouvert.org",
|
|
maintainer="Jerome Schneider",
|
|
maintainer_email="jschneider@entrouvert.com",
|
|
scripts=['mandaye_vincennes_manager', 'mandaye_vincennes_server'],
|
|
packages=find_packages(),
|
|
include_package_data=True,
|
|
install_requires=install_requires
|
|
)
|
|
|