Skip to content

Commit c41ef7a

Browse files
authored
Remove python 3.8 from pyproject and README (#450)
Signed-off-by: Rob Ambalu <robert.ambalu@point72.com>
1 parent a436949 commit c41ef7a

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[![PyPI](https://img.shields.io/pypi/v/csp.svg?style=flat)](https://pypi.python.org/pypi/csp)
1111
[![License](https://img.shields.io/badge/license-Apache--2.0-green)](https://github.com/Point72/csp/LICENSE)
1212
[![Build Status](https://github.com/Point72/csp/actions/workflows/build.yml/badge.svg)](https://github.com/Point72/csp/actions/workflows/build.yml)
13-
[![Python Versions](https://img.shields.io/badge/python-3.8_%7C_3.9_%7C_3.10_%7C_3.11_%7C_3.12-blue)](https://github.com/Point72/csp/blob/main/pyproject.toml)
13+
[![Python Versions](https://img.shields.io/badge/python-3.9_%7C_3.10_%7C_3.11_%7C_3.12-blue)](https://github.com/Point72/csp/blob/main/pyproject.toml)
1414

1515
<br/>
1616

csp/impl/wiring/runtime.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ def build_graph(f, *args, starttime=None, endtime=None, realtime=False, **kwargs
3838
), "Start time and end time should either both be specified or none of them should be specified when building a graph"
3939
if starttime:
4040
starttime, endtime = _normalize_run_times(starttime, endtime, realtime)
41-
with ExceptionContext(), GraphRunInfo(starttime=starttime, endtime=endtime, realtime=realtime), Context(
42-
start_time=starttime, end_time=endtime
43-
) as c:
41+
with (
42+
ExceptionContext(),
43+
GraphRunInfo(starttime=starttime, endtime=endtime, realtime=realtime),
44+
Context(start_time=starttime, end_time=endtime) as c,
45+
):
4446
# Setup the profiler if within a profiling context
4547
if Profiler.instance() is not None and not Profiler.instance().initialized:
4648
Profiler.instance().init_profiler()

csp/tests/test_baselib.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,11 @@ def graph():
11281128
csp.log(logging.CRITICAL, "z", z, logging.getLogger("logger3"))
11291129
csp.add_graph_output("x", x)
11301130

1131-
with self.assertLogs("logger1", level="CRITICAL") as cm1, self.assertLogs(
1132-
"logger2", level="CRITICAL"
1133-
) as cm2, self.assertLogs("logger3", level="CRITICAL") as cm3:
1131+
with (
1132+
self.assertLogs("logger1", level="CRITICAL") as cm1,
1133+
self.assertLogs("logger2", level="CRITICAL") as cm2,
1134+
self.assertLogs("logger3", level="CRITICAL") as cm3,
1135+
):
11341136
csp.run(graph, starttime=st, endtime=timedelta(seconds=60))
11351137

11361138
exp_out_log1 = [

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ authors = [{name = "the csp authors", email = "CSPOpenSource@point72.com"}]
1717
description="csp is a high performance reactive stream processing library, written in C++ and Python"
1818
readme = "README.md"
1919
version = "0.0.8"
20-
requires-python = ">=3.8"
20+
requires-python = ">=3.9"
2121

2222
dependencies = [
23-
"backports.zoneinfo; python_version<'3.9'",
2423
"deprecated",
2524
"numpy<2",
2625
"packaging",
@@ -38,7 +37,6 @@ classifiers = [
3837
"Programming Language :: Python :: Implementation :: CPython",
3938
"Programming Language :: Python :: Implementation :: PyPy",
4039
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.8",
4240
"Programming Language :: Python :: 3.9",
4341
"Programming Language :: Python :: 3.10",
4442
"Programming Language :: Python :: 3.11",
@@ -149,7 +147,7 @@ replace = 'project(csp VERSION "{new_version}")'
149147
ignore = []
150148

151149
[tool.cibuildwheel]
152-
build = "cp38-* cp39-* cp310-* cp311-* cp312-*"
150+
build = "cp39-* cp310-* cp311-* cp312-*"
153151
test-command = "echo 'TODO'"
154152
test-requires = [
155153
"pytest",

0 commit comments

Comments
 (0)