pythonpipdistribute

Pip: Specifying minor version


In my requirements.txt file I want to specify that my app needs Django version 1.3.x. That is, either 1.3.0, or 1.3.1, or 1.3.2, etc. (When these come out.) But not 1.4, when it comes out.

What's the syntax for this?


Solution

  • According to Ian Bicking:

    Django>=1.3,<1.4
    

    However, it's apparently safer to do:

    Django>=1.3,<1.3.99