Skip to content

Commit

Permalink
refactor: resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
kirangadhave committed Sep 4, 2023
1 parent 4c8451d commit e39d532
Show file tree
Hide file tree
Showing 150 changed files with 10,433 additions and 11,769 deletions.
5 changes: 3 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v4.0.6
_commit: v4.2.0
_src_path: https://github.com/jupyterlab/extension-template
author_email: [email protected]
author_name: Kiran Gadhave
Expand All @@ -11,7 +11,8 @@ kind: frontend
labextension_name: persist_ext
mimetype: ''
mimetype_name: ''
project_short_description: PersIst is a JupyterLab extension to enable persistent interactive visualizations in JupyterLab notebooks.
project_short_description: PersIst is a JupyterLab extension to enable persistent
interactive visualizations in JupyterLab notebooks.
python_name: persist_ext
repository: https://github.com/visdesignlab/persist
test: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build

on:
push:
branches: [main]
branches:[ main ]
pull_request:
branches: [ '*' ]

Expand Down Expand Up @@ -32,6 +32,8 @@ jobs:
set -eux
python -m pip install .[test]
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "persist_ext.*OK"
python -m jupyterlab.browser_check
- name: Package the extension
Expand All @@ -54,8 +56,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ jobs:
uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install Dependencies
run: |
pip install -e .
- name: Check Release
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:

token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Distributions
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/prep-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
version_spec: ${{ github.event.inputs.version_spec }}
post_version_spec: ${{ github.event.inputs.post_version_spec }}
target: ${{ github.event.inputs.target }}
branch: ${{ github.event.inputs.branch }}
since: ${{ github.event.inputs.since }}
since_last_stable: ${{ github.event.inputs.since_last_stable }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
jobs:
publish_release:
runs-on: ubuntu-latest
permissions:
# This is useful if you want to use PyPI trusted publisher
# and NPM provenance
id-token: write
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

Expand All @@ -23,22 +27,21 @@ jobs:
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
target: ${{ github.event.inputs.target }}
branch: ${{ github.event.inputs.branch }}
release_url: ${{ github.event.inputs.release_url }}
steps_to_skip: ${{ github.event.inputs.steps_to_skip }}

- name: Finalize Release
id: finalize-release
env:
# The following are needed if you use legacy PyPI set up
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
TWINE_USERNAME: __token__
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
target: ${{ github.event.inputs.target }}
release_url: ${{ steps.populate-release.outputs.release_url }}

- name: "** Next Step **"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@ dmypy.json
# Yarn cache
.yarn/
intent_inference/
*.zwc
4 changes: 3 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"src/**/*": ["jlpm lint"]
"src/**/*": [
"hatch run jlpm lint"
]
}
2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
enableImmutableInstalls: false

nodeLinker: node-modules
85 changes: 0 additions & 85 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,89 +2,4 @@

<!-- <START NEW CHANGELOG ENTRY> -->

## 1.4.0

