-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (25 loc) · 802 Bytes
/
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
#!/usr/bin/env python
# This file is managed by 'repo_helper'. Don't edit it directly.
# stdlib
import pathlib
import shutil
import sys
# 3rd party
from setuptools import setup
sys.path.append('.')
extras_require = {}
repo_root = pathlib.Path(__file__).parent
install_requires = []
for line in (repo_root / "requirements.txt").read_text(encoding="UTF-8").split('\n'):
if line.startswith("git+https://github.com/repo-helper/repo_helper@"):
install_requires.append("repo-helper")
else:
install_requires.append(line)
setup(
description="I keep your repository configuration up-to-date using 'repo_helper'.",
extras_require=extras_require,
install_requires=install_requires,
name="repo-helper-bot",
py_modules=[],
)
shutil.rmtree("repo_helper_bot.egg-info", ignore_errors=True)