Show more

With the right implementation in setuptools, 90% of packages will start cutting releases with reliable dependency metadata without any action needed by their maintainers.

You can ensure that your package will have properly annotated reliable metadata by either:

Specifying install_requires in setup.cfg or by using literals in your setup.py. If you have conditional dependencies, use environment markers:

python.org/dev/peps/pep-0508/#

Show thread

For some background on one problem this solves, see @di_codes@twitter.com ‘s 2018 article “Why PyPI Doesn’t Know Your Project’s Dependencies”: dustingram.com/articles/2018/0

PEP 643 can’t 100% fix this, but it makes it possible for a project to indicate that it doesn’t have this failure mode.

Show thread

I am happy to announce that I have accepted PEP 643: Metadata for Package Source Distributions, which has the potential to dramatically simplify Python package metadata resolution in the future. python.org/dev/peps/pep-0643/

Soon you may be able to build reliable dependency graphs!

Finding old summaries of the history of X, then following any archive links (or just believing the summary) helps somewhat.

Show thread

Any time I do historical research I feel like a pre-search engine internet user. I’d love to be able to search “the internet as of 2005” or something of that nature, but I think many pages from that era that still exist aren’t even indexed anymore!

boost from birdsite, Python, packaging 

#Python

boosting @`ThePyPA

pyfound.blogspot.com/2020/11/pip-20-3-new-resolver.html pip 20.3 is out. See pip.pypa.io/en/latest/user_gui for what's new (including the dependency resolver) and how to migrate. Thanks @`ChanZuckerberg and @`mozilla for funding!

Show thread

PyPI went online in late 2002, but easy_install wasn’t released until 2004.

Does anyone know how people installed stuff from PyPI before then? Did you download an sdist and unzip it manually?

I don’t even see a download link on this wayback snapshot: web.archive.org/web/2003110122

Lately, I’ve been increasingly using Super + ↑↓→← to move my windows on a grid, but I’ve been frustrated by the lack of keyboard shortcuts to move them between monitors. Turns out you just need to do Shift + Super + ← / →:

askubuntu.com/a/36929/176339

Pro tip: If you’re ever in a book club, but you haven’t read the book, just say, “I thought the allegory for the Catholic Church was a bit ham-handed.”

You’ll know you’ve made it when you overhear this in a café:

“People were able to Photoshop teeth onto stuff in the past, this is nothing new! Heck, image editing has been around almost as long as images!”

“It’s a matter of scale! Kids today can see anything with human teeth!”

Show thread

Startup idea: build an ML model that adds human teeth to any picture.

After launching your MVP, target enterprise customers with a model that adds human teeth to 3D models. Maybe some defense contracting adding teeth to predator drones.

Saw two crows attacking a hawk (I think red-tailed hawk) right above my house the other day. Harassing it and chasing it away.

Couldn’t get great pictures because the action was happening so fast, but it was pretty cool to see.

Northern Flicker at my feeder the other day.

These are beautiful birds — and they are even more colorful in flight, because they have yellow-shafted feathers and a yellow underside.

I’ve only seen them at my feeder twice, and they got scared off pretty quickly when they saw me both times.

Apparently this guy is watching his cholesterol — doesn’t want to eat any of these hard-boiled egg yolks…

Made katsu curry for the first time last night. Not so bad, but it made me want to go visit Japan again, which I fear won’t be possible for a few years. 🙁

(Amazingly, I took photos of every stage except the finished product. 🤦)

Path normalizers, remember: You cannot collapse a/b/../ to a/; a/b may be a symbolic link.

In about three hours I'll present a few Python tips, and chat about my strange career, to a PyLadies meetup meetup.com/PyLadies-SWFL/event and you can swing by if you like

Apparently CVS Minute Clinics will do it, but not in CT or some other states. We may just go get it done in Massachusetts to minimize the fuss, as annoying as that is.

Would be nice to know why Minute Clinics have this rule in CT, so that I can (I assume) call the relevant legislator.

Show thread
Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.