SubtleBlade, to uk
@SubtleBlade@mastodon.scot avatar
webology, to random
@webology@mastodon.social avatar

🐍 TIL build-and-inspect-python-package GitHub Action workflow plus some bonus Nox + Tox: https://micro.webology.dev/2024/05/10/til-buildandinspectpythonpackage-github.html

#Python #Nox #Tox #GitHubActions

henryiii, to python
@henryiii@fosstodon.org avatar

Stick these lines at the top of your noxfile.py:

nox.needs_version = ">=2024.3.2"
nox.options.default_venv_backend = "uv|virtualenv"

And install uv to make install-heavy nox jobs go much faster. You can instead try -db uv or setting NOX_DEFAULT_VENV_BACKEND=uv. #python #nox #uv

angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
angelus_04, to random
@angelus_04@mastodon.gamedev.place avatar
writer13_press0451, to bapcsalescanada

Today's recommendations from GOG winter sale:

Weirdly Doom series is on sale except og Doom. It's still good option for holidays, just 5 euros plus 30 years of mods.

#GOG #sales #recommendations #DRMfree #Doom #SWAT #Nox #SystemShock

kevinbowen, to django
@kevinbowen@fosstodon.org avatar

After a week of self-imposed lockdown & feeling like an utter idiot & imposter the entire time, I think that I've finally managed to build up a #Docker #Django Poetry solution that can run as a non-root user.

After using Poetry for a year+, I really don't like/have a grasp on how it deals with venvs within Docker.

But, the setup works & the #nox tests pass!

#ImposterSyndrome #python #TinyVictories

kevinbowen,
@kevinbowen@fosstodon.org avatar

I managed to get the Poetry installation out from under the root user into /opt/poetry. However, I still can't figure out how to manage to get the venv installation out from under the Poetry installation.

I've tried so many different ways of breaking this to give me more info; but, for the time being, the venv lives under/inside the Poetry install dir.

The more important thing was getting ownership changed to permit running tests under #nox

Bummer.

tagesschau, to twitter German
@tagesschau@ard.social avatar

Die Plattform X will wieder politische Werbung erlauben

Die Social-Media-Plattform X - ehemals Twitter - kippt das Verbot politischer Werbung. Besitzer Musk begründete den Schritt mit der Redefreiheit, gleichzeitig versprach er ein Vorgehen gegen Fake-News.

➡️ https://www.tagesschau.de/ausland/amerika/x-twitter-musk-100.html?at_medium=mastodon&at_campaign=tagesschau.de

#X #ElonMusk #Twitter

Claudina,

@tagesschau #Xitter #noX #Twitter sperrt Accounts, die vermehrt Hasskommentare melden, anstatt die Hasskommentare zu löschen. Darüber hinaus ist es durch die Abschaffung der Blockieren-Funktion nicht mehr möglich Hassverbreiter:innen zu blockieren. #Musk entscheidet wer oder was in der Timeline angezeigt wird. #X Nein Danke!

mhoye, to random
@mhoye@mastodon.social avatar

The most common thing I want to say to GitHub projects is "Please use Make".

It's old as dirt and the syntax isn't great, but even in its simplest use being able to reduce a wall of shell copypasta to "make whatever" is such a breath of fresh air.

Get yourself to where "install", "install-devenv", "build" and "run all my tests" are all dead easy, zero chaff, no typos simple. And if you find yourself re-using some long command chain, add it to the makefile and you're done. It is so good.

jugmac00,
@jugmac00@fosstodon.org avatar

@mhoye please do not use make for #python projects

For more than a decade there are tools like #tox and #nox.

mgorny, to programming

I'm starting #git bisect over for the fourth time because again I forgot that I'm required to run:

pypy3 /usr/bin/nox ...

because this beep of beep doesn't accept PyPy3 as a target (like #tox trivially does) and I've accidentally started testing with CPython at some random point instead.

#nox is no obnoxious.

#Gentoo #Python

mgorny, to programming

If you don't supply a tox.ini, then in order to verify a test failure on your #Python package, I need to create a venv, figure out how to install dependencies, figure out how to run the test suite. Now multiply this by dozens of packages, then by dozens of different people needing to do the same thing, and you can imagine how much harm this does.

So please support #tox.

And no, #nox is not a solution as it requires a lot of effort from user to make it work.

#Gentoo

CelloMomOnCars, to cars
@CelloMomOnCars@mastodon.social avatar

"European Union countries and lawmakers will negotiate "Euro 7" proposals this year on tighter limits for car - for , but not petrol - and for heavy-duty and buses, including nitrogen oxide and monoxide.

The rules would also cover tyre and brake emissions."

This will mean less air pollution and less pollution. Car makers balk, but this is still better for them than a big push for public transit.


https://www.reuters.com/business/autos-transportation/euro-7-emissions-proposals-sequel-europes-carmakers-dont-want-see-2023-03-28/

CelloMomOnCars,
@CelloMomOnCars@mastodon.social avatar

"Lawmakers on Thursday voted to keep the commission's proposal for limits on #pollution from cars, including nitrous oxides (NOx), #ParticulateMatter and carbon monoxide. That proposal, released in November 2022, essentially retains the limits from Euro 6, but also includes for the first time limits on particulate emissions from #brakes and #tires.

But they weakened #NOx limits for trucks, and delayed when the rules will apply."

#EURO7
https://europe.autonews.com/environmentemissions/european-parliament-backs-weaker-euro-7-emissions-rules

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines