Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Thank you for your interest in contributing to syft! This document provides guid

### Prerequisites

- Python 3.10 or higher
- Python 3.11 or higher
- Git
- [uv](https://github.com/astral-sh/uv) (recommended) or pip

Expand Down
2 changes: 1 addition & 1 deletion packages/enclave-model-api-example/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
description = "Example LLM inference API packaged on top of a syft-enclave"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"syft-enclave==0.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-bg/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Background services TUI dashboard for SyftBox"
readme = "README.md"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"click>=8.0.0",
"pyyaml>=6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-datasets/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.22"
description = "Syft Datasets"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"pyyaml>=6.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-enclave/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "TEE attestation server for syft"
readme = "README.md"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"syft>=0.10.0", # floor: the `syft` PyPI project also hosts legacy PySyft <=0.9
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-job/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "syft-job"
version = "0.1.41"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"pydantic>=2.11.7",
"pyyaml>=6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-migration/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Versioning and on-the-fly migration foundation for Syft objects"
readme = "README.md"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"pydantic>=2.11.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-permissions/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.16"
description = "Permission system for Syft datasites"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"pydantic>=2.11.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-perms/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.16"
description = "User-facing permission API for Syft datasites"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"syft-permissions==0.1.15",
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-rds/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "PySyft 0.10+ Remote Data Science client: datasets + jobs on top o
readme = "README.md"
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"syft>=0.10.0", # floor: the `syft` PyPI project also hosts legacy PySyft <=0.9
Expand Down
2 changes: 1 addition & 1 deletion packages/syft-restrict/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Verify + obfuscate: prove JAX/Flax inference code only does math
authors = [{ name = "OpenMined", email = "info@openmined.org" }]
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"

# Static analysis on the stdlib (ast, tokenize, hashlib, fnmatch); pydantic models the results.
dependencies = ["pydantic>=2"]
Expand Down
34 changes: 14 additions & 20 deletions packages/syft-restrict/src/syft_restrict/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,26 +118,20 @@
# usage (mark the body private, leave the `def`/`for`/`if` line public) -- NOT a boundary straddle.
# Their bodies are separate statements the walk enforces on their own; only *simple* statements and
# expressions that themselves span the boundary count as straddling. Excluded from straddle-enforce.
# `ast.TryStar` (3.11+) and `ast.Match` (3.10+) are resolved via getattr and filtered out when
# absent, so the module still imports on the >=3.10 floor.
_COMPOUND_NODES: tuple[type[ast.AST], ...] = tuple(
t
for t in (
ast.Module,
ast.FunctionDef,
ast.AsyncFunctionDef,
ast.ClassDef,
ast.For,
ast.AsyncFor,
ast.While,
ast.If,
ast.With,
ast.AsyncWith,
ast.Try,
getattr(ast, "TryStar", None),
getattr(ast, "Match", None),
)
if t is not None
_COMPOUND_NODES: tuple[type[ast.AST], ...] = (
ast.Module,
ast.FunctionDef,
ast.AsyncFunctionDef,
ast.ClassDef,
ast.For,
ast.AsyncFor,
ast.While,
ast.If,
ast.With,
ast.AsyncWith,
ast.Try,
ast.TryStar,
ast.Match,
)

# violation-code registry: every code a check can raise, one line each (docs/blacklist.md)
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ authors = [
{name = "OpenMined", email = "info@openmined.org"}
]
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
requires-python = ">=3.11"
keywords = ["privacy", "federated-learning", "google-drive", "communication"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
Expand Down
Loading
Loading