-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (35 loc) · 1.06 KB
/
setup.py
File metadata and controls
42 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
from setuptools import setup, find_packages # Always prefer setuptools over distutils
name = "help4tutor"
def get_version(relpath="__init__.py"):
"""read version info from file without importing it"""
from os.path import dirname, join
for line in open(join(dirname(__file__), name, relpath)):
if '__version__' in line:
if '"' in line:
return line.split('"')[1]
elif "'" in line:
return line.split("'")[1]
setup(
name=name,
description='A utility that make the life of a tutor easier.',
version=get_version(),
author='Lars Eckervogt',
author_email='code@eckervogt.eu',
packages=find_packages(),
keywords='tutor, gitlab, helper',
entry_points={
'console_scripts': [
'help4tutor=help4tutor:main',
],
},
install_requires=[
'colorama',
'pyapi-gitlab',
],
classifiers=[
'Environment :: Console',
'Programming Language :: Python :: 2',
'Topic :: Utilities',
],
)