-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (47 loc) · 1.56 KB
/
setup.py
File metadata and controls
54 lines (47 loc) · 1.56 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
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
def get_version():
with open('dumpmyrepos/__init__.py') as f:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
def get_install_requires():
ret = []
with open('requirements.txt') as f:
for line in f:
ret.append(line)
try:
import argparse
except ImportError:
ret.append('argparse')
return ret
setup(
name='dumpmyrepos',
version=get_version(),
url='https://github.com/kernelfolla/dumpmyrepos',
license='mit',
author='Marino Di Clemente',
author_email='kernelfolla@gmail.com',
description='This python script will backup all your git repos',
long_description='This python script will backup all your git repos using ssh locally, supports github gitlab'
+ 'and bitbucket. All settings are passed using a config.yml file',
packages=find_packages(),
include_package_data=True,
package_data={'': ['config.yml']},
install_requires=get_install_requires(),
entry_points={
'console_scripts': [
'dumpmyrepos = dumpmyrepos.cli:main'
]
},
classifiers=[
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: System :: Systems Administration',
'Programming Language :: Python',
],
)