Skip to content

Commit

Permalink
chore: drop support for Python 3.8 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c authored Oct 7, 2024
1 parent 3718d46 commit 0b14d40
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 23 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
fail-fast: false
# https://blog.jaraco.com/efficient-use-of-ci-resources/
matrix:
python: ["3.8", "3.12"]
python: ["3.9", "3.12"]
platform: ["ubuntu", "macos", "windows"]
include:
- python: "3.9"
platform: "ubuntu"
- python: "3.10"
platform: "ubuntu"
- python: "3.11"
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ $ pip install ixia
Ixia documentation is available at https://trag1c.github.io/ixia/.

## ⚠️ Important Notes
While supporting Python 3.8+, Ixia is based on the Python 3.12 implementation
While supporting Python 3.9+, Ixia is based on the Python 3.12 implementation
of the `random` module. The following changes have been made to the module
since Python 3.8:
- `getrandbits` accepts 0 for `k`
- `choices` raises a `ValueError` if all weights are zero
- `sample` has a new `counts` parameter
- `gauss` and `normal_variate` have default parameter values
since Python 3.9:
- `gauss`, `expovariate` and `normalvariate` have default parameter values
- `binomialvariate` was added

Additionally, Ixia executes 3.9+ deprecations, thus:
- `ixia.rand_range` doesn't convert non-integer types to equivalent integers
Expand Down
7 changes: 2 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@ functions, such as [`ixia.passphrase()`](strings_and_bytes.md#ixiapassphrase),
values are generated using `urandom` (or `BCryptGenRandom` on Windows).

## ⚠️ Important Notes
While supporting Python 3.8+, Ixia is based on the Python 3.12 implementation
While supporting Python 3.9+, Ixia is based on the Python 3.12 implementation
of the `random` module. The following changes have been made to the module
since Python 3.8:
since Python 3.9:

- `getrandbits` accepts 0 for `k`
- `choices` raises a `ValueError` if all weights are zero
- `sample` has a new `counts` parameter
- `gauss`, `expovariate` and `normalvariate` have default parameter values
- `binomialvariate` was added

Expand Down
10 changes: 5 additions & 5 deletions ixia/date_time.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from __future__ import annotations

import datetime as dt
from typing import Tuple, Union
from typing import Union

from .integers import rand_below, rand_int

Datelike = Union[str, int, Tuple[int, int, int], dt.date, dt.datetime]
Datelike = Union[str, int, tuple[int, int, int], dt.date, dt.datetime]
Timelike = Union[
str,
int,
Tuple[int, int],
Tuple[int, int, int],
Tuple[int, int, int, int],
tuple[int, int],
tuple[int, int, int],
tuple[int, int, int, int],
dt.time,
dt.datetime,
]
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/trag1c/ixia"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"

[tool.poetry.group.dev.dependencies]
mypy = "^1.5.0"
Expand Down

0 comments on commit 0b14d40

Please sign in to comment.