savagezen / dnd-tools

ARCHIVE - MOVED TO GITLAB | Interactive CLI tools for Dungeons and Dragons 5e
https://gitlab.com/savagezen/dnd-tools
GNU Affero General Public License v3.0
164 stars 34 forks source link

No/wrong python version specified #24

Open HalJordan opened 3 years ago

HalJordan commented 3 years ago

I'm getting this when I run it, and the shebang only shows "python":

% dnd-tools
/usr/bin/dnd-tools:3238: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if char_class is "Barbarian":
/usr/bin/dnd-tools:3826: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if char_class is "Barbarian":

        What would you like to do?
        1) (C)reate Character / NPC
        2) (R)oll Dice
        3) Roll Initiative (raw)
        4) Encounter Experience Calculator
        5) Get Treasure!
        6) Tarokka Fortune Cards
        7) Wild Magic (Roll Effect)
        0) (Q)uit

What would you like to do? q
% head -n1 `which dnd-tools`
#!/usr/bin/python
savagezen commented 3 years ago

When I created this project it was made for python 3.x which was 3.6 at the time. I don't actively maintain the project (as I'm not as involved in the development community as I used to be), but try to stay involved when I notice things flagged.

gamesbook commented 3 years ago

Surveys seems to show Python 3 has 90% support. Of these about two-thirds are using Python 3.7 or higher (https://www.jetbrains.com/lp/python-developers-survey-2019/). If I was maintaining a small Python project, that is the target demographic I would aim for.