diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2013-02-12 16:44:28 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2013-02-12 16:44:28 +0100 |
commit | 0dd1ede13875512f50d7cb76df48d712dc2bc5d5 (patch) | |
tree | 9fc3922a30e813d5a155b668ba0c835724888466 /setup.py | |
parent | 96e341ebc8a32c794bbc6978e0eed4c7cd12797a (diff) | |
download | gitlab-0dd1ede13875512f50d7cb76df48d712dc2bc5d5.tar.gz |
add a setup.py script
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d17a92a --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +from distutils.core import setup + +def get_version(): + f = open('gitlab.py') + try: + for line in f: + if line.startswith('__version__'): + return eval(line.split('=')[-1]) + finally: + f.close() + +setup(name='python-gitlab', + version=get_version(), + description='Interact with GitLab API', + long_description='Interact with GitLab API', + author='Gauvain Pocentek', + author_email='gauvain@pocentek.net', + license='LGPLv3', + url='https://github.com/gpocentek/python-gitlab', + py_modules=['gitlab'], + ) |