Skip to content

Commit

Permalink
remove tests folder in package distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
zhan9san committed Dec 26, 2024
1 parent 8a53447 commit 99d2626
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ environment.yml export-ignore
setup.py export-ignore


# GH 39321
# csv_dir_path fixture checks the existence of the directory
# exclude the whole directory to avoid running related tests in sdist
pandas/tests/io/parser/data export-ignore
# Exclude tests folder to decrease the package size
pandas/tests export-ignore

# Include cibw script in sdist since it's needed for building wheels
scripts/cibw_before_build.sh -export-ignore
Expand Down
7 changes: 2 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ prune doc/build
graft LICENSES

graft pandas
# Exclude tests folder to decrease the package size
prune pandas/tests

global-exclude *.bz2
global-exclude *.csv
Expand Down Expand Up @@ -54,11 +56,6 @@ global-exclude *.h
global-exclude *.py[ocd]
global-exclude *.pxi

# GH 39321
# csv_dir_path fixture checks the existence of the directory
# exclude the whole directory to avoid running related tests in sdist
prune pandas/tests/io/parser/data

# Selectively re-add *.cxx files that were excluded above
graft pandas/_libs/src
graft pandas/_libs/include
Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v3.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ Other Removals
- Removed the attribute ``dtypes`` from :class:`.DataFrameGroupBy` (:issue:`51997`)
- Enforced deprecation of ``argmin``, ``argmax``, ``idxmin``, and ``idxmax`` returning a result when ``skipna=False`` and an NA value is encountered or all values are NA values; these operations will now raise in such cases (:issue:`33941`, :issue:`51276`)
- Removed specifying ``include_groups=True`` in :class:`.DataFrameGroupBy.apply` and :class:`.Resampler.apply` (:issue:`7155`)
- Removed ``pandas/tests`` folder in package distribution to decrease the package size (:issue:`60606`)

.. ---------------------------------------------------------------------------
.. _whatsnew_300.performance:
Expand Down

0 comments on commit 99d2626

Please sign in to comment.