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.
wcsinst/setup.py

32 lines
901 B
Python
Executable File

#! /usr/bin/python
from setuptools import setup, find_packages
import os
import subprocess
VERSION='0.1'
def get_version():
if os.path.exists('.git'):
p = subprocess.Popen(['git','describe','--dirty'], stdout=subprocess.PIPE)
result = p.communicate()[0]
return result.split()[0].replace('-','.')
return VERSION
setup(name='wcsinst',
version=get_version(),
license='AGPLv3',
description='',
url='https://dev.entrouvert.org/projects/wcsinst/',
download_url='http://repos.entrouvert.org/wcsinst.git/',
author="Entr'ouvert",
author_email="info@entrouvert.com",
packages=find_packages(os.path.dirname(__file__) or '.'),
scripts=['manage.py'],
include_package_data = True,
install_requires=[
'django >= 1.5.1, < 1.6',
'django-jsonresponse==0.5',
],
)