Skip to content

Commit f85b2f5

Browse files
authored
Merge pull request #1 from espressif/init
Introducing esp-bool-parser
2 parents 1cecdab + 09e2173 commit f85b2f5

37 files changed

+1337
-114
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
[*.py]
12+
charset = utf-8
13+
indent_style = space
14+
indent_size = 4
15+
16+
[*.rst]
17+
indent_style = space
18+
indent_size = 3
19+
20+
[*.md]
21+
indent_style = space
22+
indent_size = 4

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pre-commit check
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v5
14+
- id: changed-files
15+
uses: tj-actions/changed-files@v45
16+
- uses: pre-commit/[email protected]
17+
with:
18+
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Sync issue comments to JIRA
2+
3+
# This workflow will be triggered when new issue comment is created (including PR comments)
4+
on: issue_comment
5+
6+
jobs:
7+
sync_issue_comments_to_jira:
8+
name: Sync Issue Comments to Jira
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Sync issue comments to JIRA
13+
uses: espressif/github-actions/sync_issues_to_jira@master
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
17+
JIRA_PROJECT: RDT
18+
JIRA_COMPONENT: idf-build-apps
19+
JIRA_URL: ${{ secrets.JIRA_URL }}
20+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_issues.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Sync issues to Jira
2+
3+
# This workflow will be triggered when a new issue is opened
4+
on: issues
5+
6+
jobs:
7+
sync_issues_to_jira:
8+
name: Sync issues to Jira
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Sync GitHub issues to Jira project
13+
uses: espressif/github-actions/sync_issues_to_jira@master
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
17+
JIRA_PROJECT: RDT
18+
JIRA_COMPONENT: idf-build-apps
19+
JIRA_URL: ${{ secrets.JIRA_URL }}
20+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_prs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sync remain PRs to Jira
2+
3+
# This workflow will be triggered every hour, to sync remaining PRs (i.e. PRs with zero comment) to Jira project
4+
# Note that, PRs can also get synced when new PR comment is created
5+
on:
6+
schedule:
7+
- cron: "0 * * * *"
8+
9+
jobs:
10+
sync_prs_to_jira:
11+
name: Sync PRs to Jira
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Sync PRs to Jira project
16+
uses: espressif/github-actions/sync_issues_to_jira@master
17+
with:
18+
cron_job: true
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
22+
JIRA_PROJECT: RDT
23+
JIRA_COMPONENT: idf-build-apps
24+
JIRA_URL: ${{ secrets.JIRA_URL }}
25+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/publish-pypi.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.7'
16+
- name: Publish packages
17+
env:
18+
FLIT_USERNAME: __token__
19+
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
20+
run: |
21+
pip install flit
22+
flit publish --setup-py
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test Build Docs
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-docs:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.7'
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install flit
19+
flit install -s
20+
- name: Build the docs
21+
run: |
22+
cd docs
23+
pushd en && make html && popd
24+
- name: markdown-link-check
25+
uses: gaurav-nelson/[email protected]
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test ESP bool parser
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'esp_bool_parser/**'
7+
push:
8+
branches:
9+
- main
10+
11+
env:
12+
IDF_PATH: /opt/esp/idf
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
jobs:
19+
build-python-packages:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.7'
26+
- run: |
27+
pip install -U pip
28+
pip install flit
29+
flit build
30+
- name: Upload built python packages
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: wheel
34+
path: dist/esp_bool_parser-*.whl
35+
36+
37+
basic-testest:
38+
runs-on: ubuntu-latest
39+
env:
40+
FLIT_ROOT_INSTALL: 1
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Build the Apps
44+
run: |
45+
pip install flit
46+
flit install -s
47+
pytest --cov esp_bool_parser --cov-report term-missing:skip-covered --junit-xml pytest.xml | tee pytest-coverage.txt
48+
- name: Pytest coverage comment
49+
uses: MishaKav/pytest-coverage-comment@main
50+
with:
51+
pytest-coverage-path: pytest-coverage.txt
52+
junitxml-path: pytest.xml

.gitignore

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/*/_build/
73+
docs/en/references/api/
74+
75+
# PyBuilder
76+
.pybuilder/
77+
target/
78+
79+
# Jupyter Notebook
80+
.ipynb_checkpoints
81+
82+
# IPython
83+
profile_default/
84+
ipython_config.py
85+
86+
# pyenv
87+
# For a library or package, you might want to ignore these files since the code is
88+
# intended to run in multiple environments; otherwise, check them in:
89+
# .python-version
90+
91+
# pipenv
92+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95+
# install all needed dependencies.
96+
#Pipfile.lock
97+
98+
# poetry
99+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100+
# This is especially recommended for binary packages to ensure reproducibility, and is more
101+
# commonly ignored for libraries.
102+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103+
poetry.lock
104+
105+
# pdm
106+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107+
#pdm.lock
108+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109+
# in version control.
110+
# https://pdm.fming.dev/#use-with-ide
111+
.pdm.toml
112+
113+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114+
__pypackages__/
115+
116+
# Celery stuff
117+
celerybeat-schedule
118+
celerybeat.pid
119+
120+
# SageMath parsed files
121+
*.sage.py
122+
123+
# Environments
124+
.env
125+
.venv
126+
env/
127+
venv/
128+
ENV/
129+
env.bak/
130+
venv.bak/
131+
132+
# Spyder project settings
133+
.spyderproject
134+
.spyproject
135+
136+
# Rope project settings
137+
.ropeproject
138+
139+
# mkdocs documentation
140+
/site
141+
142+
# mypy
143+
.mypy_cache/
144+
.dmypy.json
145+
dmypy.json
146+
147+
# Pyre type checker
148+
.pyre/
149+
150+
# pytype static type analyzer
151+
.pytype/
152+
153+
# Cython debug symbols
154+
cython_debug/
155+
156+
# PyCharm
157+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159+
# and can be added to the global gitignore or merged into this file. For a more nuclear
160+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
161+
.idea/

0 commit comments

Comments
 (0)