From c6716e8c1bcd3424c78e64845162768b0c6b6893 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 03:31:25 +0000 Subject: automatic import of python-heaserver --- .gitignore | 1 + python-heaserver.spec | 219 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 221 insertions(+) create mode 100644 python-heaserver.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..f963503 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/heaserver-1.0.0a125.tar.gz diff --git a/python-heaserver.spec b/python-heaserver.spec new file mode 100644 index 0000000..9d09af6 --- /dev/null +++ b/python-heaserver.spec @@ -0,0 +1,219 @@ +%global _empty_manifest_terminate_build 0 +Name: python-heaserver +Version: 1.0.0a125 +Release: 1 +Summary: The server side of HEA. +License: Apache Software License +URL: https://risr.hci.utah.edu +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c4/52/810b6dd23f35d4b7840260a04e42311818695366ca1fec25651918c59bb5/heaserver-1.0.0a125.tar.gz +BuildArch: noarch + +Requires: python3-heaobject +Requires: python3-aiohttp[speedups] +Requires: python3-aiohttp-remotes +Requires: python3-motor +Requires: python3-motor-types +Requires: python3-tzlocal +Requires: python3-accept-types +Requires: python3-mongoquery +Requires: python3-jsonschema +Requires: python3-jsonmerge +Requires: python3-requests +Requires: python3-types-requests +Requires: python3-boto3 +Requires: python3-botocore +Requires: python3-boto3-stubs[essential] +Requires: python3-botocore-stubs[essential] +Requires: python3-freezegun +Requires: python3-regex +Requires: python3-aio-pika +Requires: python3-PyJWT +Requires: python3-simpleeval + +%description +# HEA Server Framework +[Research Informatics Shared Resource](https://risr.hci.utah.edu), [Huntsman Cancer Institute](https://healthcare.utah.edu/huntsmancancerinstitute/), Salt Lake City, UT + +The HEA Server Framework contains shared code for creating HEA microservices. + +## Version 1 +Initial release. + +## Runtime requirements +* Python 3.10.10 or greater. + +## Development environment + +### Build requirements +* Any development environment is fine. +* On Windows, you also will need: + * Build Tools for Visual Studio 2019, found at https://visualstudio.microsoft.com/downloads/. Select the C++ tools. + * git, found at https://git-scm.com/download/win. +* On Mac, Xcode or the command line developer tools is required, found in the Apple Store app. +* Python 3.10: Download and install Python 3.10 from https://www.python.org, and select the options to install for all users and add +Python to your environment variables. The install for all users option will help keep you from accidentally installing +packages into your Python installation's site-packages directory instead of to your virtualenv environment, described +below. +* Create a virtualenv environment using the `python -m venv ` command, substituting `` +with the directory name of your virtual environment. Run `source /bin/activate` (or `/Scripts/activate` on Windows) to activate the virtual +environment. You will need to activate the virtualenv every time before starting work, or your IDE may be able to do +this for you automatically. **Note that PyCharm will do this for you, but you have to create a new Terminal panel +after you newly configure a project with your virtualenv.** +* From the project's root directory, and using the activated virtualenv, run `pip install wheel` followed by + `pip install -r requirements_dev.txt`. **Do NOT run `python setup.py develop`. It will break your environment.** + +### Running tests +Run tests with the `pytest` command from the project root directory. To improve performance, run tests in multiple +processes with `pytest -n auto`. + +### Running integration tests +* Install Docker +* On Windows, install pywin32 version >= 223 from https://github.com/mhammond/pywin32/releases. In your venv, make sure that +`include-system-site-packages` is set to `true`. + +### Packaging and releasing this project +See the [RELEASING.md](RELEASING.md) file for details. + + +%package -n python3-heaserver +Summary: The server side of HEA. +Provides: python-heaserver +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-heaserver +# HEA Server Framework +[Research Informatics Shared Resource](https://risr.hci.utah.edu), [Huntsman Cancer Institute](https://healthcare.utah.edu/huntsmancancerinstitute/), Salt Lake City, UT + +The HEA Server Framework contains shared code for creating HEA microservices. + +## Version 1 +Initial release. + +## Runtime requirements +* Python 3.10.10 or greater. + +## Development environment + +### Build requirements +* Any development environment is fine. +* On Windows, you also will need: + * Build Tools for Visual Studio 2019, found at https://visualstudio.microsoft.com/downloads/. Select the C++ tools. + * git, found at https://git-scm.com/download/win. +* On Mac, Xcode or the command line developer tools is required, found in the Apple Store app. +* Python 3.10: Download and install Python 3.10 from https://www.python.org, and select the options to install for all users and add +Python to your environment variables. The install for all users option will help keep you from accidentally installing +packages into your Python installation's site-packages directory instead of to your virtualenv environment, described +below. +* Create a virtualenv environment using the `python -m venv ` command, substituting `` +with the directory name of your virtual environment. Run `source /bin/activate` (or `/Scripts/activate` on Windows) to activate the virtual +environment. You will need to activate the virtualenv every time before starting work, or your IDE may be able to do +this for you automatically. **Note that PyCharm will do this for you, but you have to create a new Terminal panel +after you newly configure a project with your virtualenv.** +* From the project's root directory, and using the activated virtualenv, run `pip install wheel` followed by + `pip install -r requirements_dev.txt`. **Do NOT run `python setup.py develop`. It will break your environment.** + +### Running tests +Run tests with the `pytest` command from the project root directory. To improve performance, run tests in multiple +processes with `pytest -n auto`. + +### Running integration tests +* Install Docker +* On Windows, install pywin32 version >= 223 from https://github.com/mhammond/pywin32/releases. In your venv, make sure that +`include-system-site-packages` is set to `true`. + +### Packaging and releasing this project +See the [RELEASING.md](RELEASING.md) file for details. + + +%package help +Summary: Development documents and examples for heaserver +Provides: python3-heaserver-doc +%description help +# HEA Server Framework +[Research Informatics Shared Resource](https://risr.hci.utah.edu), [Huntsman Cancer Institute](https://healthcare.utah.edu/huntsmancancerinstitute/), Salt Lake City, UT + +The HEA Server Framework contains shared code for creating HEA microservices. + +## Version 1 +Initial release. + +## Runtime requirements +* Python 3.10.10 or greater. + +## Development environment + +### Build requirements +* Any development environment is fine. +* On Windows, you also will need: + * Build Tools for Visual Studio 2019, found at https://visualstudio.microsoft.com/downloads/. Select the C++ tools. + * git, found at https://git-scm.com/download/win. +* On Mac, Xcode or the command line developer tools is required, found in the Apple Store app. +* Python 3.10: Download and install Python 3.10 from https://www.python.org, and select the options to install for all users and add +Python to your environment variables. The install for all users option will help keep you from accidentally installing +packages into your Python installation's site-packages directory instead of to your virtualenv environment, described +below. +* Create a virtualenv environment using the `python -m venv ` command, substituting `` +with the directory name of your virtual environment. Run `source /bin/activate` (or `/Scripts/activate` on Windows) to activate the virtual +environment. You will need to activate the virtualenv every time before starting work, or your IDE may be able to do +this for you automatically. **Note that PyCharm will do this for you, but you have to create a new Terminal panel +after you newly configure a project with your virtualenv.** +* From the project's root directory, and using the activated virtualenv, run `pip install wheel` followed by + `pip install -r requirements_dev.txt`. **Do NOT run `python setup.py develop`. It will break your environment.** + +### Running tests +Run tests with the `pytest` command from the project root directory. To improve performance, run tests in multiple +processes with `pytest -n auto`. + +### Running integration tests +* Install Docker +* On Windows, install pywin32 version >= 223 from https://github.com/mhammond/pywin32/releases. In your venv, make sure that +`include-system-site-packages` is set to `true`. + +### Packaging and releasing this project +See the [RELEASING.md](RELEASING.md) file for details. + + +%prep +%autosetup -n heaserver-1.0.0a125 + +%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-heaserver -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 1.0.0a125-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..afaa640 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +03ac3d4fc62ffe37b52751cd7704e4fb heaserver-1.0.0a125.tar.gz -- cgit v1.2.3