Coder Social home page Coder Social logo

Comments (3)

jayvdb avatar jayvdb commented on June 12, 2024 1

Regarding why, I am a maintainer of the django package collection on openSUSE, and I frequently use codemod to fixup packages which havent done a release of the compatibility needed for the latest release of Django.

e.g. https://build.opensuse.org/package/show/devel:languages:python:django/python-django-user-agents
https://build.opensuse.org/package/view_file/devel:languages:python:django/python-django-user-agents/python-django-user-agents.spec?expand=1 is where you can see the tool being used. Packages get deleted on openSUSE if they fail to build for six weeks, so the clock is ticking. As soon as another Django release occurs, approx 20 django packages break. Your tool means I don't need to disable newly failing tests, or apply lots of patches against the most recent released version of a package, etc. Much appreciated.

https://pypi.org/project/django-codemod/#files shows that there are wheels and sdists being uploaded. The wheels do not include tests, and are intended for normal pip usage. The wheels are downloaded by default by pip, and include only what is necessary to run the code. The sdist (source distribution) is where the tests reside, and are only fetched explicitly via pip arguments, or by URL directly as my package maintenance scripts do.

from django-codemod.

browniebroke avatar browniebroke commented on June 12, 2024

Tests are not included intentionally. I don't see much point in them as the end users don't really need them to run the code, it's just adding some extra bytes to download from PyPI, using extra bandwidth and storage.

Pardon my ignorance, but I don't understand why this needs to be packaged on openSUSE, don't people have pip/pipx installed/installable there?

from django-codemod.

browniebroke avatar browniebroke commented on June 12, 2024

This took longer because the build was broken due to an unrelated issue: it looks like something wonky was going on in the cache and it's not speeding the build very much so I removed it #658.

Thanks for the contribution, not a big fan of shipping tests to PyPI, but as you explained, it shouldn't be too bad since it's only in the source distribution, so I'm good with this 👍🏻

from django-codemod.

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.