summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 09:18:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 09:18:34 +0000
commita66f493c826717974ff9ee9ebda8c7e98c008480 (patch)
treef7c0b304c426363924541c713bf5c40cb6bf0baf
parent42390b5ece7f2993dd255bd08207033dca8703dc (diff)
automatic import of python-oncourse-api
-rw-r--r--.gitignore1
-rw-r--r--python-oncourse-api.spec200
-rw-r--r--sources1
3 files changed, 202 insertions, 0 deletions
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
+
+ <img width="50px" src="https://cdn.discordapp.com/attachments/848365417688203294/892262456271978566/oncourselogo.svg">
+
+# 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
+
+ <img width="50px" src="https://cdn.discordapp.com/attachments/848365417688203294/892262456271978566/oncourselogo.svg">
+
+# 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
+
+ <img width="50px" src="https://cdn.discordapp.com/attachments/848365417688203294/892262456271978566/oncourselogo.svg">
+
+# 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 <Python_Bot@openeuler.org> - 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