fastmonkeys / stellar

Fast database snapshot and restore tool for development
MIT License
3.86k stars 119 forks source link

setup.py's `install_requires` is overly strict #45

Open crccheck opened 9 years ago

crccheck commented 9 years ago

it's currently:

 install_requires = [
'PyYAML==3.11',
'SQLAlchemy==0.9.6',
'humanize==0.5',
'pytest==2.5.2',
'schema==0.3.1',
'click==3.1',
'SQLAlchemy-Utils==0.26.11',
'psutil==2.1.1',
]

The problems I see are:

  1. pinned to specific versions. This is a major barrier to actively using this because installing stellar would change my installed versions, when my already installed versions maybe would have worked. Possible solutions: use a range of versions, or use no versions and let developers figure it out
  2. installing things that aren't even used. For example, pytest isn't required to use stellar.
Teemu commented 9 years ago

pinned to specific versions. This is a major barrier to actively using this because installing stellar would > change my installed versions, when my already installed versions maybe would have worked. Possible > solutions: use a range of versions, or use no versions and let developers figure it out

Try installing stellar on it's own isolated virtualenv so it doesn't affect your projects. Unfortunately pip doesn't exactly make this easy so I can see this is a practical problem.

installing things that aren't even used. For example, pytest isn't required to use stellar. Good point.