([Full Changelog](https://github.com/visdesignlab/persist/compare/v1.3.0...9538b576a4b4702ef16865bef94129da63e0e9af))

### Enhancements made

- feat(time-unit + datatable): adding data table + fixing time-unit selections + more [#76](https://github.com/visdesignlab/persist/pull/76) ([@kirangadhave](https://github.com/kirangadhave))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/visdesignlab/persist/graphs/contributors?from=2023-08-22&to=2023-08-30&type=c))

[@kirangadhave](https://github.com/search?q=repo%3Avisdesignlab%2Fpersist+involves%3Akirangadhave+updated%3A2023-08-22..2023-08-30&type=Issues)

<!-- <END NEW CHANGELOG ENTRY> -->

## 1.3.0

([Full Changelog](https://github.com/visdesignlab/persist/compare/v1.2.0...595a3288f88fa80afc91715fdda7868212526d7d))

### Enhancements made

- Multiple fixes [#75](https://github.com/visdesignlab/persist/pull/75) ([@kirangadhave](https://github.com/kirangadhave))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/visdesignlab/persist/graphs/contributors?from=2023-08-14&to=2023-08-22&type=c))

[@kirangadhave](https://github.com/search?q=repo%3Avisdesignlab%2Fpersist+involves%3Akirangadhave+updated%3A2023-08-14..2023-08-22&type=Issues)

## 1.2.0

([Full Changelog](https://github.com/visdesignlab/persist/compare/v1.1.0...a2b3880368268123e568950bb5b315696b90b73b))

### Enhancements made

- fix(agg): connected aggregate popup to signal [#73](https://github.com/visdesignlab/persist/pull/73) ([@kirangadhave](https://github.com/kirangadhave))
- feat(interactions): storing categories globally, added hookstate library [#65](https://github.com/visdesignlab/persist/pull/65) ([@kirangadhave](https://github.com/kirangadhave))
- feat(aggregate): adding new aggregate controls [#59](https://github.com/visdesignlab/persist/pull/59) ([@kirangadhave](https://github.com/kirangadhave))

### Other merged PRs

- fix(intent): removed print statement [#71](https://github.com/visdesignlab/persist/pull/71) ([@kirangadhave](https://github.com/kirangadhave))
- feat(sidebar): refactored to have a tabbed sidebar [#70](https://github.com/visdesignlab/persist/pull/70) ([@kirangadhave](https://github.com/kirangadhave))
- feat(dataset-generation): added btn to insert a new code cell, paste … [#69](https://github.com/visdesignlab/persist/pull/69) ([@kirangadhave](https://github.com/kirangadhave))
- feat(aggregate): added feature to create named aggregates [#68](https://github.com/visdesignlab/persist/pull/68) ([@kirangadhave](https://github.com/kirangadhave))
- feat(dataframe-generation): refactored dataframe generation. can crea… [#67](https://github.com/visdesignlab/persist/pull/67) ([@kirangadhave](https://github.com/kirangadhave))
- feat(ui): refactoring ui to use better toolbar with mantine [#64](https://github.com/visdesignlab/persist/pull/64) ([@kirangadhave](https://github.com/kirangadhave))
- feat(adding categorize): adding categorize [#61](https://github.com/visdesignlab/persist/pull/61) ([@kirangadhave](https://github.com/kirangadhave))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/visdesignlab/persist/graphs/contributors?from=2023-06-25&to=2023-08-14&type=c))

[@github-actions](https://github.com/search?q=repo%3Avisdesignlab%2Fpersist+involves%3Agithub-actions+updated%3A2023-06-25..2023-08-14&type=Issues) | [@kirangadhave](https://github.com/search?q=repo%3Avisdesignlab%2Fpersist+involves%3Akirangadhave+updated%3A2023-06-25..2023-08-14&type=Issues)

## 1.1.0

No merged PRs

## 1.0.1

No merged PRs

## 1.0.0

([Full Changelog](https://github.com/visdesignlab/persist/compare/5ed90bee518fff9daf81df3fb927c143e0807e46...264ad73011e88db77c4b44a09fb1bf0de7363326))

### Enhancements made

- Rename extension to `persist_ext` [#58](https://github.com/visdesignlab/persist/pull/58) ([@kirangadhave](https://github.com/kirangadhave))
- Major features [#44](https://github.com/visdesignlab/persist/pull/44) ([@kirangadhave](https://github.com/kirangadhave))

### Other merged PRs

- feat(log-console): added log console ext + integrated with global logger [#20](https://github.com/visdesignlab/persist/pull/20) ([@kirangadhave](https://github.com/kirangadhave))
- CI test probe [#19](https://github.com/visdesignlab/persist/pull/19) ([@kirangadhave](https://github.com/kirangadhave))
- Testing github actions [#18](https://github.com/visdesignlab/persist/pull/18) ([@kirangadhave](https://github.com/kirangadhave))
- testing actions [#15](https://github.com/visdesignlab/persist/pull/15) ([@kirangadhave](https://github.com/kirangadhave))
- Testing kernel comms [#1](https://github.com/visdesignlab/persist/pull/1) ([@kirangadhave](https://github.com/kirangadhave))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/visdesignlab/persist/graphs/contributors?from=2023-01-16&to=2023-06-25&type=c))

[@github-actions](https://github.com/search?q=repo%3Avisdesignlab%2Fpersist+involves%3Agithub-actions+updated%3A2023-01-16..2023-06-25&type=Issues) | [@kirangadhave](https://github.com/search?q=repo%3Avisdesignlab%2Fpersist+involves%3Akirangadhave+updated%3A2023-01-16..2023-06-25&type=Issues)
36 changes: 35 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,41 @@ Check out the [workflow documentation](https://jupyter-releaser.readthedocs.io/e

Here is a summary of the steps to cut a new release:

- Add `ADMIN_GITHUB_TOKEN`, `PYPI_TOKEN` and `NPM_TOKEN` to the [Github Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) in the repository
- Add tokens to the [Github Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) in the repository:
- `ADMIN_GITHUB_TOKEN` (with "public_repo" and "repo:status" permissions); see the [documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
- `NPM_TOKEN` (with "automation" permission); see the [documentation](https://docs.npmjs.com/creating-and-viewing-access-tokens)
- Set up PyPI

<details><summary>Using PyPI trusted publisher (modern way)</summary>

- Set up your PyPI project by [adding a trusted publisher](https://docs.pypi.org/trusted-publishers/adding-a-publisher/)
- The _workflow name_ is `publish-release.yml` and the _environment_ should be left blank.
- Ensure the publish release job as `permissions`: `id-token : write` (see the [documentation](https://docs.pypi.org/trusted-publishers/using-a-publisher/))

</details>

<details><summary>Using PyPI token (legacy way)</summary>

- If the repo generates PyPI release(s), create a scoped PyPI [token](https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#saving-credentials-on-github). We recommend using a scoped token for security reasons.

- You can store the token as `PYPI_TOKEN` in your fork's `Secrets`.

- Advanced usage: if you are releasing multiple repos, you can create a secret named `PYPI_TOKEN_MAP` instead of `PYPI_TOKEN` that is formatted as follows:

```text
owner1/repo1,token1
owner2/repo2,token2
```
If you have multiple Python packages in the same repository, you can point to them as follows:
```text
owner1/repo1/path/to/package1,token1
owner1/repo1/path/to/package2,token2
```
</details>
- Go to the Actions panel
- Run the "Step 1: Prep Release" workflow
- Check the draft changelog
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes']
extends: ['@commitlint/config-conventional']
};
Loading

0 comments on commit e39d532

Please sign in to comment.