File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ __pycache__/
33/dist
44/build
55/.vscode
6- /* .pdb
6+ /* .pdb
7+ /LICENSE_zstd
Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## Unreleased
6+
7+ - Include the ` zstd ` library license in package distributions
8+
59## 0.17.0 (May 10, 2025)
610
711- Upgrade zstd source code from v1.5.6 to [ v1.5.7] ( https://github.com/facebook/zstd/releases/tag/v1.5.7 )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ include CHANGELOG.md
33include LICENSE
44include README.md
55
6+ include zstd/LICENSE
67recursive-include zstd/lib *
78recursive-include src *
89recursive-include tests *
Original file line number Diff line number Diff line change @@ -22,6 +22,20 @@ def read_stuff():
2222 m = re .search (r'''__version__\s*=\s*(['"])(.*?)\1''' , file_content )
2323 module_version = m .group (2 )
2424
25+ # Create LICENSE_zstd
26+ LICENSE_ZSTD_SRC = os .path .join (ROOT_PATH , 'zstd' , 'LICENSE' )
27+ with open (LICENSE_ZSTD_SRC , 'r' , encoding = 'utf-8' ) as file :
28+ license_zstd = file .read ()
29+ LICENSE_ZSTD_DST = os .path .join (ROOT_PATH , 'LICENSE_zstd' )
30+ with open (LICENSE_ZSTD_DST , 'w' , encoding = 'utf-8' ) as file :
31+ file .write (
32+ "Depending on how it is build, this package may distribute the zstd library,\n "
33+ "partially or in its integrality, in source or binary form.\n \n "
34+ "Its license is reproduced below.\n \n "
35+ "---\n \n "
36+ )
37+ file .write (license_zstd )
38+
2539 return long_description , module_version
2640
2741def get_zstd_files_list ():
You can’t perform that action at this time.
0 commit comments