Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most of MANIFEST.in is obsolete, get rid of it #2646

Merged
merged 2 commits into from
Jan 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
include codespell_lib/__init__.py
recursive-include codespell_lib *.py
include codespell_lib/data/dictionary*.txt
include codespell_lib/data/linux-kernel.exclude
include COPYING
exclude *.yml *.yaml
exclude .coveragerc
exclude .git-blame-ignore-revs
exclude example example/* snap snap/* tools tools/*
exclude example example/* snap snap/*
exclude Makefile
exclude codespell.1.include
exclude pyproject-codespell.precommit-toml
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ SORT_ARGS := -f -b

DICTIONARIES := codespell_lib/data/dictionary*.txt

PHONY := all check check-dictionaries sort-dictionaries trim-dictionaries check-dictionary sort-dictionary trim-dictionary check-manifest check-dist flake8 pytest pypi clean
PHONY := all check check-dictionaries sort-dictionaries trim-dictionaries check-dictionary sort-dictionary trim-dictionary check-dist flake8 pytest pypi clean

all: check-dictionaries codespell.1

check: check-dictionaries check-manifest check-dist flake8 pytest
check: check-dictionaries check-dist flake8 pytest

check-dictionary: check-dictionaries
sort-dictionary: sort-dictionaries
Expand Down Expand Up @@ -44,9 +44,6 @@ trim-dictionaries:
sed -E -i.bak -e 's/^[[:space:]]+//; s/[[:space:]]+$$//; /^$$/d' $$dictionary && rm $$dictionary.bak; \
done

check-manifest:
check-manifest --no-build-isolation

check-dist:
$(eval TMP := $(shell mktemp -d))
python -m build -o $(TMP)
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dynamic = ["version"]

[project.optional-dependencies]
dev = [
"check-manifest",
"build",
"flake8",
"flake8-pyproject",
"pytest",
Expand Down Expand Up @@ -91,9 +91,6 @@ expand-star-imports = true
skip = "B101,B404,B603"
recursive = true

[tool.check-manifest]
ignore = ["codespell_lib/_version.py"]

# TODO: reintegrate codespell configuration after updating test cases
#[tool.codespell]
#builtin = ["clear","rare","informal","usage","code","names"]
Expand Down