We're sunsetting PodQuest on 2025-07-28. Thank you for your support!
Export Podcast Subscriptions
cover of episode #406 What's on Django TV tonight?

#406 What's on Django TV tonight?

2024/10/21
logo of podcast Python Bytes

Python Bytes

AI Deep Dive AI Chapters Transcript
People
B
Brian
Python 开发者和播客主持人,专注于测试和软件开发教育。
M
Michael
帮助医生和高收入专业人士管理财务的金融教育者和播客主持人。
Topics
Brian 详细介绍了开源承诺 (Open Source Pledge) 计划,该计划鼓励公司为开源项目的维护者付费,以确保开源项目的长期可持续性。他认为,公司应该为从开源项目中获得的价值做出相应的贡献。他以 Django 社区支持开源承诺计划为例,并列举了一些已经加入该计划的公司,如 Sentry 和 Laravel 等。他还提到了 Armin Ronacher 关于开源与金钱关系的文章,认为将金钱与开源结合是不可避免的趋势。 Michael 对 Brian 的观点表示赞同,并补充了一些信息,例如,他关注到 Python Bytes 的听众中有 14% 来自德国,并介绍了德国云服务提供商 Hetzner 近期进入美国市场,其价格具有竞争力,这与开源项目的可持续性发展有一定的关联。

Deep Dive

Chapters
This chapter discusses the Open Source Pledge, an initiative encouraging companies to financially support open-source maintainers. It highlights the minimum contribution, self-reporting process, and prominent organizations participating in the pledge.
  • Companies pledge to pay open-source maintainers a minimum of $2,000 per year per developer.
  • Annual self-reporting is required, often through a blog post.
  • Several notable companies like Sentry and Laravel are already involved.

Shownotes Transcript

Topics covered in this episode:

- [**Open Source Pledge**](https://opensourcepledge.com?featured_on=pythonbytes))

Watch on YouTube)

About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout)

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live) to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list), we'll never share it.

Brian #1: Open Source Pledge)

  • Learned about this because of this post

  • Why Django supports the Open Source Pledge)

  • Steps

  • Pay Open Source maintainers.

  • Min to participate is 2k/year/dev at your company

  • Self-report annually

  • Publish a blog post outlining your payments

  • Armin’s post) about launching Open Source Pledge and mixing money with open source

Michael #2: Jeff Triplet's DjangoTV)

  • A nice aggregation of lots of Django conference talks

  • Filter by conference

  • Good search as well

Brian #3: PEP 735 – Dependency Groups in pyproject.toml)

  • Author: Stephen Rosen, Sponsor: Brett Cannon, PEP-Delegate: Paul Moore

  • Accepted. Resolotion Oct 10, 2024

  • “This PEP specifies a mechanism for storing package requirements in pyproject.toml files such that they are not included in any built distribution of the project.”

  • Allow us to define named groups of dependencies that can be independent of the main project.

ex:

`[dependency-groups]
test = ["pytest", "coverage"]
docs = ["sphinx", "sphinx-rtd-theme"]
typing = ["mypy", "types-requests"]
typing-test = [{include-group = "typing"}, {include-group = "test"}, "useful-types"]
`

- “might” work like this: pip install --dependency-groups=test,typing

  • but tool venders are able to define how they use groups. Of course.

  • Similar solutions

  • multiple requirements.txt files: requirements_test.txt, requirements_docs.txt, etc.

  • no standard naming convention, not standardized

  • package extras:

  • not gauranteed to be statically defined (TIL)

  • additional to main dependencies, so not independent

Michael #4: livereload)

Extras

Brian:

Michael:

Joke:

  • A programmer’s partner asks them: “Would you go get a loaf of bread from the store? And if they have eggs, get a dozen.”

  • A while later, the programmer returns with 12 loaves of bread and says “They had eggs.”

  • From https://savvyprogrammer.io/software-jokes/