Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary files from pypi source distribution #2565

Merged
merged 2 commits into from May 25, 2023

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
37 checks passed
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.

None yet

2 participants