First, determine how often the person is shoving in order to get an indication of his range. There's quite a difference between say every hand and one in three. Then decide what range you're willing to play for stacks against that range.
It also helps to have an idea of what the odds
are likely to be. For example, against someone who is shoving every hand, and whose range is therefor any two, you're nearly a 3:1 favorite if, as suggested, you go against them with a top 10 hand. If your range is the top 40 hands, you're a little under 65%.
But except for HU, it's not just two people playing in a vacuum. In practice, the smaller the range you choose to play, the greater the chance someone else will get the shover's chips before you get the hand you're waiting for. So you have to decide on the risk / reward you're willing to go with.