Code Monkey home page Code Monkey logo

Comments (13)

webknjaz avatar webknjaz commented on June 13, 2024 1

I was just thinking about this: https://github.com/jorisroovers/gitlint/pull/418/files#r1131062741

@jorisroovers TL;DR to have a proper smoke-test, switch to invoking python -m build (without CLI args! it's important). It'll still use hatch's PEP 517 backend. This would build an sdist from Git checkout, followed by building a wheel from said sdist rather than from Git.
Additionally, you can make use of https://github.com/re-actors/checkout-python-sdist to run testing from sdist and not Git. This takes smoke-testing availability for the downstream packaging since they often use sdist as the source of truth.

from gitlint.

jorisroovers avatar jorisroovers commented on June 13, 2024 1

@jorisroovers I recommend releasing after merging #463 so that the fix is validated in the CI, not just locally.

Ack. I'll do it tomorrow morning then (CET), rather than trying to rush it out tonight and inevitably make a mistake.

from gitlint.

harens avatar harens commented on June 13, 2024 1

Already done :)

macports/macports-ports@3243c9c

Homebrew/homebrew-core#125315

from gitlint.

jorisroovers avatar jorisroovers commented on June 13, 2024 1

Awesome, thanks!

I created separate issues for everything else that was suggested here - thanks everyone. Closing this one!

from gitlint.

jorisroovers avatar jorisroovers commented on June 13, 2024

@harens This should be fixed now - I just tried a hatch build -t wheel on the sdist of the latest dev builds and it worked.

Can you confirm? Latest dev builds:
https://pypi.org/project/gitlint/0.19.1.dev2/
https://pypi.org/project/gitlint-core/0.19.1.dev2/

from gitlint.

sigmavirus24 avatar sigmavirus24 commented on June 13, 2024

@webknjaz would you be up for sending a PR to use that?

from gitlint.

webknjaz avatar webknjaz commented on June 13, 2024

Which part? using pypa/build? or testing from sdist? The latter would probably require some agreement and restructuring, while the former is straightforward.

from gitlint.

ofek avatar ofek commented on June 13, 2024

There is also this which I've heard good things about (and of course it's Hynek) https://github.com/hynek/build-and-inspect-python-package

from gitlint.

webknjaz avatar webknjaz commented on June 13, 2024

@ofek yes, I know about that action, but don't use it myself — it's too coupled for my taste.

FWIW I've made the small version of the PR: #463. https://github.com/re-actors/checkout-python-sdist can always be added later.

from gitlint.

harens avatar harens commented on June 13, 2024

@harens This should be fixed now - I just tried a hatch build -t wheel on the sdist of the latest dev builds and it worked.

Can you confirm? Latest dev builds: https://pypi.org/project/gitlint/0.19.1.dev2/ https://pypi.org/project/gitlint-core/0.19.1.dev2/

Seems to work fine, so I'll update the MacPorts portfile in the next stable release. Thanks for fixing @jorisroovers 👍

from gitlint.

jorisroovers avatar jorisroovers commented on June 13, 2024

Seems to work fine, so I'll update the MacPorts portfile in the next stable release. Thanks for fixing @jorisroovers 👍

Great. I'll try to release 0.19.1 with this fix later today so we can get the homebrew package out for 0.19.x and then look at the other suggestions afterwards.

from gitlint.

webknjaz avatar webknjaz commented on June 13, 2024

@jorisroovers I recommend releasing after merging #463 so that the fix is validated in the CI, not just locally.

from gitlint.

jorisroovers avatar jorisroovers commented on June 13, 2024

@harens just published 0.19.1! Can you retry?

Thanks!

from gitlint.

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.