%global _empty_manifest_terminate_build 0 Name: python-asfpy-phd Version: 0.5.0 Release: 1 Summary: A collection of Python scripts for the Application Statement Feedback Program's logistics needs License: MIT License URL: https://github.com/asfpteam/asfpy Source0: https://mirrors.aliyun.com/pypi/web/packages/0e/72/2f6f922ad4849fa3ed2670461cc792814227b18bb2e4f72c83e518241336/asfpy-phd-0.5.0.tar.gz BuildArch: noarch %description # ASFPy A collection of Python scripts for the Application Statement Feedback Program's logistic needs. - [Installation](#installation) - [Usage](#usage) - [Contributing](#contributing) * [Packaging](#packaging) * [Authors](#authors) ## Installation This package requires Python 3.6+ and pip 20+, and recommends using the Python 3.8 runtime. To install, run ``` pip install asfpy-phd ``` You can find further installation instructions and versioned distributions at https://pypi.org/project/asfpy-phd/. ## Usage 6 Current usage requires importing the namespace directly: ``` from asfpy import asfpy ``` This can then be used to work with internal methods. For instance: ``` asfpy.allocate(applicants, editors) ``` will run the allocation algorithm, which returns a list of matchings between applicants and two editors each. If two editors cannot be matched, the applicant remains in an unmatched list. ## Contributing ### Packaging Install via pip: `setuptools`, `wheel` and `twine`. Update version number in `setup.py` before creating a new distribution. From root of project, run `python setup.py sdist bdist_wheel` to create distribution in `dist/*`. Then run `twine upload dist/*`. ### Authors Ari Dyckovsky %package -n python3-asfpy-phd Summary: A collection of Python scripts for the Application Statement Feedback Program's logistics needs Provides: python-asfpy-phd BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-asfpy-phd # ASFPy A collection of Python scripts for the Application Statement Feedback Program's logistic needs. - [Installation](#installation) - [Usage](#usage) - [Contributing](#contributing) * [Packaging](#packaging) * [Authors](#authors) ## Installation This package requires Python 3.6+ and pip 20+, and recommends using the Python 3.8 runtime. To install, run ``` pip install asfpy-phd ``` You can find further installation instructions and versioned distributions at https://pypi.org/project/asfpy-phd/. ## Usage 6 Current usage requires importing the namespace directly: ``` from asfpy import asfpy ``` This can then be used to work with internal methods. For instance: ``` asfpy.allocate(applicants, editors) ``` will run the allocation algorithm, which returns a list of matchings between applicants and two editors each. If two editors cannot be matched, the applicant remains in an unmatched list. ## Contributing ### Packaging Install via pip: `setuptools`, `wheel` and `twine`. Update version number in `setup.py` before creating a new distribution. From root of project, run `python setup.py sdist bdist_wheel` to create distribution in `dist/*`. Then run `twine upload dist/*`. ### Authors Ari Dyckovsky %package help Summary: Development documents and examples for asfpy-phd Provides: python3-asfpy-phd-doc %description help # ASFPy A collection of Python scripts for the Application Statement Feedback Program's logistic needs. - [Installation](#installation) - [Usage](#usage) - [Contributing](#contributing) * [Packaging](#packaging) * [Authors](#authors) ## Installation This package requires Python 3.6+ and pip 20+, and recommends using the Python 3.8 runtime. To install, run ``` pip install asfpy-phd ``` You can find further installation instructions and versioned distributions at https://pypi.org/project/asfpy-phd/. ## Usage 6 Current usage requires importing the namespace directly: ``` from asfpy import asfpy ``` This can then be used to work with internal methods. For instance: ``` asfpy.allocate(applicants, editors) ``` will run the allocation algorithm, which returns a list of matchings between applicants and two editors each. If two editors cannot be matched, the applicant remains in an unmatched list. ## Contributing ### Packaging Install via pip: `setuptools`, `wheel` and `twine`. Update version number in `setup.py` before creating a new distribution. From root of project, run `python setup.py sdist bdist_wheel` to create distribution in `dist/*`. Then run `twine upload dist/*`. ### Authors Ari Dyckovsky %prep %autosetup -n asfpy-phd-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-asfpy-phd -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.5.0-1 - Package Spec generated