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

Build js file at package time & cleanu sdist #9

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

yuvipanda
Copy link
Member

  • Stop including the built JS file in the package, instead it is built during sdist time (and hence included in the wheel). Stolen / inspired from JupyterHub itself.
  • setuptool_scm includes all checked-in files by default in the sdist (using setuptools_scm forces all SCM files to be packaged into sdist pypa/setuptools-scm#190). This cleans it out to trim down the size of our sdist
  • I think our previous wheel files didn't actually have the python package correctly. It is set up correctly now.
  • Generated js files are put under a dist/, so we can have non-generated static files under static/ in the future. dist/ is added to .gitignore

- Stop including the built JS file in the package, instead it
  is built during sdist time (and hence included in the
  wheel). Stolen / inspired from JupyterHub itself.
- setuptool_scm includes *all* checked-in files by default in
  the sdist (pypa/setuptools-scm#190).
  This cleans it out to trim down the size of our sdist
- I think our previous wheel files didn't actually have the
  python package correctly. It is set up correctly now.
- Generated js files are put under a dist/, so we can have
  non-generated static files under static/ in the future. dist/
  is added to .gitignore
@yuvipanda yuvipanda merged commit 8070fe5 into main Nov 14, 2023
1 check passed
@yuvipanda yuvipanda deleted the fix-build branch November 14, 2023 10:04
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.

1 participant