-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
executable file
·41 lines (37 loc) · 1.2 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
#!/usr/bin/env python
import os
from distutils.core import setup
from github_pr_stats import VERSION
# I really prefer Markdown to reStructuredText. PyPi does not. This allows me
# to have things how I'd like, but not throw complaints when people are trying
# to install the package and they don't have pypandoc or the README in the
# right place.
try:
import pypandoc
description = pypandoc.convert_file('README.md', 'rst')
except (IOError, OSError, ImportError):
description = ''
try:
license = open('LICENSE').read()
except IOError:
license = 'WTFPL'
setup(
name = 'github-pr-stats',
version = VERSION,
author = 'James Pearson',
author_email = 'pearson@changedmy.name',
packages = ['github_pr_stats', 'github_pr_stats.example_plugins'],
scripts = ['bin/github-pr-stats'],
url = 'https://github.com/xiongchiamiov/github-pr-stats',
license = license,
description = 'Various statistics on the pull requests in your repo.',
long_description = description,
install_requires = [
'ascii-graph >= 0.2.0',
'docopt >= 0.6, < 0.7',
'envoy >= 0.0.3',
'github3.py >= 0.8, < 0.9',
'numpy >= 1.22, < 2.0',
'python-dateutil >= 2.2, < 2.3',
],
)