From a66f493c826717974ff9ee9ebda8c7e98c008480 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 09:18:34 +0000 Subject: automatic import of python-oncourse-api --- .gitignore | 1 + python-oncourse-api.spec | 200 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 202 insertions(+) create mode 100644 python-oncourse-api.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..48d59a7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/oncourse-api-2.2.1.tar.gz diff --git a/python-oncourse-api.spec b/python-oncourse-api.spec new file mode 100644 index 0000000..0710de1 --- /dev/null +++ b/python-oncourse-api.spec @@ -0,0 +1,200 @@ +%global _empty_manifest_terminate_build 0 +Name: python-oncourse-api +Version: 2.2.1 +Release: 1 +Summary: A python api wrapper for OnCourse Connect +License: MIT +URL: https://github.com/Wolfhound905/OnCourse-API +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/96/cb/a8f371d7b334f770c24e65d153b6de7b791b8d521d381023a2075b44704b/oncourse-api-2.2.1.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-tomli + +%description + + + +# OnCourse-API + +OnCourse-API is a python library meant to make getting data from [OnCourse Connect](https://www.oncourseconnect.com/) a simple task + +![PyPI](https://img.shields.io/pypi/v/oncourse-api) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oncourse-api?color=blue) + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar. + +```bash +pip install oncourse-api +``` + +## Usage + +```python +from oncourse_api import OnCourse + +account = OnCourse("Username", "Password") + +student = account.active_profile.student + +print(student) # Prints Student Name + +assignments = student.assignments # Returns list of assignments + +# I love typehinting so your IDE should display options for everything +``` + +## Contributing +Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## License +[MIT](https://choosealicense.com/licenses/mit/) + + + + +%package -n python3-oncourse-api +Summary: A python api wrapper for OnCourse Connect +Provides: python-oncourse-api +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-oncourse-api + + + +# OnCourse-API + +OnCourse-API is a python library meant to make getting data from [OnCourse Connect](https://www.oncourseconnect.com/) a simple task + +![PyPI](https://img.shields.io/pypi/v/oncourse-api) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oncourse-api?color=blue) + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar. + +```bash +pip install oncourse-api +``` + +## Usage + +```python +from oncourse_api import OnCourse + +account = OnCourse("Username", "Password") + +student = account.active_profile.student + +print(student) # Prints Student Name + +assignments = student.assignments # Returns list of assignments + +# I love typehinting so your IDE should display options for everything +``` + +## Contributing +Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## License +[MIT](https://choosealicense.com/licenses/mit/) + + + + +%package help +Summary: Development documents and examples for oncourse-api +Provides: python3-oncourse-api-doc +%description help + + + +# OnCourse-API + +OnCourse-API is a python library meant to make getting data from [OnCourse Connect](https://www.oncourseconnect.com/) a simple task + +![PyPI](https://img.shields.io/pypi/v/oncourse-api) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oncourse-api?color=blue) + +## Installation + +Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar. + +```bash +pip install oncourse-api +``` + +## Usage + +```python +from oncourse_api import OnCourse + +account = OnCourse("Username", "Password") + +student = account.active_profile.student + +print(student) # Prints Student Name + +assignments = student.assignments # Returns list of assignments + +# I love typehinting so your IDE should display options for everything +``` + +## Contributing +Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## License +[MIT](https://choosealicense.com/licenses/mit/) + + + + +%prep +%autosetup -n oncourse-api-2.2.1 + +%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-oncourse-api -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot - 2.2.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..2f6ff3e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +332e4c3766373ea7bc317822b7740258 oncourse-api-2.2.1.tar.gz -- cgit v1.2.3