summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-asfpy-phd.spec249
-rw-r--r--sources1
3 files changed, 251 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b56eb26 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asfpy-phd-0.5.0.tar.gz
diff --git a/python-asfpy-phd.spec b/python-asfpy-phd.spec
new file mode 100644
index 0000000..25bf01b
--- /dev/null
+++ b/python-asfpy-phd.spec
@@ -0,0 +1,249 @@
+%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.
+
+<!-- toc -->
+
+- [Installation](#installation)
+- [Usage](#usage)
+- [Contributing](#contributing)
+ * [Packaging](#packaging)
+ * [Authors](#authors)
+
+<!-- tocstop -->
+
+## 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.
+
+<!-- toc -->
+
+- [Installation](#installation)
+- [Usage](#usage)
+- [Contributing](#contributing)
+ * [Packaging](#packaging)
+ * [Authors](#authors)
+
+<!-- tocstop -->
+
+## 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.
+
+<!-- toc -->
+
+- [Installation](#installation)
+- [Usage](#usage)
+- [Contributing](#contributing)
+ * [Packaging](#packaging)
+ * [Authors](#authors)
+
+<!-- tocstop -->
+
+## 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 <Python_Bot@openeuler.org> - 0.5.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8680f11
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b191bfa2652f81d0985738880e7dc4a5 asfpy-phd-0.5.0.tar.gz