Skip to content

Commit 0dd1ede

Browse files
author
Gauvain Pocentek
committed
add a setup.py script
1 parent 96e341e commit 0dd1ede

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
*.pyc
2+
build/
3+
dist/
4+
MANIFEST
5+
.*.swp

setup.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
4+
from distutils.core import setup
5+
6+
def get_version():
7+
f = open('gitlab.py')
8+
try:
9+
for line in f:
10+
if line.startswith('__version__'):
11+
return eval(line.split('=')[-1])
12+
finally:
13+
f.close()
14+
15+
setup(name='python-gitlab',
16+
version=get_version(),
17+
description='Interact with GitLab API',
18+
long_description='Interact with GitLab API',
19+
author='Gauvain Pocentek',
20+
author_email='gauvain@pocentek.net',
21+
license='LGPLv3',
22+
url='https://github.com/gpocentek/python-gitlab',
23+
py_modules=['gitlab'],
24+
)

0 commit comments

Comments
 (0)