diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 15:07:11 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 15:07:11 +0000 |
| commit | 6655f3d57c1bc5c51b8970279f011992e0c1ea3a (patch) | |
| tree | 31e5c5e74e7a691e9c13a59a0bdc76607efe727f /python-githubhealth.spec | |
| parent | e102ac5e5c1a270e4bdb4a3c747823e5ef78faaa (diff) | |
automatic import of python-githubhealthopeneuler20.03
Diffstat (limited to 'python-githubhealth.spec')
| -rw-r--r-- | python-githubhealth.spec | 292 |
1 files changed, 292 insertions, 0 deletions
diff --git a/python-githubhealth.spec b/python-githubhealth.spec new file mode 100644 index 0000000..0282975 --- /dev/null +++ b/python-githubhealth.spec @@ -0,0 +1,292 @@ +%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 + +[](https://badge.fury.io/py/GitHubHealth) +[](https://github.com/psf/black) +[](https://github.com/pre-commit/pre-commit) +[](https://github.com/jongracecox/anybadge) +[](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. +<!--pytest-codeblocks:skip--> +```bash +# shell +export GITHUB_TOKEN=<your github pat> +``` + +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. + + +<!--pytest-codeblocks:skip--> +```python +# python +from GitHubHealth import app +app.run() +``` + +<!--pytest-codeblocks:expect-error--> +```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 + +[](https://badge.fury.io/py/GitHubHealth) +[](https://github.com/psf/black) +[](https://github.com/pre-commit/pre-commit) +[](https://github.com/jongracecox/anybadge) +[](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. +<!--pytest-codeblocks:skip--> +```bash +# shell +export GITHUB_TOKEN=<your github pat> +``` + +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. + + +<!--pytest-codeblocks:skip--> +```python +# python +from GitHubHealth import app +app.run() +``` + +<!--pytest-codeblocks:expect-error--> +```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 + +[](https://badge.fury.io/py/GitHubHealth) +[](https://github.com/psf/black) +[](https://github.com/pre-commit/pre-commit) +[](https://github.com/jongracecox/anybadge) +[](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. +<!--pytest-codeblocks:skip--> +```bash +# shell +export GITHUB_TOKEN=<your github pat> +``` + +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. + + +<!--pytest-codeblocks:skip--> +```python +# python +from GitHubHealth import app +app.run() +``` + +<!--pytest-codeblocks:expect-error--> +```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 <Python_Bot@openeuler.org> - 0.0.0.1641127350-1 +- Package Spec generated |
