GoThread
appearance log in
home all local communities
c/python@programming.dev

Python

log in to join
follow from another instance

Not on this instance? Enter your own instance's domain to go straight to following c/python@programming.dev there.

hashtags

#python
0
c/python@programming.dev · dan_p_the_dev@lemmy.world · 21 Sep 2026 15:22

New to Python packaging? Avoid hatch

#python
Dan Passaro New to Python packaging? Avoid hatch I recently built a Python library for the first time in a while, and to make it available in PyPI I followed the official Python packaging guide. But it turns out there’s some rough edges in the suggested tools. Namely, the build backend hatch puts all the files in the project directory into the built sdist, except from some files it chooses to exclude, which led to a gitignored file as well as VCS metadata getting packaged and uploaded to PyPI. This really surprised me, and I think most Python users new to packaging would be better served by choosing a conservative build backend like uv_build, which puts only the Python source modules and some specific project-level files into the sdist. danpassaro.dev

check post at origin

0 comments

0 comments

log in to comment.

about

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events
Past

November 2023 - PyCon Ireland 2023, 11-12th - PyData Tel Aviv 2023 14th October 2023 - PyConES Canarias 2023, 6-8th - DjangoCon US 2023, 16-20th (!django 💬) July 2023 - PyDelhi Meetup, 2nd - PyCon Israel, 4-5th - DFW Pythoneers, 6th - Django Girls Abraka, 6-7th - SciPy 2023 10-16th, Austin - IndyPy, 11th - Leipzig Python User Group, 11th - Austin Python, 12th - EuroPython 2023, 17-23rd - Austin Python: Evening of Coding, 18th - PyHEP.dev 2023 - “Python in HEP” Developer’s Workshop, 25th August 2023 - PyLadies Dublin, 15th - EuroSciPy 2023, 14-18th September 2023 - PyData Amsterdam, 14-16th - PyCon UK, 22nd - 25th

🐍 Python project:
  • Python
  • Documentation
  • News & Blog
  • Python Planet blog aggregator
💓 Python Community:
  • #python IRC for general questions
  • #python-dev IRC for CPython developers
  • PySlackers Slack channel
  • Python Discord server
  • Python Weekly newsletters
  • Mailing lists
  • Forum
✨ Python Ecosystem:
  • pyvideo
  • Awesome Python
  • PyCon US 2023 and videos!
🌌 Fediverse
Communities
  • #python on Mastodon
  • c/django on programming.dev
  • c/pythorhead on lemmy.dbzer0.com
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds
  • Active c/Python posts
  • New c/Python posts
members
8125
posts
50
created
12 Jun 2023
active / week
2
active / month
5

moderators

  • @jnovinger@programming.dev
  • @erlingur@programming.dev
  • @norambna@programming.dev

rss · modlog

GoThread · self-hosted threadiverse · instances · modlog · rss · appearance · AGPL-3.0