@pradyunsg@mastodon.social avatar

pradyunsg

@pradyunsg@mastodon.social

he/him. Probably trying to make refined sand do something useful.

Wearer of many hats in OSS spaces: CPython, pip, packaging, TOML, Furo, Sphinx extensions, Executable Books and more.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

pradyunsg, to random
@pradyunsg@mastodon.social avatar
geofft, to random
@geofft@mastodon.social avatar

OH at : "Benevolent Dictator for ... term limit. BDFTL!"

pradyunsg,
@pradyunsg@mastodon.social avatar

@geofft No L!

leahawasser, to random
@leahawasser@fosstodon.org avatar

Its not to late to attend the maintainers summit. Room 402 carol willing @willingc is kicking things off now!

pradyunsg,
@pradyunsg@mastodon.social avatar

@shauna There's space due to some no-shows.

pradyunsg, to random
@pradyunsg@mastodon.social avatar

It's a bit of a curse that N95 masks are less effective if you cry into it.

bitprophet, (edited ) to random
@bitprophet@social.coop avatar

tip: apparently to register and get your badge, you CANNOT go straight from the Westin skybridge to the CC third floor (security will stop you at the third floor elevator if you're not badged).

Gotta enter from street level and make your way up to the second floor via escalator.

pradyunsg,
@pradyunsg@mastodon.social avatar

@bitprophet You can! It's a long way around to get there though.

pradyunsg,
@pradyunsg@mastodon.social avatar

@bitprophet The one yesterday helpfully guided me to where the registration desk was. I'm guessing it's a different guard today. XD

pradyunsg,
@pradyunsg@mastodon.social avatar

@bitprophet Whooops! Well, welcome to PyCon US! ^.^

treyhunner, to random
@treyhunner@mastodon.social avatar

Planning my veg-ish eating for

Rosewater Middle Eastern looks like it has good veg options and Arepittas looks like it probably does too.

ShadoBeni also looks really good, though it's a bit of a walk from the conference center.

Folks eating vegan/vegetarian this trip: found any other eats that look promising?

(Editing to also add the not-officially-recognized but widely used hashtag as well 🤫)

pradyunsg,
@pradyunsg@mastodon.social avatar

@treyhunner Condado tacos had quite a few options!

treyhunner, to random
@treyhunner@mastodon.social avatar

Who else will be at this week? 🐍✨

pradyunsg,
@pradyunsg@mastodon.social avatar

@treyhunner 🙋🏻

pradyunsg, to random
@pradyunsg@mastodon.social avatar

New blog post!

Help us ensure that the upcoming release of pip does what you need it to.

https://pradyunsg.me/blog/2024/05/13/pip-24-1-betas/

pradyunsg, to random
@pradyunsg@mastodon.social avatar

Hello Pittsburgh!

webology, to random
@webology@mastodon.social avatar

🤔 Over the last few days, I keep seeing lots of Python PEPs thrown around in my feed.

However, I haven't seen as many talking about the potential of "PEP 723 – Inline script metadata" which I keep hearing cool things about.

https://peps.python.org/pep-0723/

🤔 There are very few times that a new Python feature genuinely makes me excited to see, but PEP 723 feels like it has the potential to literally change everything.

pradyunsg,
@pradyunsg@mastodon.social avatar

@astrojuanlu @webology https://dbohdan.com/scripts-with-dependencies is linked from PEP 722 (which ended up being a competing PEP), which lists efforts in various language ecosystems for something like this.

Rust's also got ongoing efforts toward something similar: https://github.com/rust-lang/cargo/issues/12207

pradyunsg,
@pradyunsg@mastodon.social avatar

@webology @alper I don't think we're ever going to end up with python gaining support for this; the standard is more for all of the various tools in this space to have one-way-to-do-things.

pradyunsg, to random
@pradyunsg@mastodon.social avatar

I just cut a release of Furo, and this is one that I'm excited about. It's got the most sparkles in the changelog among all the releases so far!

hynek, to random
@hynek@mastodon.social avatar

TIL: ValueError: Unknown extraction method 'jinja2’ with recent versions of babel = lack of setuptools. Just add it as another dependency.

I’m not gonna admit how long it took me to debug this despite the setuptools removal being in babel’s changelog. 🙈

pradyunsg,
@pradyunsg@mastodon.social avatar

@hynek You know, working with software would be nicer if the text it printed on failures gave more of a hint of what-the-heck-is-going-on.

ogi, to random
@ogi@hachyderm.io avatar

Is there a way I can report what is likely some attempts at grabbing namespaces of packages on pypi that are similar to that of popular packages?

pradyunsg,
@pradyunsg@mastodon.social avatar

@ogi @mariatta Ooh, this is messy. The right email for this is admin@pypi.org.

pradyunsg, to random
@pradyunsg@mastodon.social avatar

Well, I've been looking forward to this.

nedbat, to python
@nedbat@hachyderm.io avatar

Quick packaging tip: if you ever find yourself wanting to type import src.anything or from src import anything, turn back. src should never be part of an import.

pradyunsg,
@pradyunsg@mastodon.social avatar

@nedbat <anything>?

glyph, to random
@glyph@mastodon.social avatar

"Fixed an issue introduced in Hotfix 21 causing reduced performance on Mac." YEEEEAAAAAHHHH

pradyunsg,
@pradyunsg@mastodon.social avatar

@glyph It's good to know someone else who also cares about this!

pradyunsg, to random
@pradyunsg@mastodon.social avatar

New blog post!

Turns out, I use GitHub notifications differently from ~everyone and what I do might be useful to more people than just me.

https://pradyunsg.me/blog/2024/03/17/github-notifications-userstyles/

treyhunner, to python
@treyhunner@mastodon.social avatar

Another packaging question...

Is there any major downside to shipping my module to PyPI as a single .py file (instead of a directory with a init.py)?

I only have a couple hundred lines of code and no ambition to grow this much further. I figure I can always move from my_package.py to my_package/init.py one day if I need to... right?

I'd usually go with the package approach, but I'm thinking of keeping everything in a single .py file this time.

pradyunsg,
@pradyunsg@mastodon.social avatar

@treyhunner For the most part, no. You can make the switch over transparently to API users.

There's https://github.com/python/typing/issues/1333 which others have mentioned as well.

pradyunsg, to random
@pradyunsg@mastodon.social avatar

@hynek I've been meaning to say that it's amusing that you got to a title with all-caps "PACKAGING?" in 3 videos. I swear I thought it would take you longer! 😂

Also, as I'm sure you have heard from many: really nicely done!

pradyunsg,
@pradyunsg@mastodon.social avatar

@hynek I did. Had to double take because I was like "wait, was that me"? 🙈

jacob, to random
@jacob@jacobian.org avatar

I'm with @webology on this one. GitHub has repeatedly refused to donate to the DSF/DjangoCon because "GitHub don't use Django", but they use mention Django in so much marketing material …

This is probably because Copilot does an excellent job generating Django code ... but that's only because Django's documentation culture and open community forums provide high-quality training material.

How about throwing us a couple of bucks to say "thanks for training our AI”?

https://mastodon.social/@webology/112004988738622793

pradyunsg,
@pradyunsg@mastodon.social avatar

@jacob To play devil's advocate, it's not an unconditional 6% which is what someone (eg: past me) would infer from reading that. Personal donations are exempt from even credit card fees and organisations end up with 3% to GitHub if they're using invoices (which also avoids a 3% credit card fee).

https://docs.github.com/en/sponsors/sponsoring-open-source-contributors/about-sponsorships-fees-and-taxes#sponsorship-fees

pradyunsg, to random
@pradyunsg@mastodon.social avatar

I'm seeing a bunch of references to Fediverse spam, but I'm not really seeing any.

Have I done something that makes it less likely that I'd see such spam? (eg: having all my toots be unlisted by default, being on mastodon.social where the admins are doing a really good job, something else?)

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