forked from git-multimail/git-multimail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (48 loc) · 1.8 KB
/
setup.py
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
55
56
57
#! /usr/bin/env python
import sys
import os
from setuptools import setup
assert 0x02040000 <= sys.hexversion, \
"Install Python, version 2.4 or greater"
URL = 'https://github.com/git-multimail/git-multimail'
def read_version():
sys.path.insert(0, os.path.join('git-multimail'))
import git_multimail
return git_multimail.__version__
def read_readme():
readme = open(os.path.join('git-multimail', 'README.rst')).read()
if hasattr(readme, 'decode'):
# In Python 3, turn bytes into str.
readme = readme.decode('utf8')
# Turn relative links into absolute ones
readme = readme.replace("`<doc/", "`<" + URL + "/blob/master/doc/")
readme = readme.replace("`<CONTRIBUTING.rst", "`<" + URL + "/blob/master/CONTRIBUTING.rst")
return readme
setup(
name='git-multimail',
version=read_version(),
description='Send notification emails for Git pushes',
long_description=read_readme(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Email',
'Topic :: Software Development :: Version Control',
],
keywords='git hook email',
url=URL,
author='Michael Haggerty',
author_email='[email protected]',
maintainer='Matthieu Moy',
maintainer_email='[email protected]',
license='GPLv2',
package_dir={'': 'git-multimail'},
py_modules=['git_multimail'],
scripts=['git-multimail/git_multimail.py'],
)