Skip to content

remove unnecessary files from pypi source distribution #2565

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:add-manifest
May 25, 2023
Merged

remove unnecessary files from pypi source distribution #2565
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:add-manifest

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented May 25, 2023

Our PyPi source distribution package is over 30MB which is too large! See https://pypi.org/project/deepmd-kit/2.2.2/#files
By default, when using setuptools-scm, all files will be added to the package. This PR excludes directories that are not used for building and installing, including:

  • source/tests
  • source/api_c/tests
  • source/api_cc/tests
  • source/lib/tests
  • source/lmp/tests
  • doc
  • examples
  • data
  • .github

After removing these files from the source distribution, the package is only 708 KB.

njzjz added 2 commits May 24, 2023 20:27
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01 🎉

Comparison is base (275ad5f) 76.80% compared to head (c29e21e) 76.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #2565      +/-   ##
==========================================
+ Coverage   76.80%   76.82%   +0.01%     
==========================================
  Files         227      227              
  Lines       23805    23805              
  Branches     1653     1653              
==========================================
+ Hits        18284    18287       +3     
  Misses       4421     4421              
+ Partials     1100     1097       -3     

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wanghan-iapcm wanghan-iapcm merged commit 8cfce1a into deepmodeling:devel May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants