Git Product home page Git Product logo

Comments (8)

jjlee avatar jjlee commented on July 17, 2024

What does the "-1" in python-mechanize-0.2.4-1.fc14.src.rpm mean? Does that mean that patches have been applied?

Can you try running the tests with the --log-server option? :

python test.py --log-server

from mechanize.

cheese avatar cheese commented on July 17, 2024

No patches.

New build log with --log-server:
http://koji.fedoraproject.org/koji/getfile?taskID=2699669&name=build.log

from mechanize.

jjlee avatar jjlee commented on July 17, 2024

Thanks. Does changing this line in MANIFEST.in:

recursive-include test-tools *.py

to this:

recursive-include test-tools *.py *.cgi

fix it for you? I'm slightly puzzled why this wasn't picked up at mechanize release time since the release script runs easy_install and then runs the tests on that installed copy of mechanize using a clean sys.path environment...

from mechanize.

cheese avatar cheese commented on July 17, 2024

It seems not work.

from mechanize.

jjlee avatar jjlee commented on July 17, 2024

So did you check why the .cgi still isn't there?

from mechanize.

cheese avatar cheese commented on July 17, 2024

I include the .cgi file from the git repo to the source tree, then all tests go through now.

from mechanize.

jjlee avatar jjlee commented on July 17, 2024

Include cookietest.cgi in source distribution

Add a test run to release script to catch mistakes in MANIFEST.in re test files.

Closed by 9b19a6f

from mechanize.

jjlee avatar jjlee commented on July 17, 2024

Oh, I see: my release tests test against mechanize installed using easy_install. I don't install the tests, and I can't just add them to sys.path without adding the "uninstalled" mechanize module to sys.path a second time (there should be an extra directory level there to allow that). So the script copies the test dependencies to a new directory -- but it copies them from the tagged build source, not from the code that was just installed.

I added a new test run to cover that, which just unpacks the tarball and runs test.py. Oddly, though the new test run fails with mechanize-0.2.4.tar.gz, if I make a new tarball with the old MANIFEST.in it passes, because the .cgi is there, despite not being listed in the MANIFEST.in! I'm just putting that down to distutils weirdness, and I've added *.cgi to the MANIFEST.in anyway, for luck ;-)

from mechanize.

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.