Coder Social home page Coder Social logo

Comments (3)

facelessuser avatar facelessuser commented on June 30, 2024

Hmm, I didn't realize it worked that way...

Looks like it may be better just to explicitly tell it the packages:

packages=['soupsieve']

I'll look into this. I didn't realize this is what we were doing.

from soupsieve.

facelessuser avatar facelessuser commented on June 30, 2024

This project is simple enough that explicitly defining the package is more than sufficient. We have a fix via PR #113 .

Thanks for pointing this out....now I have to update some of my other projects ☚ī¸ .

from soupsieve.

facelessuser avatar facelessuser commented on June 30, 2024

It seems that that what find_packages does is find the files or modules. In our case, the sub modules are treated separately. tests only excludes the top level package and its files, but does not exclude sub modules. A pattern of like so will actually exclude all tests and tools that we currently have:

>>> import setuptools
>>> setuptools.find_packages(exclude=['test*', 'tools'])
['soupsieve']
>>>

It's a bit counter intuitive as normally I would expect if the top level module was excluded, all sub modules would also be excluded, but this is not the case.

from soupsieve.

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.