Skip to content

Commit

Permalink
Merge pull request #31 from brainelectronics/feature/support-mip
Browse files Browse the repository at this point in the history
Add support for mip
  • Loading branch information
brainelectronics authored Jun 6, 2023
2 parents a6049d9 + 2ee22ad commit e548693
Show file tree
Hide file tree
Showing 17 changed files with 718 additions and 181 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ exclude =
libs_external
sdist_upip.py
setup.py
update_version.py
R.py
# external packages added to this package to be independent
utemplate

# Provide a comma-separated list of glob patterns to add to the list of excluded ones.
# extend-exclude =
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

blank_issues_enabled: false
94 changes: 94 additions & 0 deletions .github/ISSUE_TEMPLATE/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---

name: "Default issue"
description: Report any kind of issue
body:
- type: textarea
id: description
attributes:
label: Description
description: Please enter an explicit description of your issue
placeholder: Short and explicit description of your incident...
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction steps
description: |
Please enter an explicit description to reproduce this issue
value: |
1.
2.
3.
...
validations:
required: true
- type: input
id: version
attributes:
label: MicroPython version
description: Which MicroPython version are you using?
placeholder: v1.20.0
validations:
required: true
- type: dropdown
id: board
attributes:
label: MicroPython board
description: Which MicroPython board are you using?
options:
- pyboard
- Raspberry Pico
- ESP32
- ESP8266
- WiPy
- i.MXRT
- SAMD21/SAMD51
- Renesas
- Zephyr
- UNIX
- other
validations:
required: true
- type: textarea
id: package-version
attributes:
label: MicroPython ESP WiFi Manager version
description: Which version of this lib are you using?
value: |
# e.g. v1.9.0
# use the following command to get the used version
import os
from wifi_manager import version
print('MicroPython infos:', os.uname())
print('Used micropthon-esp-wifi-manager version:', version.__version__))
render: python
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: >
Please copy and paste any relevant log output.
This will be automatically formatted into code, so no need for
backticks.
render: bash
- type: textarea
id: usercode
attributes:
label: User code
description: >
Please copy and paste any relevant user code.
This will be automatically formatted into Python code, so no need for
backticks.
render: python
- type: textarea
id: additional
attributes:
label: Additional informations
description: Please provide additional informations if available
placeholder: Some more informations
validations:
required: false
84 changes: 43 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to
# help make automated releases for this project
---

# this file is *not* meant to cover or endorse the use of GitHub Actions, but
# rather to help make automated releases for this project

name: Upload Python Package

Expand All @@ -15,42 +17,42 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install build dependencies
run: |
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
- name: Build package
run: |
changelog2version \
--changelog_file changelog.md \
--version_file wifi_manager/version.py \
--version_file_type py \
--debug
python setup.py sdist
rm dist/*.orig
# sdist call create non conform twine files *.orig, remove them
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
verbose: true
print_hash: true
- name: 'Create changelog based release'
uses: brainelectronics/changelog-based-release@v1
with:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
# or you set the "contents" permissions to "write" as in this example
changelog-path: changelog.md
tag-name-prefix: ''
tag-name-extension: ''
release-name-prefix: ''
release-name-extension: ''
draft-release: true
prerelease: false
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install build dependencies
run: |
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
- name: Build package
run: |
changelog2version \
--changelog_file changelog.md \
--version_file wifi_manager/version.py \
--version_file_type py \
--debug
python setup.py sdist
rm dist/*.orig
# sdist call create non conform twine files *.orig, remove them
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
verbose: true
print_hash: true
- name: 'Create changelog based release'
uses: brainelectronics/changelog-based-release@v1
with:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
# or you set the "contents" permissions to "write" as in this example
changelog-path: changelog.md
tag-name-prefix: ''
tag-name-extension: ''
release-name-prefix: ''
release-name-extension: ''
draft-release: true
prerelease: false
111 changes: 57 additions & 54 deletions .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to
# help make automated releases for this project
---

# this file is *not* meant to cover or endorse the use of GitHub Actions, but
# rather to help make automated test releases for this project

name: Upload Python Package to test.pypi.org

Expand All @@ -12,55 +14,56 @@ jobs:
test-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install build dependencies
run: |
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
- name: Build package
run: |
changelog2version \
--changelog_file changelog.md \
--version_file wifi_manager/version.py \
--version_file_type py \
--additional_version_info="-rc${{ github.run_number }}.dev${{ github.event.number }}" \
--debug
python setup.py sdist
- name: Test built package
# sdist call creates non twine conform "*.orig" files, remove them
run: |
rm dist/*.orig
twine check dist/*.tar.gz
- name: Archive build package artifact
uses: actions/upload-artifact@v3
with:
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
# ${{ github.repository }} and ${{ github.ref_name }} can't be used for artifact name due to unallowed '/'
name: dist_repo.${{ github.event.repository.name }}_sha.${{ github.sha }}_build.${{ github.run_number }}
path: dist/*.tar.gz
retention-days: 14
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
skip_existing: true
verbose: true
print_hash: true
- name: 'Create changelog based prerelease'
uses: brainelectronics/changelog-based-release@v1
with:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
# or you set the "contents" permissions to "write" as in this example
changelog-path: changelog.md
tag-name-prefix: ''
tag-name-extension: '-rc${{ github.run_number }}.dev${{ github.event.number }}'
release-name-prefix: ''
release-name-extension: '-rc${{ github.run_number }}.dev${{ github.event.number }}'
draft-release: true
prerelease: true
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install build dependencies
run: |
if [ -f requirements-deploy.txt ]; then pip install -r requirements-deploy.txt; fi
- name: Build package
run: |
changelog2version \
--changelog_file changelog.md \
--version_file wifi_manager/version.py \
--version_file_type py \
--additional_version_info="-rc${{ github.run_number }}.dev${{ github.event.number }}" \
--debug
python setup.py sdist
- name: Test built package
# sdist call creates non twine conform "*.orig" files, remove them
run: |
rm dist/*.orig
twine check dist/*.tar.gz
- name: Archive build package artifact
uses: actions/upload-artifact@v3
with:
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
# ${{ github.repository }} and ${{ github.ref_name }} can't be used
# for artifact name due to unallowed '/'
name: dist_repo.${{ github.event.repository.name }}_sha.${{ github.sha }}_build.${{ github.run_number }}
path: dist/*.tar.gz
retention-days: 14
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
skip_existing: true
verbose: true
print_hash: true
- name: 'Create changelog based prerelease'
uses: brainelectronics/changelog-based-release@v1
with:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
# or you set the "contents" permissions to "write" as in this example
changelog-path: changelog.md
tag-name-prefix: ''
tag-name-extension: '-rc${{ github.run_number }}.dev${{ github.event.number }}'
release-name-prefix: ''
release-name-extension: '-rc${{ github.run_number }}.dev${{ github.event.number }}'
draft-release: true
prerelease: true
Loading

0 comments on commit e548693

Please sign in to comment.