summaryrefslogtreecommitdiff
path: root/python-gradescope-utils.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-gradescope-utils.spec')
-rw-r--r--python-gradescope-utils.spec173
1 files changed, 173 insertions, 0 deletions
diff --git a/python-gradescope-utils.spec b/python-gradescope-utils.spec
new file mode 100644
index 0000000..6db882f
--- /dev/null
+++ b/python-gradescope-utils.spec
@@ -0,0 +1,173 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gradescope-utils
+Version: 0.5.0
+Release: 1
+Summary: Utilities for building Gradescope autograders
+License: MIT
+URL: https://github.com/gradescope/gradescope-utils
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3b/3c/070d6626b31c55f18972c2432b79514949ed47f3f759675a0134b5390021/gradescope-utils-0.5.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-check-manifest
+Requires: python3-coverage
+
+%description
+# Gradescope Python Utilities
+
+[![PyPI version](https://badge.fury.io/py/gradescope-utils.svg)](https://badge.fury.io/py/gradescope-utils)
+[![Documentation Status](https://readthedocs.org/projects/gradescope-utils/badge/?version=latest)](https://gradescope-utils.readthedocs.io/en/latest/?badge=latest)
+
+## Installing
+
+Make sure you have pip installed (eg. on Debian/Ubuntu, `apt-get install python-pip`).
+
+Then, run `pip install gradescope-utils`
+
+## Packages
+
+- [Autograder Utilities](/gradescope_utils/autograder_utils)
+
+## Changelog
+
+See the [Releases](https://github.com/gradescope/gradescope-utils/releases) page.
+
+## Releasing new versions
+
+Follow https://packaging.python.org/tutorials/packaging-projects/, but in brief:
+
+1. Bump the version in setup.py
+2. Draft a release on https://github.com/gradescope/gradescope-utils/releases
+ - This can take care of tagging for you. Otherwise, tag the commit: `git tag vX.Y.Z COMMIT_SHA`
+ - Make sure that the setup.py version matches the release/tag version
+ - GitHub releases can help auto-generate release notes from merged PRs. Edit these as necessary.
+3. Publish the release on GitHub. GitHub Actions will build and publish a new release when a version is tagged (e.g. when a GitHub release is published).
+
+## Support
+
+Contact us at [help@gradescope.com](mailto:help@gradescope.com) if you need help with these packages.
+
+
+%package -n python3-gradescope-utils
+Summary: Utilities for building Gradescope autograders
+Provides: python-gradescope-utils
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gradescope-utils
+# Gradescope Python Utilities
+
+[![PyPI version](https://badge.fury.io/py/gradescope-utils.svg)](https://badge.fury.io/py/gradescope-utils)
+[![Documentation Status](https://readthedocs.org/projects/gradescope-utils/badge/?version=latest)](https://gradescope-utils.readthedocs.io/en/latest/?badge=latest)
+
+## Installing
+
+Make sure you have pip installed (eg. on Debian/Ubuntu, `apt-get install python-pip`).
+
+Then, run `pip install gradescope-utils`
+
+## Packages
+
+- [Autograder Utilities](/gradescope_utils/autograder_utils)
+
+## Changelog
+
+See the [Releases](https://github.com/gradescope/gradescope-utils/releases) page.
+
+## Releasing new versions
+
+Follow https://packaging.python.org/tutorials/packaging-projects/, but in brief:
+
+1. Bump the version in setup.py
+2. Draft a release on https://github.com/gradescope/gradescope-utils/releases
+ - This can take care of tagging for you. Otherwise, tag the commit: `git tag vX.Y.Z COMMIT_SHA`
+ - Make sure that the setup.py version matches the release/tag version
+ - GitHub releases can help auto-generate release notes from merged PRs. Edit these as necessary.
+3. Publish the release on GitHub. GitHub Actions will build and publish a new release when a version is tagged (e.g. when a GitHub release is published).
+
+## Support
+
+Contact us at [help@gradescope.com](mailto:help@gradescope.com) if you need help with these packages.
+
+
+%package help
+Summary: Development documents and examples for gradescope-utils
+Provides: python3-gradescope-utils-doc
+%description help
+# Gradescope Python Utilities
+
+[![PyPI version](https://badge.fury.io/py/gradescope-utils.svg)](https://badge.fury.io/py/gradescope-utils)
+[![Documentation Status](https://readthedocs.org/projects/gradescope-utils/badge/?version=latest)](https://gradescope-utils.readthedocs.io/en/latest/?badge=latest)
+
+## Installing
+
+Make sure you have pip installed (eg. on Debian/Ubuntu, `apt-get install python-pip`).
+
+Then, run `pip install gradescope-utils`
+
+## Packages
+
+- [Autograder Utilities](/gradescope_utils/autograder_utils)
+
+## Changelog
+
+See the [Releases](https://github.com/gradescope/gradescope-utils/releases) page.
+
+## Releasing new versions
+
+Follow https://packaging.python.org/tutorials/packaging-projects/, but in brief:
+
+1. Bump the version in setup.py
+2. Draft a release on https://github.com/gradescope/gradescope-utils/releases
+ - This can take care of tagging for you. Otherwise, tag the commit: `git tag vX.Y.Z COMMIT_SHA`
+ - Make sure that the setup.py version matches the release/tag version
+ - GitHub releases can help auto-generate release notes from merged PRs. Edit these as necessary.
+3. Publish the release on GitHub. GitHub Actions will build and publish a new release when a version is tagged (e.g. when a GitHub release is published).
+
+## Support
+
+Contact us at [help@gradescope.com](mailto:help@gradescope.com) if you need help with these packages.
+
+
+%prep
+%autosetup -n gradescope-utils-0.5.0
+
+%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-gradescope-utils -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.0-1
+- Package Spec generated