From e49e624b7c4e0d601d46f73029faa1fc1000e264 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:28:43 -0400 Subject: [PATCH 01/15] Update _internal.py --- raffiot/_internal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raffiot/_internal.py b/raffiot/_internal.py index ce2fa9d..5c82a15 100644 --- a/raffiot/_internal.py +++ b/raffiot/_internal.py @@ -8,7 +8,7 @@ from enum import Enum -from typing_extensions import final +from typing import final from typing import List, Any, Iterable from collections import abc From 6834542d6d0bf15992d0ca3fff32d06674e779f5 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:30:07 -0400 Subject: [PATCH 02/15] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce3a470..d6036e1 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The [API](https://chrilves.github.io/raffiot.py/api/index.html) is online at ## Features -- **pure python**: *Raffiot* is written entirely in Python 3.7+. +- **pure python**: *Raffiot* is written entirely in Python 3.8+. - **small**: it is just a few small files. - **(almost) dependency-free**: it only depends on `typing-extensions` (for the `@final` annotation). @@ -72,4 +72,4 @@ result of a computation: - `Ok(value)`: the computation successfully computed the this `value`. - `Error(error)`: the computation failed on some expected failure `error`, probably from the business domain. -- `Panic(exception)`: the computation failed on some unexpected failure `exception`. \ No newline at end of file +- `Panic(exception)`: the computation failed on some unexpected failure `exception`. From 0591cb600873410aca37ee03c72eee770b299114 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:31:23 -0400 Subject: [PATCH 03/15] Update setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index fe67ef3..0e08460 100755 --- a/setup.py +++ b/setup.py @@ -31,13 +31,13 @@ "Intended Audience :: Developers", "Topic :: Software Development :: Build Tools", "License :: OSI Approved :: Apache Software License", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Operating System :: OS Independent", ], install_requires=["typing-extensions"], - python_requires=">=3.7", + python_requires=">=3.8", zip_safe=False, package_data={"raffiot": ["py.typed"]}, ) From 2bbac30e6f94036db8209fbb19bfd982c72e150a Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:32:19 -0400 Subject: [PATCH 04/15] Update _runtime.py --- raffiot/_runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raffiot/_runtime.py b/raffiot/_runtime.py index feadb83..8013af0 100644 --- a/raffiot/_runtime.py +++ b/raffiot/_runtime.py @@ -18,7 +18,7 @@ from threading import Thread from typing import Any, List, TypeVar, Generic, Callable, Optional, Tuple -from typing_extensions import final +from typing import final from raffiot._internal import ContTag, FiberState, IOTag, ResultTag from raffiot.io import IO From eb292d057b14d3de4c506b34b9cb1026565993c6 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:32:43 -0400 Subject: [PATCH 05/15] Update io.py --- raffiot/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raffiot/io.py b/raffiot/io.py index e87ad24..2d8664a 100644 --- a/raffiot/io.py +++ b/raffiot/io.py @@ -8,7 +8,7 @@ from collections import abc from typing import TypeVar, Generic, Callable, Any, List, Iterable -from typing_extensions import final +from typing import final from raffiot import result from raffiot._internal import IOTag From fd1fe0e5cd1efd8100ac0662c591ca6940c7ae44 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:33:13 -0400 Subject: [PATCH 06/15] Update io.py --- raffiot/io.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/io.py b/raffiot/io.py index 2d8664a..5f6cbaa 100644 --- a/raffiot/io.py +++ b/raffiot/io.py @@ -6,9 +6,7 @@ import time from collections import abc -from typing import TypeVar, Generic, Callable, Any, List, Iterable - -from typing import final +from typing import TypeVar, Generic, Callable, Any, List, Iterable, final from raffiot import result from raffiot._internal import IOTag From 2f98402236945e4e971b89f8a85eac4754f9c715 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:33:36 -0400 Subject: [PATCH 07/15] Update _runtime.py --- raffiot/_runtime.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/_runtime.py b/raffiot/_runtime.py index 8013af0..ec7caf2 100644 --- a/raffiot/_runtime.py +++ b/raffiot/_runtime.py @@ -16,9 +16,7 @@ from queue import Queue from random import randint from threading import Thread -from typing import Any, List, TypeVar, Generic, Callable, Optional, Tuple - -from typing import final +from typing import Any, List, TypeVar, Generic, Callable, Optional, Tuple, final from raffiot._internal import ContTag, FiberState, IOTag, ResultTag from raffiot.io import IO From b8df28353374a0ece730cd5ab7abda7a471edc72 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:33:58 -0400 Subject: [PATCH 08/15] Update _internal.py --- raffiot/_internal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/raffiot/_internal.py b/raffiot/_internal.py index 5c82a15..16a926f 100644 --- a/raffiot/_internal.py +++ b/raffiot/_internal.py @@ -8,8 +8,7 @@ from enum import Enum -from typing import final -from typing import List, Any, Iterable +from typing import List, Any, Iterable, final from collections import abc __all__ = ["IOTag", "ContTag", "ResultTag", "FiberState"] From f9f208357f1e914fee72747de7ea09e1a0a47f17 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:34:24 -0400 Subject: [PATCH 09/15] Update resource.py --- raffiot/resource.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/resource.py b/raffiot/resource.py index 5801144..0bd6d92 100644 --- a/raffiot/resource.py +++ b/raffiot/resource.py @@ -7,9 +7,7 @@ from collections import abc from dataclasses import dataclass -from typing import TypeVar, Generic, Callable, Any, Tuple, List, Iterable - -from typing_extensions import final +from typing import TypeVar, Generic, Callable, Any, Tuple, List, Iterable, final from raffiot import _runtime from raffiot import io From 3a84fef63ce29fdb3f5df63d05a870c79e19f328 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:34:45 -0400 Subject: [PATCH 10/15] Update result.py --- raffiot/result.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/result.py b/raffiot/result.py index 5db1271..12ebb12 100644 --- a/raffiot/result.py +++ b/raffiot/result.py @@ -6,9 +6,7 @@ from collections import abc from dataclasses import dataclass -from typing import TypeVar, Generic, Callable, Any, List, Iterable, Union - -from typing_extensions import final +from typing import TypeVar, Generic, Callable, Any, List, Iterable, Union, final from raffiot.utils import ( ComputationStatus, From ba810cf542257f228e51b3d96730263ea12d1dad Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:35:05 -0400 Subject: [PATCH 11/15] Update utils.py --- raffiot/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/utils.py b/raffiot/utils.py index 1b6a1e6..72594af 100644 --- a/raffiot/utils.py +++ b/raffiot/utils.py @@ -4,9 +4,7 @@ from dataclasses import dataclass from enum import IntEnum from traceback import format_exc, format_stack -from typing import Any, List, Generic, TypeVar, Iterable - -from typing_extensions import final +from typing import Any, List, Generic, TypeVar, Iterable, final __all__ = [ "TracedException", From 5d312c7f484729237374bcdc939280033a97200a Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:35:26 -0400 Subject: [PATCH 12/15] Update val.py --- raffiot/val.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/val.py b/raffiot/val.py index c14eb0b..71d7c36 100644 --- a/raffiot/val.py +++ b/raffiot/val.py @@ -7,9 +7,7 @@ from collections import abc from dataclasses import dataclass -from typing import Generic, TypeVar, Callable, List, Any - -from typing_extensions import final +from typing import Generic, TypeVar, Callable, List, Any, final from raffiot import io, resource from raffiot.io import IO From 5ddbaedee505a1a65cfdec6f7868a633db92297a Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:35:47 -0400 Subject: [PATCH 13/15] Update var.py --- raffiot/var.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/raffiot/var.py b/raffiot/var.py index d2ca7db..04ae79c 100644 --- a/raffiot/var.py +++ b/raffiot/var.py @@ -8,9 +8,7 @@ from collections import abc from dataclasses import dataclass -from typing import Generic, TypeVar, Callable, List, Any, Tuple - -from typing_extensions import final +from typing import Generic, TypeVar, Callable, List, Any, Tuple, final from raffiot import io, resource from raffiot.io import IO From e0dfbd98d713545ffb9adce8de5a493e21e6ae28 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:38:12 -0400 Subject: [PATCH 14/15] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d6036e1..cc0851a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Robust And Fast Functional IO Toolkit -*Raffiot* is small (almost) dependency-free python library providing some +*Raffiot* is small dependency-free python library providing some usual functional tools. It currently provides - an easy-to-use `IO` monad which is **stack-safe**, **fast**, support **asynchronous**, **concurrent**, **parallel** programming, has many other features. @@ -37,8 +37,7 @@ The [API](https://chrilves.github.io/raffiot.py/api/index.html) is online at - **pure python**: *Raffiot* is written entirely in Python 3.8+. - **small**: it is just a few small files. -- **(almost) dependency-free**: it only depends on `typing-extensions` (for the - `@final` annotation). +- **dependency-free**: it only depends on the python standary library. - **crystal clear code** ### IO From 24af010444f3bfdbfe52c44fca53909840cdbfe1 Mon Sep 17 00:00:00 2001 From: Stephen Daves Date: Tue, 29 Mar 2022 20:55:51 -0400 Subject: [PATCH 15/15] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0e08460..bda2f22 100755 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ "Programming Language :: Python :: 3.10", "Operating System :: OS Independent", ], - install_requires=["typing-extensions"], + install_requires=[], python_requires=">=3.8", zip_safe=False, package_data={"raffiot": ["py.typed"]},