Giter VIP home page Giter VIP logo

Comments (7)

mauritsvanrees avatar mauritsvanrees commented on June 23, 2024

One workaround would be to keep your eggs outside your buildout directory, probably best by setting eggs-directory=/some/other/dir within a ~/.buildout/default.cfg file. Another would be to move docs/HISTORY.txt to the top level directory. Yesterday I moved several packages from the Plone subversion collective to github. Any docs/HISTORY.txt files I renamed to CHANGES.rst in the top level directory.

Now some possible solutions.

I think svn info always contacts the central server, so it would take far too long to do this for every file. Doing an svn ls once, and only checking those files could work. For git git ls-tree -r HEAD --name-only seems to be the way to go. For mercurial: hg manifest. For bazaar: bzr ls --recursive This sounds like a clean solution.

Another option would be to add a few blacklisted directories, at least eggs and parts. We probably want to do an extra check for those: if there is an __init__.py file inside, then it may be a legitimate directory to look inside. Someone may be working on a package x.eggs or y.parts.

A third option would be to remove our special handling of the docs directory. We check this directory last, because some packages may only have a docs/HISTORY.txt that was autogenerated and the real history file is in package/name/HISTORY.txt. But that can be considered an error by the owner of the package: if the file is not used, it should be removed. So we could decide to treat the docs directory normally, which would help in your case.

@reinout: got a preference?

from zest.releaser.

reinout avatar reinout commented on June 23, 2024

I like the third option. Add a note "you should cleanup and probably move to CHANGES.rst anyway".

Those old autogenerated docs/HISTORY.txt files ought to be pretty rare nowadays :-)

from zest.releaser.

mauritsvanrees avatar mauritsvanrees commented on June 23, 2024

Well, I think some paster/ZopeSkel templates create that file by default. Printing such a warning note when we find this file, may be too much. The only time this is a problem, is when the real HISTORY.txt is somewhere in a deeper directory. If there is a CHANGES.rst/txt or HISTORY.txt in the top level directory, this is found first anyway.

from zest.releaser.

leorochael avatar leorochael commented on June 23, 2024

Hi

On Thu, Sep 13, 2012 at 7:36 AM, Maurits van Rees
[email protected]:

I think svn info always contacts the central server, so it would take far
too long to do this for every file.

"svn diff" with a local file and no revision spec, on the other hand, never
contacts the central server, and returns a non-zero exit-code for non-repo
files. We just need to take care to correctly redirect the output so as not
to print it or hang on lack of buffer space.

IMHO, removing the "docs" special ordering, or adding" eggs", etc.. special
cases would only delay the next issue report where an unexpected directory
layout would trip the changelog detection.

from zest.releaser.

mauritsvanrees avatar mauritsvanrees commented on June 23, 2024

I went for the first option anyway, so svn ls, git ls-tree, etcetera. See c0aec5b

And I print a warning when more than one changes/history/version file was found: 3c7f2fa

Any comments?

from zest.releaser.

leorochael avatar leorochael commented on June 23, 2024

On Tue, Sep 25, 2012 at 12:36 PM, Maurits van Rees <[email protected]

wrote:

I went for the first option anyway, so svn ls, git ls-tree, etcetera. See
c0aec5bhttps://github.com/zestsoftware/zest.releaser/commit/c0aec5b9be972759ecbd402f023609ccc9e2fb22

And I print a warning when more than one changes/history/version file was
found: 3c7f2fahttps://github.com/zestsoftware/zest.releaser/commit/3c7f2fac07b6c80cca1b4678629e3784d8ca26cf

Any comments?

Looks fine by me!

from zest.releaser.

mauritsvanrees avatar mauritsvanrees commented on June 23, 2024

Version 3.39 released.

from zest.releaser.

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.