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

chore: improve packaging, fix version issues #8157

Closed
wants to merge 1 commit into from

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Sep 2, 2019

  • make package.json the single source of truth for version,
    and allow to be in the package, just not in static/ though
  • limit what is in static/ by using symlinks only on needed folder
    (dist, images)
  • remove some images that were not used/referenced in the package
  • move images used in documentation only under static/images/docs/
    and remove from python package itself

tarball size (running python setup.py sdist --formats=gztar):

  • before 87.31MB
  • after 56.37MB

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

* make package.json the single source of truth for version,
  and allow to be in the package, just not in static/ though
* limit what is in `static/` by using symlinks only on needed folder
  (dist, images)
* remove some images that were not used/referenced in the package
* move images used in documentation only under `static/images/docs/`
  and remove from python package itself

tarball size (running `python setup.py sdist --formats=gztar`):
* before 87.313764
* after 56.373001
mistercrunch added a commit to mistercrunch/superset that referenced this pull request Sep 8, 2019
Ran into Cypress issues while getting too ambitious in apache#8157
this is a simplified more targeted version of it

* include package.json (but not under static/)
* use package.json as single source of truth for version info
@mistercrunch
Copy link
Member Author

mistercrunch commented Sep 8, 2019

Will reopen something similar, focussing on package size once #8196 is merged

mistercrunch added a commit that referenced this pull request Sep 11, 2019
* Fix version info

Ran into Cypress issues while getting too ambitious in #8157
this is a simplified more targeted version of it

* include package.json (but not under static/)
* use package.json as single source of truth for version info

* typo
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