|
1 | | -import os |
2 | | -import os.path as op |
3 | | -from glob import glob |
4 | | -from pathlib import Path |
5 | | - |
6 | | -from setuptools import find_packages |
7 | 1 | from setuptools import setup |
8 | 2 |
|
9 | | -init = Path().joinpath("github_activity", "__init__.py") |
10 | | -for line in init.read_text().split("\n"): |
11 | | - if line.startswith("__version__ ="): |
12 | | - version = line.split(" = ")[-1].strip('"') |
13 | | - break |
14 | | - |
15 | | -# Source dependencies from requirements.txt file. |
16 | | -with open("requirements.txt", "r") as f: |
17 | | - lines = f.readlines() |
18 | | - install_packages = [line.strip() for line in lines] |
19 | | - |
20 | | -setup( |
21 | | - name="github_activity", |
22 | | - version=version, |
23 | | - include_package_data=True, |
24 | | - python_requires=">=3.9", |
25 | | - author="Executable Books Project", |
26 | | - author_email="executablebooks@gmail.com", |
27 | | - url="https://executablebooks.org/", |
28 | | - project_urls={ |
29 | | - "Source": "https://github.com/executablebooks/github-activity/", |
30 | | - }, |
31 | | - # this should be a whitespace separated string of keywords, not a list |
32 | | - keywords="development changelog", |
33 | | - description="Grab recent issue/PR activity from a GitHub repository and render it as markdown.", |
34 | | - long_description=open("./README.md", "r").read(), |
35 | | - long_description_content_type="text/markdown", |
36 | | - license="BSD", |
37 | | - packages=find_packages(), |
38 | | - use_package_data=True, |
39 | | - entry_points={ |
40 | | - "console_scripts": [ |
41 | | - "github-activity = github_activity.cli:main", |
42 | | - ] |
43 | | - }, |
44 | | - install_requires=install_packages, |
45 | | - extras_require={ |
46 | | - "testing": ["pytest", "pytest-regressions"], |
47 | | - "sphinx": ["sphinx", "myst_parser", "sphinx_book_theme"], |
48 | | - }, |
49 | | -) |
| 3 | +setup() |
0 commit comments