Skip to content

Fix sdist and wheel - #4079

Merged
larsoner merged 4 commits into
codespell-project:mainfrom
DimitriPapadopoulos:fix_dists
Nov 30, 2026
Merged

larsoner merged 4 commits into
codespell-project:mainfrom
DimitriPapadopoulos:fix_dists

Conversation

@DimitriPapadopoulos

Copy link
Copy Markdown
Collaborator

This is a follow-up of #4075.

Fixes #4075 (comment) and #4075 (comment).

@DimitriPapadopoulos
DimitriPapadopoulos force-pushed the fix_dists branch 9 times, most recently from f1c4408 to 2539c81 Compare November 28, 2026 20:03
Make sure tests are not part of the wheel. This requires moving
`tests` outside the source directory `codespell_lib`, flit is
strict about this and does not seem to provide an option to skip
files within the source directory..

Besides, that's the standard for small Python projects.
I chose to run none of them since pre-commit is run by CI anyway.
This way, a consistent version of MyPy shall be used.
Make sure files useful for development and testing are part of the
sdist.

Also, get rid of the now obsolete `MANIFEST.in` file.
@DimitriPapadopoulos

DimitriPapadopoulos commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

@larsoner I have cleaned up sdist and wheel contents:

  • I have removed tests from the wheel, the list of files is now identical to codespell-2.4.3-py3-none-any.whl from PyPI.
  • I have made sure all the files in codespell-2.4.3.tar.gz from PyPI are part of the current sdist, except MANIFEST.in which is obsolete and has been deleted:
    • tools/gen_OX.sh
    • .pre-commit-config.yaml
    • .pre-commit-hooks.yaml
    • Makefile
    • tox.ini

Should I add these files (the instructions for agents are new)?

  • AGENTS.md
  • CLAUDE.md
  • codecov.yml
  • .coveragerc

WARNING "/home/runner/work/codespell/codespell" is shallow and may cause errors
@larsoner

Copy link
Copy Markdown
Member

I don't think it matters much if we distribute those with the sdist, I think this is good enough. Thanks @DimitriPapadopoulos !

@larsoner
larsoner merged commit feb3020 into codespell-project:main Nov 30, 2026
18 checks passed
larsoner added a commit to qianeric-backup/codespell that referenced this pull request Nov 30, 2026
…file-arguments

* upstream/main:
  Fix sdist and wheel (codespell-project#4079)
  setuptools → flit (codespell-project#4075)
  Update conflicting lint rules (codespell-project#4074)
  Stop correcting the valid word requeried
  dictionary: offer re-queried as well as required for requeried
  Offer the requested alternatives for marcos
  Add marcos -> macros to the names dictionary
  [pre-commit.ci] pre-commit autoupdate
  Remove Python minor version classifiers
  Run tests on Python 3.15
  Update project.classifiers to include Python 3.14 and Python 3.15
  Add brodacast->broadcast to the dictionary
  Add leaded->loaded
@DimitriPapadopoulos
DimitriPapadopoulos deleted the fix_dists branch November 30, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants