Skip to content

Commit 4defe40

Browse files
committed
First commit
0 parents  commit 4defe40

21 files changed

+873
-0
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
labels: ["type: bug", "needs-triage"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for helping PyScript! 🐍
9+
10+
Going through bugs and issues takes up a lot of time, so please be so kind and take a few minutes to fill out all the areas to the best of your ability.
11+
12+
There will always be more issues than there is time to do them, and so we will need to selectively close issues that don't provide enough information, so we can focus our time on helping people like you who fill out the issue form completely. Thank you for your collaboration!
13+
14+
There are also already a lot of open issues, so please take 2 minutes and search through existing ones to see if what you are experiencing already exists
15+
16+
Thanks for helping PyScript be amazing. We are nothing without people like you helping build a better community 💐!
17+
- type: checkboxes
18+
id: checks
19+
attributes:
20+
label: Checklist
21+
description: Please confirm and check all the following options.
22+
options:
23+
- label: I added a descriptive title
24+
required: true
25+
- label: I searched for other issues and couldn't find a solution or duplication
26+
required: true
27+
- label: I already searched in Google and didn't find any good information or help
28+
required: true
29+
- type: textarea
30+
id: what-happened
31+
attributes:
32+
label: What happened?
33+
description: And what should have happened instead? This really helps everyone review quicker and greatly increases the chance that someone can get around to solve your issue
34+
placeholder: Tell us what you see!
35+
validations:
36+
required: true
37+
- type: dropdown
38+
id: browsers
39+
attributes:
40+
label: What browsers are you seeing the problem on? (if applicable)
41+
multiple: true
42+
options:
43+
- Firefox
44+
- Chrome
45+
- Safari
46+
- Microsoft Edge
47+
- Other
48+
validations:
49+
required: false
50+
- type: textarea
51+
id: list
52+
attributes:
53+
label: Console info
54+
description: |
55+
If there are errors in your browser console then its helpful to be able to troubleshoot.
56+
- Chrome , Firefox, and Edge: Right-click on the page and select *Inspect*. Alternatively you can press F12 on your keyboard.
57+
- Safari: Find instructions [here](https://support.apple.com/guide/safari/use-the-developer-tools-in-the-develop-menu-sfri20948/mac).
58+
render: shell
59+
- type: textarea
60+
id: context
61+
attributes:
62+
label: Additional Context
63+
description: Add any additional context information or screenshots you think are useful.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Question
4+
url: https://community.anaconda.cloud/c/tech-topics/pyscript
5+
about: For questions or discussions about pyscript
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Feature Request
2+
description: Create a feature request to make PyScript even better
3+
labels: ["type: enhancement", "needs-triage"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
### Thanks for helping PyScript! 🐍
9+
10+
Going through feature requests and issues takes up a lot of time, so please be so kind and take a few minutes to fill out all the areas to the best of your ability.
11+
12+
There will always be more great ideas than there is time to do them, and so we will need to selectively close issues that don't provide enough information, so everyone can focus our time on helping people like you who fill out the form completely. Thank you for your collaboration!
13+
14+
There are also already a lot of open requests, so please take 2 minutes and search through existing ones to see if your idea already exists. If you find something close, please upvote that request and comment.
15+
16+
Thanks for helping PyScript be amazing. We are nothing without people like you helping build a better community 💐!
17+
18+
### Lets make sure you are in the right place. If you have an idea/request for:
19+
20+
- #### A specific package/library (such as pandas or scikit learn):
21+
22+
Search for that respective library on github repo or website. You will have much more success there.
23+
24+
- #### A general Python question/feature request:
25+
26+
Try out a forum post [here](https://discuss.python.org/c/users/7)
27+
28+
- type: checkboxes
29+
id: checks
30+
attributes:
31+
label: Checklist
32+
description: Please confirm and check all the following options
33+
options:
34+
- label: I added a descriptive title
35+
required: true
36+
- label: I searched for other feature requests and couldn't find a duplicate (including also the ``type-feature`` tag)
37+
required: true
38+
- label: I confirmed that it's not related to another project are area (see the above section)
39+
required: true
40+
- type: textarea
41+
id: request-idea
42+
attributes:
43+
label: What is the idea?
44+
description: Describe what the feature is and the desired state
45+
placeholder: This feature would allow any user of PyScript to type in a simple command in the console and show all variables currently in use
46+
validations:
47+
required: true
48+
- type: textarea
49+
id: why
50+
attributes:
51+
label: Why is this needed
52+
description: |
53+
Who would benefit from this and why would this add value to them? What problem does this solve?
54+
placeholder: This would benefit users who would like to see what is being used so they can learn and debug faster
55+
- type: textarea
56+
id: what
57+
attributes:
58+
label: What should happen?
59+
description: |
60+
What should be the user experience with the feature? Describe from a user perpective what they would do and see
61+
placeholder: A user would type in ``PyScript debug`` in the browser console and see a list of all variables created.
62+
- type: textarea
63+
id: context
64+
attributes:
65+
label: Additional Context
66+
description: |
67+
Is there any other information that you think would be valuable for the team to know?

.github/ISSUE_TEMPLATE/misc.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Miscellaneous
2+
description: For issues that don't belong in other categories
3+
labels: ["type: misc", "needs-triage"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for helping PyScript! 🐍
9+
10+
This issue is for things that doesn't make sense to put into the other issue categories and we don't want it to get lost.
11+
12+
Going through issues takes up a lot of time, so please be so kind and take a few minutes to fill out all the areas to the best of your ability.
13+
14+
There will always be more issues than there is time to do them, and so we will need to selectively close issues that don't provide enough information, so we can focus our time on helping people like you who fill out the issue form completely. Thank you for your collaboration!
15+
16+
There are also already a lot of open issues, so please take 2 minutes and search through existing ones to see if what you are experiencing already exists
17+
18+
Thanks for helping PyScript be amazing. We are nothing without people like you helping build a better community 💐!
19+
- type: checkboxes
20+
id: checks
21+
attributes:
22+
label: Checklist
23+
description: Please confirm and check all the following options.
24+
options:
25+
- label: I added a descriptive title
26+
required: true
27+
- label: I searched for other issues and couldn't find a duplication
28+
required: true
29+
- label: I already searched in Google and didn't find any good information or help
30+
required: true
31+
- type: textarea
32+
id: what
33+
attributes:
34+
label: What is the issue/comment/problem?
35+
description: This is a miscellaneous issue so this could be just about anything. We simply ask that you provide as many details as you can to help spur discussion or the outcome you want.
36+
validations:
37+
required: true

.github/workflows/build-alpha.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: '[CI] Build Alpha'
2+
3+
on:
4+
push:
5+
tags:
6+
- '**' # Currently any tag, need to slim down
7+
paths:
8+
- pyscriptjs/**
9+
10+
env:
11+
MINICONDA_PYTHON_VERSION: py38
12+
MINICONDA_VERSION: 4.11.0
13+
14+
defaults:
15+
run:
16+
working-directory: pyscriptjs
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
id-token: write
24+
steps:
25+
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- name: Install node
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: 18.x
33+
34+
- name: Cache node modules
35+
uses: actions/cache@v3
36+
env:
37+
cache-name: cache-node-modules
38+
with:
39+
# npm cache files are stored in `~/.npm` on Linux/macOS
40+
path: ~/.npm
41+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
42+
restore-keys: |
43+
${{ runner.os }}-build-${{ env.cache-name }}-
44+
${{ runner.os }}-build-
45+
${{ runner.os }}-
46+
47+
- name: setup Miniconda
48+
uses: conda-incubator/setup-miniconda@v2
49+
50+
- name: Setup Environment
51+
run: make setup
52+
53+
- name: Build and Test
54+
run: make test
55+
56+
# Deploy to S3
57+
- name: Configure AWS credentials
58+
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
59+
uses: aws-actions/[email protected]
60+
with:
61+
aws-region: ${{secrets.AWS_REGION}}
62+
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
63+
64+
- name: Sync to S3
65+
if: github.ref == 'refs/heads/main'
66+
run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/alpha/

.github/workflows/build-latest.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: '[CI] Build Latest'
2+
3+
on:
4+
push: # Only run on merges into main that modify files under pyscriptjs/
5+
branches:
6+
- main
7+
paths:
8+
- pyscriptjs/**
9+
- .github/workflows/build-latest.yml # Test that workflow works when changed
10+
11+
pull_request: # Run on any PR that modifies files in pyscriptjs/
12+
branches:
13+
- main
14+
paths:
15+
- pyscriptjs/**
16+
- .github/workflows/build-latest.yml # Test that workflow works when changed
17+
18+
env:
19+
MINICONDA_PYTHON_VERSION: py38
20+
MINICONDA_VERSION: 4.11.0
21+
22+
defaults:
23+
run:
24+
working-directory: pyscriptjs
25+
26+
jobs:
27+
build:
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: read
31+
id-token: write
32+
steps:
33+
34+
- name: Checkout
35+
uses: actions/checkout@v3
36+
37+
- name: Install node
38+
uses: actions/setup-node@v3
39+
with:
40+
node-version: 18.x
41+
42+
- name: Cache node modules
43+
uses: actions/cache@v3
44+
env:
45+
cache-name: cache-node-modules
46+
with:
47+
# npm cache files are stored in `~/.npm` on Linux/macOS
48+
path: ~/.npm
49+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-build-${{ env.cache-name }}-
52+
${{ runner.os }}-build-
53+
${{ runner.os }}-
54+
55+
- name: setup Miniconda
56+
uses: conda-incubator/setup-miniconda@v2
57+
58+
- name: Setup Environment
59+
run: make setup
60+
61+
- name: Build and Test
62+
run: make test
63+
64+
# Deploy to S3
65+
- name: Configure AWS credentials
66+
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
67+
uses: aws-actions/[email protected]
68+
with:
69+
aws-region: ${{secrets.AWS_REGION}}
70+
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
71+
72+
- name: Sync to S3
73+
if: github.ref == 'refs/heads/main'
74+
run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/unstable

.github/workflows/docs-latest.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: '[Docs] Build Latest'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- docs/**
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
id-token: write
16+
env:
17+
SPHINX_HTML_BASE_URL: https://docs.pyscript.net/
18+
steps:
19+
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
24+
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
25+
26+
- name: Setup
27+
uses: conda-incubator/setup-miniconda@v2
28+
with:
29+
auto-update-conda: true
30+
activate-environment: docs
31+
environment-file: docs/environment.yml
32+
python-version: '3.9'
33+
34+
- name: Build
35+
shell: bash -l {0}
36+
run: |
37+
cd docs/
38+
make html
39+
40+
- name: Upload artifacts
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: pyscript-docs-latest
44+
path: docs/_build/html/
45+
46+
# Deploy to S3
47+
- name: Configure AWS credentials
48+
uses: aws-actions/[email protected]
49+
with:
50+
aws-region: ${{secrets.AWS_REGION}}
51+
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
52+
53+
- name: Copy redirect file
54+
run: aws s3 cp --quiet ./docs/_build/html/_static/redirect.html s3://docs.pyscript.net/index.html
55+
56+
# - name: Delete latest directory
57+
# run: aws s3 rm --recursive s3://docs.pyscript.net/latest/
58+
59+
- name: Sync to S3
60+
run: aws s3 sync --quiet ./docs/_build/html/ s3://docs.pyscript.net/latest/

0 commit comments

Comments
 (0)