-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (36 loc) · 1.1 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pip
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
links = []
requires = []
requirements = pip.req.parse_requirements(
"requirements.txt", session=pip.download.PipSession())
for item in requirements:
# we want to handle package names and also repo urls
if getattr(item, "url", None): # older pip has url
links.append(str(item.url))
if getattr(item, "link", None): # newer pip has link
links.append(str(item.link))
if item.req:
requires.append(str(item.req))
config = {
"description": "Export data from Slack as a non-admin user",
"author": "Lee Archer",
"url": "http://blog.archer.onl/article/" +
"export-all-slack-logs-as-a-non-admin-user/",
"download_url": "https://github.com/lbn/slack-exporter",
"author_email": "lee+github@archer.onl",
"version": "0.0.1",
"packages": [],
"scripts": [
"bin/slack-exporter"
],
"name": "slack-exporter",
"install_requires": requires,
"dependency_links": links
}
setup(**config)