Skip to content

Commit

Permalink
handle client-side history changes (#18)
Browse files Browse the repository at this point in the history
* handle client-side history changes

* add test

* simplify test

* fix test flow

* test 3.11

* fix js build

* add star pattern

* docs update

* drop py 3.7 and 3.8 support

* update manifest

* fix test
  • Loading branch information
rmorshea authored Jun 10, 2023
1 parent b736c04 commit fd690d8
Show file tree
Hide file tree
Showing 14 changed files with 3,730 additions and 207 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Release
name: release

on:
release:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: test

on:
push:
Expand All @@ -20,13 +20,13 @@ jobs:
- name: Install Python Dependencies
run: pip install -r requirements/nox-deps.txt
- name: Run Tests
run: nox -s test
run: nox -t test

environments:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Use Python ${{ matrix.python-version }}
Expand All @@ -36,4 +36,4 @@ jobs:
- name: Install Python Dependencies
run: pip install -r requirements/nox-deps.txt
- name: Run Tests
run: nox -s test -- --no-cov
run: nox -t test -- --no-cov
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include README.md
include reactpy_router/bundle.js
include reactpy_router/py.typed
include LICENSE
4 changes: 2 additions & 2 deletions docs/src/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ automate testing and other development tasks.
## Running the Tests

```bash
nox -s test
nox -t test
```

You can run the tests with a headed browser.

```bash
nox -s test -- --headed
nox -t test -- --headed
```

## Releasing This Package
Expand Down
22 changes: 22 additions & 0 deletions js/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"browser": true,
"node": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/prop-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
Loading

0 comments on commit fd690d8

Please sign in to comment.