Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python versions: drop 3.8 #443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Prerequisites

To use GreatFET you will need to ensure the following software is installed:

* `Python <https://wiki.python.org/moin/BeginnersGuide/Download>`__ v3.8, or later.
* `Python <https://wiki.python.org/moin/BeginnersGuide/Download>`__ v3.9, or later.


GreatFET Host Software Installation
Expand Down
32 changes: 16 additions & 16 deletions docs/source/greatfet_gnuradio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Requirements
You'll need an up-to-date GNURadio environment to use our blocks. This means:

- GNURadio >= 3.8, built with python3*
- python 3.6+
- python >= 3.9

It's possible these blocks will work with GNURadio on lower python versions; but these aren't our development targets and aren't fully supported.

Expand All @@ -27,35 +27,35 @@ Open this file, and find the section that's headed ``[grc]``; or create the rele

.. code-block:: sh

[grc]
<existing keys here>
[grc]
<existing keys here>

We'll want to add the location of our blocks to the configuration file's ``local_blocks_path``. We can determine the location of our blocks using the ``gf info`` command:

.. code-block:: sh

$ gf info --host
Host tools info:
host module version: 2019.5.1
pygreat module version: 2019.9.1
python version: 3.8.0 (default, Oct 23 2019, 18:51:26)
$ gf info --host
Host tools info:
host module version: 2019.5.1
pygreat module version: 2019.9.1
python version: 3.9.0 (default, Oct 23 2019, 18:51:26)

module path: /home/user/.local/lib/python3.8/site-packages/greatfet
command path: /home/user/.local/lib/python3.8/site-packages/greatfet/commands
gnuradio-companion block path: /home/user/.local/lib/python3.8/site-packages/greatfet/gnuradio
module path: /home/user/.local/lib/python3.9/site-packages/greatfet
command path: /home/user/.local/lib/python3.9/site-packages/greatfet/commands
gnuradio-companion block path: /home/user/.local/lib/python3.9/site-packages/greatfet/gnuradio

In the output above, the last line points out our GRC block path. We'll add this to the ``local_block_path`` entry in our configuration file:

.. code-block:: sh

[grc]
local_blocks_path = /home/user/.local/lib/python3.8/site-packages/greatfet/gnuradio
[grc]
local_blocks_path = /home/user/.local/lib/python3.9/site-packages/greatfet/gnuradio

If you want to have multiple entries, here -- for example, if existing entries are already present -- you can separate multiple paths using colons, similar to Linux paths:

.. code-block:: sh

[grc]
local_blocks_path = /home/user/.local/lib/python3.8/site-packages/greatfet/gnuradio:/home/user/my_blocks
[grc]
local_blocks_path = /home/user/.local/lib/python3.9/site-packages/greatfet/gnuradio:/home/user/my_blocks

The next time you start GRC, you should see new headings (e.g. ``SDIR`` and ``Software Defined Everything``) in your list of available blocks.
The next time you start GRC, you should see new headings (e.g. ``SDIR`` and ``Software Defined Everything``) in your list of available blocks.
4 changes: 2 additions & 2 deletions docs/source/release_process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Create Environment

.. code-block:: sh

pyenv install 3.8
pyenv virtualenv 3.8 gsg-release
pyenv install 3.9
pyenv virtualenv 3.9 gsg-release
pyenv local gsg-release

python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions host/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "greatfet"
description = "Python library for hardware hacking with the GreatFET"
license = { text = "BSD" }
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
authors = [
{name = "Great Scott Gadgets", email = "[email protected]"},
]
Expand Down Expand Up @@ -37,7 +37,7 @@ dependencies = [
"tabulate",
"prompt_toolkit",
"pygreat",
"ipython~=8.12", # final version supported by Python 3.8
"ipython~=8.12",
]

dynamic = ["version"]
Expand Down