Skip to content

Commit

Permalink
Most of MANIFEST.in is obsolete, get rid of it (#2646)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Jan 2, 2023
1 parent ad6461b commit 5ff2a1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
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

0 comments on commit 5ff2a1e

Please sign in to comment.