%global _empty_manifest_terminate_build 0
Name: python-prefect
Version: 2.10.5
Release: 1
Summary: Workflow orchestration and management.
License: Apache Software License
URL: https://www.prefect.io
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/70/20/e7f1c0a35cebc568179b5e9302a284d4c45e0bbe23b5a9d517c785e096c3/prefect-2.10.5.tar.gz
BuildArch: noarch
Requires: python3-aiosqlite
Requires: python3-alembic
Requires: python3-anyio
Requires: python3-apprise
Requires: python3-asgi-lifespan
Requires: python3-asyncpg
Requires: python3-click
Requires: python3-cloudpickle
Requires: python3-coolname
Requires: python3-croniter
Requires: python3-cryptography
Requires: python3-dateparser
Requires: python3-docker
Requires: python3-fastapi
Requires: python3-fsspec
Requires: python3-griffe
Requires: python3-httpx[http2]
Requires: python3-jinja2
Requires: python3-jsonpatch
Requires: python3-jsonschema
Requires: python3-kubernetes
Requires: python3-orjson
Requires: python3-packaging
Requires: python3-pathspec
Requires: python3-pendulum
Requires: python3-pydantic
Requires: python3-slugify
Requires: python3-pytz
Requires: python3-pyyaml
Requires: python3-readchar
Requires: python3-rich
Requires: python3-sqlalchemy[asyncio]
Requires: python3-toml
Requires: python3-typer
Requires: python3-typing-extensions
Requires: python3-uvicorn
Requires: python3-websockets
Requires: python3-importlib-metadata
Requires: python3-autoflake8
Requires: python3-cairosvg
Requires: python3-flake8
Requires: python3-flaky
Requires: python3-ipython
Requires: python3-jinja2
Requires: python3-mkdocs
Requires: python3-mkdocs-gen-files
Requires: python3-mkdocs-material
Requires: python3-mkdocstrings-python
Requires: python3-mike
Requires: python3-moto
Requires: python3-mypy
Requires: python3-numpy
Requires: python3-pillow
Requires: python3-pre-commit
Requires: python3-pytest
Requires: python3-pytest-asyncio
Requires: python3-pytest-cov
Requires: python3-pytest-benchmark
Requires: python3-pytest-env
Requires: python3-pytest-flakefinder
Requires: python3-pytest-timeout
Requires: python3-pytest-xdist
Requires: python3-pytkdocs
Requires: python3-pyyaml
Requires: python3-requests
Requires: python3-virtualenv
Requires: python3-watchfiles
Requires: python3-respx
Requires: python3-mock
Requires: python3-setuptools
%description

# Prefect
Prefect is an orchestrator for data-intensive workflows. It's the simplest way to transform any Python function into a unit of work that can be observed and orchestrated. With Prefect, you can build resilient, dynamic workflows that react to the world around them and recover from unexpected changes. With just a few decorators, Prefect supercharges your code with features like automatic retries, distributed execution, scheduling, caching, and much more. Every activity is tracked and can be monitored with the Prefect server or Prefect Cloud dashboard.
```python
from prefect import flow, task
from typing import List
import httpx
@task(retries=3)
def get_stars(repo: str):
url = f"https://api.github.com/repos/{repo}"
count = httpx.get(url).json()["stargazers_count"]
print(f"{repo} has {count} stars!")
@flow(name="GitHub Stars")
def github_stars(repos: List[str]):
for repo in repos:
get_stars(repo)
# run the flow!
github_stars(["PrefectHQ/Prefect"])
```
After running some flows, fire up the Prefect UI to see what happened:
```bash
prefect server start
```

