Bernát Gábor
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Python Packaging Summit - PyCon US 2022 This will contain a written summary of the topics discussed at the summit. Present at the summit 3 organizers and 15 attendee. ## Let’s fix extras in Core Metadata 3.0 - Tzu-ping Chung [Link to slides](https://speakerdeck.com/uranusjr/lets-fix-extras-in-core-metadata-3-dot-0) Current metadata version is `2.4`. Main problem is extras, we don't know how to normalize and compare it (part solved by Brett's PEP-685 - extra must be normalized but if a tool doesn't do it we're in trouble). We need to make sense of have extras work in markers. What does `==` means in case of extra? `pip install package[docs,test]` but we evaluate with any. Proposal: introduces extras instead of extra, and the only operator valid is `in` (allow `not` for negation). Other problem is default extra groups. Pradyun showed interest. Problem: what happens when `pip install package[another]` should it pull in the default? What about when the user specifies `pip install package[]`. We can keep version `2.x` and keep compatible if we still allow extra. Alternative is to bump to `3.0` and then cleanup the spec of `Author`. `Maintainer`, `Home`-page; plus any other we can find. Concerns: - Backwards compatibility - new metadata support with old pip? - have pip-requires to fail with requiring newer pip? - Dustin raised that when he looked into it default extra wasn't easily and cleanly possible - Allow libraries to choose what metadata version they want to support? E.g. library maintainer can opt-in into it eventually, but not day 1; similar to how they do it for Python. No support for user to specify the package metadata version though. - Can we add metadata part of the wheel name? It's difficult to filter upfront without it, currently we have to download the wheel to extract the metadata version. ## Standardizing External Data - Steven Silvester [Link to slides](https://drive.google.com/file/d/1LXkNtxvWRATl6rSiCa4PdfYQ6g7vgIRW/view?usp=sharing) Jupyter ecosystem uses data_files, but is deprecated. There's no standard in puting files at given location. Data files can be put anywhere. Flit added support for external data in 3.7. - It affects wheels? Should we put it into the wheels project instead? - Dustin raised concerned people abusing to store more data and can have PyPI impact. ## Building C Extensions without Setuptools - Henry Schreiner III and Ofek Lev [Link to slides](https://docs.google.com/presentation/d/1XDC3A3DqB9O0JIyqefLDN-NIAwD0uLqTgYDM8ASRiog) Shared libraries that contains compiled code. We achieved PEP-517 for pure python packages. Extension builders still are mostly locked in into setuptools (mesonpy and maturin are the two exceptions). API: Init: root + config Required methods: build + get_expected_outputs Idea to write a plugin standard for extensions. Build backend would be expected to go over the extensions arreay and call each builder and manage the returned files (multiple to allow build rust + c build at the same time). Add a default flag to build by default or not. Add requires flag for each extension? Would make it a lot more complex. This way less isolated build environments needed. Question: - Would PyPA support it? Would be nice, but wondering feasibality - What currently happens (high level) to convert options to final subprocess command? - Discussed the API and when the build backend should run the extensions - up to the build backend when during the build runs it (must be during `build_wheel`) ## Python Packaging Vision and Strategy - Ee Durbin [Link to slides](https://drive.google.com/file/d/1hMGHsLfIfF3bMCUL7db2GUPyZjgFAJgy) On behalf of Shamika, PSF Packaging project manager. Motivation, packaging is: - breadth and variety - silos (sections focus on one special problem) - lack of cohesion - lack of direction - where we heading, we generally address needs as comes up. Objectives: How do we become the best packaging environment? - identify factors - determin and catalog how we make it more sustainable - identify funding. Plan posted by Shamika. Lack of authority? How do we ensure it manifests and progresses. The goal of PSF is not to become authority in the packaging domain. Primary goal is to facilitate the communication within the community. Secondarily is to collect all the goals of the community they should be flexible and far. This would allow to make decision with more of a goal, a direction. Once we have the goals we can have a better presentation for potential investors for projects to fund. A big concern at the moment lack of funding for projects for complex topics and projects. ## New Contributors in the Python Packaging Community - Ee Durbin [Link to slides](https://drive.google.com/file/d/1hMGHsLfIfF3bMCUL7db2GUPyZjgFAJgy) [Detailed proposal](https://tinyurl.com/2wccjawr): - High expectations - Latency - Sustainability issue - Diversity One way is to offer Python Packaging Fellowship. Students -> New Contributors -> Long time contributors. Students is for talent pool and interest/benefit in doing OOS. How? Phase 0. Fellowship Wokring Group to decide numbers, logistics and success criteria and obtain funding. Phase 1. 3 months duration, initially contributors aimed to resolve issues within the project, maintainers compenstated financially. Phase 2. 6 to 9 months, work on bigger projects. Fellows are expected to contribute more broader. Mentors can provide 1:1 mentoring and compenstate both fellows and mentors. Discussion: - What makes them stick around later? We don't expect all to stick around but good experience but some of the many contractors on PyPI do stick around. - Who will drive this? PSF, could be Shamika or another group within PSF or antoher contracter. - How does student selection work? No concrete yet, but probably some CV/application. - If you're targeting under graduates are we too low on Python knowledge to perform meaningful work. Graduates are better at this instead? We target everything after seconday school, mostly students after high school. - Cash prizes - as in hacker compentition model can spark people just trying stuff. This might bring more people into the space? EE says they considered this for PyPI, the problem is that the maintainers can be overloaded. There's no global lock of contributors for bounties. - Worry that students can try to chew way more than they can do in 6 months. We can easily scare people in this. - Flask had similar program (major league hacking - company doing interview/scholarship/hiring). It was a variable success for Flask. Some session that closed tons of issues, some where they were 2-3. No long term commitment, most stayed around <9 months. In the first session when they had tons of issues seemed more successful. Later on more complicated problems it felt more like pair programming which wasn't the best use of the maintainers time. - Long term feedback in the Princeton university has been good for similar programs, but students don't necessarily end up working on the same project as the ones they started. EE says they know what a trial of this might look like (funded by PSF, very small size initially - probably 1 project 2/3 intern and 1 fellow). PSF plans to take on board what they learn. - PSF plans to make the program global (not US based). Excluding sanctioned countries PSF can pay people in any other countries. - Should we limit this to graduate? Some people raised concern that many high school people could contribute if they are outstanding in programming. - How will projects and students be selected? What role maintainers have in project and student selection? EE has no idea yet. A logistical thing that needs to be decided later. ## Robyn project - async based python web framework with rust runtime Created by Sanskar Jethi in 2021. Created as an async Flask. [Project url](https://github.com/sansyrox/robyn). Using PyO3 via maturin (initially setuptools-rust). [Documentation](https://sansyrox.github.io/robyn/#/). Architecture presented. Uses rust native threads to avoid issues of the GIL. reddit advertised generally loved. Presented as a use case for binary extensions. Packaging challenges? Had to use maturin. ## Standardizing external dependencies - Fillipe Lains We already have `Requires-External` field but has not semantics attached to it. Proposal to attach semnatic. How? - Create a DB to map dependency format to system provided dependencies. Can be iehter community maintained (Debian/Arch) or vendor maintained (Conda Forge/Anaconda). We should also provide an excape hatch: allow users to specify explicitly what to use. E.g. defined as `libblas.so.3-abi` that translate for debian to `libblas == 3.*` and on arch to `blas == 3.*`. Escape hatch would look like in the `Requires-External` as `debian/libblas = 3.*` or `archlinux/blas == 3.*`. Questions: - In the DB who decides what is the key? Community would decide. We'd have some guidance. - What happens with a lib not in - Installer checks or build backend? Fillipe would like wheels not to vendor it, so it would require user to install it globally and the installer would be the one doing the check. We could allow some way to install the system package without root (conda does support some of this). A user of this might be CUDA. ## [Scikit - HEP](https://scikit-hep.org ) - Henry Schreiner III [Link to slides](https://www.slideshare.net/HenrySchreiner/pycon-2022-scikithep-developer-pages-guidelines-for-modern-packaging) https://scikit-hep.org built to help scikit people how to create a good package. The only thing specific is package requirements. Everything is generic to any python project. More freedom to change things than https://packaging.python.org. Makes some arbitrary decisions (e.g. `src` layout). On style it uses pre-commit configuration recommended. Information on how to setup on Github Actions. Page on how to use nox. And has a repo review tool. Need for negative extras, so could install by default just the package and on the web specify to not install some extras. Uses python in web browser.

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully