Skip to content

Commit d667880

Browse files
authored
0.0.4 release (#2)
* Update makefile, setup.py, and pyproject.toml. * Updated tests, add CI, doc generation, and reformatted docstrings. * Update overall module description. Moved helpers into `utils.py`. Moved constants into `constants.py`. Added `enums.py`. Rename `char_as_exp` to simply `escape`, as it is a more accurate name. Now sharing pattern building functions for both RE and RE2 to be specified by an enum (this could change in the future). Naming that involves "codepoint" will now be used as "cpoint" instead to save line room. Added tests. Updated readme. * Move utils tests and base tests to own files and improved both. Better names for constant variables. * Improved usage of frozenset. Further implementation of subtests. * Better name for global var name `ALWAYS_ESCAPED` is `ALWAYS_ESCAPE`. Edited docstrings and correct some example parts that misrender in the readme generator. Update Makefile and add cli args to doc generating script. Added a couple tests and improved test method names. * Version upgrade. * Update readme maker * Move `__version__` to before `__all__` * Remove check and ValueError raise for span masking * - Added missing codecov.yml for pipeline. - Updated Makefile to be more informative/consistent. - Prepare for codecov in readme generator config, and correct main branch name. - Insert badges for codecov into install.md.jinja template. - More aggressive path resolving in readme generator. * No need to copy README.md anymore in Makefile, and correct typo * Update readme * Validate enum to ensure user input succeeds * Add RE2 dependency
1 parent d745782 commit d667880

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2050
-928
lines changed

.github/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
*
33

44
# Except
5+
!actions/
6+
!actions/*
57
!ISSUE_TEMPLATE/
68
!ISSUE_TEMPLATE/*
9+
!workflows/
10+
!workflows/*
711

812
!.gitignore

.github/ISSUE_TEMPLATE/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
*
33

44
# Except
5-
!bug_report.yaml
6-
!feature_request.yaml
5+
!bug_report.yml
6+
!feature_request.yml
77
!question.md
88

99
!.gitignore

.github/ISSUE_TEMPLATE/bug_report.yaml renamed to .github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug report
22
description: Are you experiencing a problem? Create a report to help us improve!
3-
labels: "bug"
3+
labels: ["bug"]
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/feature_request.yaml renamed to .github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature Request
22
description: Want a feature? Ask; we don't bite!
3-
labels: 'enhancement'
3+
labels: ["enhancement"]
44
body:
55
- type: markdown
66
attributes:
@@ -24,4 +24,4 @@ body:
2424
description: If so, specify
2525
- type: input
2626
attributes:
27-
label: Additional context
27+
label: Additional context

.github/actions/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Ignore everything
2+
*
3+
4+
# Except
5+
!build_regex_toolkit/
6+
!build_regex_toolkit/*
7+
!run-tests/
8+
!run-tests/*
9+
!setup-conda/
10+
!setup-conda/*
11+
12+
!.gitignore
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore everything
2+
*
3+
4+
# Except
5+
!action.yml
6+
7+
!.gitignore
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build regex_toolkit
2+
description: Build regex_toolkit
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Environment Detail
7+
run: |
8+
micromamba info
9+
micromamba list
10+
shell: bash -el {0}
11+
12+
- name: Build Regex-Toolkit
13+
run: |
14+
python -m pip install -e . --no-build-isolation --no-index
15+
shell: bash -el {0}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore everything
2+
*
3+
4+
# Except
5+
!action.yml
6+
7+
!.gitignore
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run tests and report results
2+
description: Run tests and report results
3+
# inputs:
4+
# codecov-token:
5+
# description: Codecov token for private repo.
6+
7+
runs:
8+
using: composite
9+
steps:
10+
- name: Test
11+
run: ci/run_tests.sh
12+
shell: bash -el {0}
13+
14+
- name: Publish Test Results
15+
uses: actions/upload-artifact@v2
16+
with:
17+
name: Test results
18+
path: test-data.xml
19+
20+
- name: Report Coverage
21+
run: coverage report -m
22+
shell: bash -el {0}
23+
24+
- name: Upload Coverage to Codecov
25+
uses: codecov/codecov-action@v3
26+
with:
27+
# token: ${{ inputs.codecov-token }}
28+
files: ./coverage.xml
29+
flags: unittests
30+
name: regex_toolkit
31+
fail_ci_if_error: false
32+
# env:
33+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore everything
2+
*
3+
4+
# Except
5+
!action.yml
6+
7+
!.gitignore

0 commit comments

Comments
 (0)