Skip to content

Commit

Permalink
cli: Deprecate print_device_info()
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Jul 23, 2024
1 parent 0c8d013 commit dc29b15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apollo_fpga/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
from collections import namedtuple
import xdg.BaseDirectory
from functools import partial
import deprecation

from apollo_fpga import ApolloDebugger
from apollo_fpga import ApolloDebugger, __version__
from apollo_fpga.jtag import JTAGChain, JTAGPatternError
from apollo_fpga.ecp5 import ECP5_JTAGProgrammer, ECP5FlashBridgeProgrammer
from apollo_fpga.onboard_jtag import *
Expand Down Expand Up @@ -76,6 +77,9 @@
}


@deprecation.deprecated(deprecated_in="1.1.0", removed_in="2.0.0",
current_version=__version__,
details="Use ApolloDebugger.print_info() instead.")
def print_device_info(device, args):
""" Command that prints information about devices connected to the scan chain to the console. """

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies = [
"pyvcd>=0.2.4",
"prompt-toolkit>3.0.16",
"pyxdg>=0.27",
"deprecation>=2.1.0",
]
dynamic = ["version"]

Expand Down

0 comments on commit dc29b15

Please sign in to comment.