| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e12abf1 commit 9966616
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,7 @@ | |||
| 1 | + Version 0.9.1 | ||
| 2 | + | ||
| 3 | + * Fix the setup.py script | ||
| 4 | + | ||
| 1 | 5 | Version 0.9 | |
| 2 | 6 | ||
| 3 | 7 | * Implement argparse libray for parsing argument on CLI | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,12 +4,12 @@ | |||
| 4 | 4 | from setuptools import setup | |
| 5 | 5 | from setuptools import find_packages | |
| 6 | 6 | ||
| 7 | - import gitlab | ||
| 8 | - | ||
| 9 | 7 | ||
| 10 | 8 | def get_version(): | |
| 11 | - | ||
| 12 | - return gitlab.__version__ | ||
| 9 | + with open('gitlab/__init__.py') as f: | ||
| 10 | + for line in f: | ||
| 11 | + if line.startswith('__version__'): | ||
| 12 | + return eval(line.split('=')[-1]) | ||
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | 15 | setup(name='python-gitlab', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments