Skip to content

Commit 8d281ea

Browse files
authored
Fix packaging not including styles in non-SCM environments (#152)
Affected users are, at least: - AUR - Other CI building bdist from sdist
1 parent 5521f3b commit 8d281ea

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

‎CHANGES.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v2.2.1 (xx-yyy-2026)
2+
====================
3+
Maintenance
4+
-----------
5+
- Mitigate packaging issue where styles are not included in local bdist when `.git` folder is not present.
6+
Affected users exclusively are those building the wheel by themselves from a version repo source file, e.g., via AUR.
7+
See issue 151: https://github.com/garrettj403/SciencePlots/issues/151
8+
19
v2.2.0 (20-Nov-2025)
210
====================
311
New features

‎MANIFEST.in‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1+
# https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html#controlling-files-in-the-distribution (accessed on 2026-02-20)
2+
# By default 'setuptools_scm' includes all git-tracked files (all .py files are included by default by 'setuptools')
3+
# In sdist downloads, .git is non existent. Ref: https://github.com/garrettj403/SciencePlots/issues/151
4+
# Required data files are exhaustively listed here:
5+
recursive-include src/scienceplots/styles *.mplstyle
6+
include CHANGES.md
7+
include LICENSE
8+
include MANIFEST.in
9+
include pyproject.toml
10+
include README.md
11+
12+
# Clean unnecessary files in source distribution:
113
prune .github
214
prune .git
315
prune examples
4-
5-
exclude .gitignore
6-
exclude CHANGES.md

0 commit comments

Comments
 (0)