This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
mandaye-vincennes/setup.py

50 lines
1.3 KiB
Python
Raw Normal View History

2013-10-28 19:23:30 +01:00
#! /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=[
2014-04-09 10:11:11 +02:00
'gunicorn>=0.17',
2015-03-09 17:33:52 +01:00
'mandaye>=0.11',
2014-04-09 10:11:11 +02:00
'pycrypto>=2.6',
'BeautifulSoup>=3.1'
2013-10-28 19:23:30 +01:00
]
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'):
2014-04-09 14:45:18 +02:00
p = subprocess.Popen(['git','describe','--match=v*'],
stdout=subprocess.PIPE)
2013-10-28 19:23:30 +01:00
result = p.communicate()[0]
2014-04-09 14:45:18 +02:00
version = result.split()[0][1:]
return version.replace('-','.')
2013-10-28 19:23:30 +01:00
import mandaye_vincennes
2014-10-09 14:47:03 +02:00
return mandaye_vincennes.__version__
2013-10-28 19:23:30 +01:00
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",
2015-03-09 17:33:52 +01:00
scripts=['manager.py', 'server.py'],
2013-10-28 19:23:30 +01:00
packages=find_packages(),
include_package_data=True,
install_requires=install_requires
)