Git Product home page Git Product logo

Comments (7)

rvanlaar avatar rvanlaar commented on July 19, 2024

Thank you for taking you time to report this.
Could you please explain why it should display that information?

I've taken some time to look into the way versioning works.
Buildout uses pkg_resources Requirement and works in the same way as
easy_install and pip for versioning.
The version can contain the following: <=, >=, ==, !=, < and >.
django>1.3, django<1.4, django!=1.3 are all valid ways to specify the version.
Unfortunately it's not possible to specify a version range.
So, there is no way to specify the current 1.3.X release branch, except for specifying <1.4.

However the version is mostly used to pin the version. It's up to the developer to test
a new version and use the version pin to upgrade.

from djangorecipe.

wernight avatar wernight commented on July 19, 2024

How would you say that then? Is the following valid?

[version]
django = >=1.3,<1.3.99

This is valid when specifying eggs versions.

from djangorecipe.

rvanlaar avatar rvanlaar commented on July 19, 2024

Did you try it to see if it was valid?

from djangorecipe.

wernight avatar wernight commented on July 19, 2024

it writes django==1.3,<1.3.99 but seem to get indeed the correct version.

from djangorecipe.

rvanlaar avatar rvanlaar commented on July 19, 2024

I don't know how you used that because I get the following error:
ValueError: ('Expected version spec in', 'django[] === 1.3,<1.3.99', 'at', ' === 1.3,<1.3.99').
As I've said before the only valid version specification is: name, CHAR, version number:
where CHAR is one of <=, >=, ==, !=, < and >.

from djangorecipe.

wernight avatar wernight commented on July 19, 2024

But that format works for the requirements.txt and the Eggs specification in buildout. Only Django which is in that special [version] section doesn't support it.

from djangorecipe.

wernight avatar wernight commented on July 19, 2024

Example of a working config:

[buildout]
parts = django
eggs =
    PIL>=1.1.6,<1.1.99
    South>=0.7
    django-mptt-2>=0.3,<0.3.99
    docutils>=0.6
    textile>=2.1,<2.1.99
versions = versions

[versions]
django = 1.3.1

[django]
recipe = djangorecipe
settings = settings_development
eggs = ${buildout:eggs}
project = xxxxx
wsgi = true

from djangorecipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.