klen / peewee_migrate

Simple migration engine for Peewee
MIT License
352 stars 86 forks source link

pw_migrate: command not found #221

Closed Pithikos closed 1 year ago

Pithikos commented 1 year ago

Describe the bug pw_migrate script not available on fresh install (Python 3.9, Ubuntu 20.04.6 LTS)

To Reproduce

$ pip install peewee-migrate
Requirement already satisfied: peewee-migrate in /home/myuser/myproject/.venv/lib/python3.9/site-packages (1.7.0)
Requirement already satisfied: click in /home/myuser/myproject/.venv/lib/python3.9/site-packages (from peewee-migrate) (8.1.3)
Requirement already satisfied: peewee<4,>=3 in /home/myuser/myproject/.venv/lib/python3.9/site-packages (from peewee-migrate) (3.15.4)
$ pw_migrate --help
pw_migrate: command not found
NickKush commented 1 year ago

I have the same problem in version 1.7.0.

1.6.6 works normal.

enpaul commented 1 year ago

This appears to be due to the migration to Poetry/pyproject.toml. Adding the below to pyproject.toml should fix the issue:

[tool.poetry.scripts]
pw_migrate = "peewee_migrate.cli:cli"