%global _empty_manifest_terminate_build 0 Name: python-GitHubHealth Version: 0.0.0.1641127350 Release: 1 Summary: GitHubHealth is a Python library for monitoring code health in GitHub. License: MIT URL: https://github.com/ckear1989/github/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/66/35/a1e034d03f013b1c9a0f1d04c48c587095b1baa9dbf9d1bf998472561934/GitHubHealth-0.0.0.1641127350.tar.gz BuildArch: noarch Requires: python3-PyGitHub Requires: python3-pandas Requires: python3-flask Requires: python3-flask-wtf Requires: python3-Flask-Bootstrap4 Requires: python3-altair Requires: python3-gunicorn Requires: python3-pre-commit Requires: python3-PyGitHub Requires: python3-pylint Requires: python3-pandas Requires: python3-flask Requires: python3-flask-wtf Requires: python3-Flask-Bootstrap4 Requires: python3-altair Requires: python3-gunicorn Requires: python3-anybadge Requires: python3-pytest Requires: python3-subx Requires: python3-docutils Requires: python3-pytest-codeblocks Requires: python3-PyGitHub Requires: python3-pandas Requires: python3-flask Requires: python3-flask-wtf Requires: python3-Flask-Bootstrap4 Requires: python3-altair Requires: python3-setuptools-scm %description # GitHubHealth [![PyPI version](https://badge.fury.io/py/GitHubHealth.svg)](https://badge.fury.io/py/GitHubHealth) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![pylint](https://github.com/ckear1989/github/blob/dev/data/pylint.svg)](https://github.com/jongracecox/anybadge) [![Buy me a coffee](https://github.com/ckear1989/github/blob/dev/data/buy_me_a_coffee.png)](https://www.buymeacoffee.com/ckear1988) GitHubHealth is a Python library for monitoring code health in GitHub. ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install GitHubHealth. ```bash # shell pip install GitHubHealth ``` ## Usage Set access token environment variable. ```bash # shell export GITHUB_TOKEN= ``` Get repo health as pandas DataFrame. ```python # python import os from GitHubHealth.main import ACCESS_TOKEN_VAR_NAME from GitHubHealth import GitHubHealth my_repo_health = GitHubHealth(gat=os.environ[ACCESS_TOKEN_VAR_NAME], timeout=4) my_repo_health.user.get_repo_df() my_repo_health.user.repo_df ``` Launch Flask app to view repo health tables and plots. ```python # python from GitHubHealth import app app.run() ``` ```python # python raise Exception ``` ## Contributing >Collaborators can be added on a case by case basis so please reach out if you would like to \ >contribute. As this is a personal hobby I will review any PRs and manage access and deployment \ >myself. I welcome any issues and feature requests to be submitted and will try to reply in a \ >timely manner. Please make sure to update tests as appropriate. I advise using use pre-commit to \ >help with automated testing and adhering to pylint and black formatting standards. ## License [MIT](https://choosealicense.com/licenses/mit/) %package -n python3-GitHubHealth Summary: GitHubHealth is a Python library for monitoring code health in GitHub. Provides: python-GitHubHealth BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-GitHubHealth # GitHubHealth [![PyPI version](https://badge.fury.io/py/GitHubHealth.svg)](https://badge.fury.io/py/GitHubHealth) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![pylint](https://github.com/ckear1989/github/blob/dev/data/pylint.svg)](https://github.com/jongracecox/anybadge) [![Buy me a coffee](https://github.com/ckear1989/github/blob/dev/data/buy_me_a_coffee.png)](https://www.buymeacoffee.com/ckear1988) GitHubHealth is a Python library for monitoring code health in GitHub. ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install GitHubHealth. ```bash # shell pip install GitHubHealth ``` ## Usage Set access token environment variable. ```bash # shell export GITHUB_TOKEN= ``` Get repo health as pandas DataFrame. ```python # python import os from GitHubHealth.main import ACCESS_TOKEN_VAR_NAME from GitHubHealth import GitHubHealth my_repo_health = GitHubHealth(gat=os.environ[ACCESS_TOKEN_VAR_NAME], timeout=4) my_repo_health.user.get_repo_df() my_repo_health.user.repo_df ``` Launch Flask app to view repo health tables and plots. ```python # python from GitHubHealth import app app.run() ``` ```python # python raise Exception ``` ## Contributing >Collaborators can be added on a case by case basis so please reach out if you would like to \ >contribute. As this is a personal hobby I will review any PRs and manage access and deployment \ >myself. I welcome any issues and feature requests to be submitted and will try to reply in a \ >timely manner. Please make sure to update tests as appropriate. I advise using use pre-commit to \ >help with automated testing and adhering to pylint and black formatting standards. ## License [MIT](https://choosealicense.com/licenses/mit/) %package help Summary: Development documents and examples for GitHubHealth Provides: python3-GitHubHealth-doc %description help # GitHubHealth [![PyPI version](https://badge.fury.io/py/GitHubHealth.svg)](https://badge.fury.io/py/GitHubHealth) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) [![pylint](https://github.com/ckear1989/github/blob/dev/data/pylint.svg)](https://github.com/jongracecox/anybadge) [![Buy me a coffee](https://github.com/ckear1989/github/blob/dev/data/buy_me_a_coffee.png)](https://www.buymeacoffee.com/ckear1988) GitHubHealth is a Python library for monitoring code health in GitHub. ## Installation Use the package manager [pip](https://pip.pypa.io/en/stable/) to install GitHubHealth. ```bash # shell pip install GitHubHealth ``` ## Usage Set access token environment variable. ```bash # shell export GITHUB_TOKEN= ``` Get repo health as pandas DataFrame. ```python # python import os from GitHubHealth.main import ACCESS_TOKEN_VAR_NAME from GitHubHealth import GitHubHealth my_repo_health = GitHubHealth(gat=os.environ[ACCESS_TOKEN_VAR_NAME], timeout=4) my_repo_health.user.get_repo_df() my_repo_health.user.repo_df ``` Launch Flask app to view repo health tables and plots. ```python # python from GitHubHealth import app app.run() ``` ```python # python raise Exception ``` ## Contributing >Collaborators can be added on a case by case basis so please reach out if you would like to \ >contribute. As this is a personal hobby I will review any PRs and manage access and deployment \ >myself. I welcome any issues and feature requests to be submitted and will try to reply in a \ >timely manner. Please make sure to update tests as appropriate. I advise using use pre-commit to \ >help with automated testing and adhering to pylint and black formatting standards. ## License [MIT](https://choosealicense.com/licenses/mit/) %prep %autosetup -n GitHubHealth-0.0.0.1641127350 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-GitHubHealth -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.0.0.1641127350-1 - Package Spec generated