From here, you can continue to use Prefect interactively or [deploy your flows](https://docs.prefect.io/concepts/deployments) to remote envirnments, running on a scheduled or event-driven basis.
## Getting Started
Prefect requires Python 3.7 or later. To [install Prefect](https://docs.prefect.io/getting-started/installation/), run the following command in a shell or terminal session:
```bash
pip install prefect
```
Start by then exploring the [core concepts of Prefect workflows](https://docs.prefect.io/concepts/), then follow one of our [friendly tutorials](https://docs.prefect.io/tutorials/first-steps) to learn by example.
## Join the community
Prefect is made possible by the fastest growing community of thousands of friendly data engineers. Join us in building a new kind of workflow system. The [Prefect Slack community](https://prefect.io/slack) is a fantastic place to learn more abou Prefect, ask questions, or get help with workflow design. The [Prefect Discourse](https://discourse.prefect.io/) is an community-driven knowledge base to find answers to your Prefect-related questions. All community forums, including code contributions, issue discussions, and slack messages are subject to our [Code of Conduct](https://discourse.prefect.io/faq).
## Contribute
See our [documentation on contributing to Prefect](https://docs.prefect.io/contributing/overview/).
Thanks for being part of the mission to build a new kind of workflow system and, of course, **happy engineering!**
%package -n python3-prefect
Summary: Workflow orchestration and management.
Provides: python-prefect
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-prefect

# Prefect
Prefect is an orchestrator for data-intensive workflows. It's the simplest way to transform any Python function into a unit of work that can be observed and orchestrated. With Prefect, you can build resilient, dynamic workflows that react to the world around them and recover from unexpected changes. With just a few decorators, Prefect supercharges your code with features like automatic retries, distributed execution, scheduling, caching, and much more. Every activity is tracked and can be monitored with the Prefect server or Prefect Cloud dashboard.
```python
from prefect import flow, task
from typing import List
import httpx
@task(retries=3)
def get_stars(repo: str):
url = f"https://api.github.com/repos/{repo}"
count = httpx.get(url).json()["stargazers_count"]
print(f"{repo} has {count} stars!")
@flow(name="GitHub Stars")
def github_stars(repos: List[str]):
for repo in repos:
get_stars(repo)
# run the flow!
github_stars(["PrefectHQ/Prefect"])
```
After running some flows, fire up the Prefect UI to see what happened:
```bash
prefect server start
```

From here, you can continue to use Prefect interactively or [deploy your flows](https://docs.prefect.io/concepts/deployments) to remote envirnments, running on a scheduled or event-driven basis.
## Getting Started
Prefect requires Python 3.7 or later. To [install Prefect](https://docs.prefect.io/getting-started/installation/), run the following command in a shell or terminal session:
```bash
pip install prefect
```
Start by then exploring the [core concepts of Prefect workflows](https://docs.prefect.io/concepts/), then follow one of our [friendly tutorials](https://docs.prefect.io/tutorials/first-steps) to learn by example.
## Join the community
Prefect is made possible by the fastest growing community of thousands of friendly data engineers. Join us in building a new kind of workflow system. The [Prefect Slack community](https://prefect.io/slack) is a fantastic place to learn more abou Prefect, ask questions, or get help with workflow design. The [Prefect Discourse](https://discourse.prefect.io/) is an community-driven knowledge base to find answers to your Prefect-related questions. All community forums, including code contributions, issue discussions, and slack messages are subject to our [Code of Conduct](https://discourse.prefect.io/faq).
## Contribute
See our [documentation on contributing to Prefect](https://docs.prefect.io/contributing/overview/).
Thanks for being part of the mission to build a new kind of workflow system and, of course, **happy engineering!**
%package help
Summary: Development documents and examples for prefect
Provides: python3-prefect-doc
%description help

# Prefect
Prefect is an orchestrator for data-intensive workflows. It's the simplest way to transform any Python function into a unit of work that can be observed and orchestrated. With Prefect, you can build resilient, dynamic workflows that react to the world around them and recover from unexpected changes. With just a few decorators, Prefect supercharges your code with features like automatic retries, distributed execution, scheduling, caching, and much more. Every activity is tracked and can be monitored with the Prefect server or Prefect Cloud dashboard.
```python
from prefect import flow, task
from typing import List
import httpx
@task(retries=3)
def get_stars(repo: str):
url = f"https://api.github.com/repos/{repo}"
count = httpx.get(url).json()["stargazers_count"]
print(f"{repo} has {count} stars!")
@flow(name="GitHub Stars")
def github_stars(repos: List[str]):
for repo in repos:
get_stars(repo)
# run the flow!
github_stars(["PrefectHQ/Prefect"])
```
After running some flows, fire up the Prefect UI to see what happened:
```bash
prefect server start
```

From here, you can continue to use Prefect interactively or [deploy your flows](https://docs.prefect.io/concepts/deployments) to remote envirnments, running on a scheduled or event-driven basis.
## Getting Started
Prefect requires Python 3.7 or later. To [install Prefect](https://docs.prefect.io/getting-started/installation/), run the following command in a shell or terminal session:
```bash
pip install prefect
```
Start by then exploring the [core concepts of Prefect workflows](https://docs.prefect.io/concepts/), then follow one of our [friendly tutorials](https://docs.prefect.io/tutorials/first-steps) to learn by example.
## Join the community
Prefect is made possible by the fastest growing community of thousands of friendly data engineers. Join us in building a new kind of workflow system. The [Prefect Slack community](https://prefect.io/slack) is a fantastic place to learn more abou Prefect, ask questions, or get help with workflow design. The [Prefect Discourse](https://discourse.prefect.io/) is an community-driven knowledge base to find answers to your Prefect-related questions. All community forums, including code contributions, issue discussions, and slack messages are subject to our [Code of Conduct](https://discourse.prefect.io/faq).
## Contribute
See our [documentation on contributing to Prefect](https://docs.prefect.io/contributing/overview/).
Thanks for being part of the mission to build a new kind of workflow system and, of course, **happy engineering!**
%prep
%autosetup -n prefect-2.10.5
%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-prefect -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Apr 21 2023 Python_Bot - 2.10.5-1
- Package Spec generated