-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
49 lines (45 loc) · 1.54 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
import os
import os.path as op
from glob import glob
from pathlib import Path
from setuptools import find_packages
from setuptools import setup
init = Path().joinpath("github_activity", "__init__.py")
for line in init.read_text().split("\n"):
if line.startswith("__version__ ="):
version = line.split(" = ")[-1].strip('"')
break
# Source dependencies from requirements.txt file.
with open("requirements.txt", "r") as f:
lines = f.readlines()
install_packages = [line.strip() for line in lines]
setup(
name="github_activity",
version=version,
include_package_data=True,
python_requires=">=3.6",
author="Executable Books Project",
author_email="[email protected]",
url="https://executablebooks.org/",
project_urls={
"Source": "https://github.com/executablebooks/github-activity/",
},
# this should be a whitespace separated string of keywords, not a list
keywords="development changelog",
description="Grab recent issue/PR activity from a GitHub repository and render it as markdown.",
long_description=open("./README.md", "r").read(),
long_description_content_type="text/markdown",
license="BSD",
packages=find_packages(),
use_package_data=True,
entry_points={
"console_scripts": [
"github-activity = github_activity.cli:main",
]
},
install_requires=install_packages,
extras_require={
"testing": ["pytest", "pytest-regressions"],
"sphinx": ["sphinx", "myst_parser", "sphinx_book_theme"],
},
)