Skip to content

Commit

Permalink
🎨 Update to match latest template tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
SterlingPeet committed Aug 6, 2024
1 parent 03f3cd0 commit 8980f5b
Show file tree
Hide file tree
Showing 26 changed files with 294 additions and 305 deletions.
8 changes: 6 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ tag = True
message = 🔖 Bump version: {current_version} → {new_version}

[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'
search = 'fallback_version': '{current_version}'
replace = 'fallback_version': '{new_version}'

[bumpversion:file (badge):README.rst]
search = /v{current_version}.svg
Expand All @@ -23,3 +23,7 @@ replace = version = release = '{new_version}'
[bumpversion:file:src/arduino_cli_cmake_wrapper/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

[bumpversion:file:.cookiecutterrc]
search = version: {current_version}
replace = version: {new_version}
98 changes: 44 additions & 54 deletions .cookiecutterrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,57 +15,47 @@
# cookiecutter --overwrite-if-exists --config-file=arduino-cli-cmake-wrapper/.cookiecutterrc gh:ionelmc/cookiecutter-pylibrary

default_context:

allow_tests_inside_package: 'no'
appveyor: 'no'
c_extension_function: 'longest'
c_extension_module: '_arduino_cli_cmake_wrapper'
c_extension_optional: 'no'
c_extension_support: 'no'
c_extension_test_pypi: 'no'
c_extension_test_pypi_username: 'SterlingPeet'
codacy: 'no'
codacy_projectid: '[Get ID from https://app.codacy.com/gh/SterlingPeet/arduino-cli-cmake-wrapper/settings]'
codeclimate: 'no'
codecov: 'no'
command_line_interface: 'argparse'
command_line_interface_bin_name: 'arduino-cli-wrapper'
coveralls: 'no'
distribution_name: 'arduino-cli-cmake-wrapper'
email: '[email protected]'
full_name: 'Sterling Lewis Peet'
github_actions: 'yes'
github_actions_osx: 'yes'
github_actions_windows: 'yes'
license: 'Apache Software License 2.0'
linter: 'flake8'
package_name: 'arduino_cli_cmake_wrapper'
pre_commit: 'yes'
pre_commit_formatter: 'black'
project_name: 'Arduino CLI Wrapper for CMake'
project_short_description: 'Arduino Cmake toolchain leveraging ``arduino-cli`` via python wrapper script'
pypi_badge: 'yes'
pypi_disable_upload: 'no'
release_date: 'today'
repo_hosting: 'github.com'
repo_hosting_domain: 'github.com'
repo_main_branch: 'main'
repo_name: 'arduino-cli-cmake-wrapper'
repo_username: 'SterlingPeet'
requiresio: 'no'
scrutinizer: 'no'
setup_py_uses_pytest_runner: 'no'
setup_py_uses_setuptools_scm: 'no'
sphinx_docs: 'yes'
sphinx_docs_hosting: 'https://arduino-cli-cmake-wrapper.readthedocs.io/'
sphinx_doctest: 'no'
sphinx_theme: 'sphinx-rtd-theme'
test_matrix_configurator: 'no'
test_matrix_separate_coverage: 'no'
travis: 'no'
travis_osx: 'no'
version: '0.0.0'
version_manager: 'bump2version'
website: 'https://github.com/SterlingPeet'
year_from: '2022'
year_to: '2022'
c_extension_optional: "no"
c_extension_support: "no"
codacy: "no"
codacy_projectid: "[Get ID from https://app.codacy.com/gh/SterlingPeet/arduino-cli-cmake-wrapper/settings]"
codeclimate: "no"
codecov: "no"
command_line_interface: "argparse"
command_line_interface_bin_name: "arduino-cli-wrapper"
coveralls: "no"
distribution_name: "arduino-cli-cmake-wrapper"
email: "[email protected]"
formatter_quote_style: "single"
full_name: "Sterling Lewis Peet"
function_name: "compute"
github_actions: "yes"
github_actions_osx: "yes"
github_actions_windows: "yes"
license: "Apache Software License 2.0"
module_name: "core"
package_name: "arduino_cli_cmake_wrapper"
pre_commit: "yes"
project_name: "Arduino CLI Wrapper for CMake"
project_short_description: "Arduino Cmake toolchain leveraging ``arduino-cli`` via python wrapper script"
pypi_badge: "yes"
pypi_disable_upload: "no"
release_date: "today"
repo_hosting: "github.com"
repo_hosting_domain: "github.com"
repo_main_branch: "main"
repo_name: "arduino-cli-cmake-wrapper"
repo_username: "SterlingPeet"
scrutinizer: "no"
setup_py_uses_setuptools_scm: "yes"
sphinx_docs: "yes"
sphinx_docs_hosting: "https://arduino-cli-cmake-wrapper.readthedocs.io/"
sphinx_doctest: "no"
sphinx_theme: "sphinx-rtd-theme"
test_matrix_separate_coverage: "no"
tests_inside_package: "no"
version: "0.0.0"
version_manager: "bump2version"
website: "https://github.com/SterlingPeet"
year_from: "2022"
year_to: "2024"
54 changes: 45 additions & 9 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: ${{ matrix.name }}
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
- name: py38 (macos)
python: '3.8'
toxpython: python3.8
python_arch: x64
python_arch: arm64
tox_env: py38
os: macos-latest
- name: py39 (ubuntu)
Expand All @@ -52,7 +52,7 @@ jobs:
- name: py39 (macos)
python: '3.9'
toxpython: python3.9
python_arch: x64
python_arch: arm64
tox_env: py39
os: macos-latest
- name: py310 (ubuntu)
Expand All @@ -70,7 +70,7 @@ jobs:
- name: py310 (macos)
python: '3.10'
toxpython: python3.10
python_arch: x64
python_arch: arm64
tox_env: py310
os: macos-latest
- name: py311 (ubuntu)
Expand All @@ -88,9 +88,27 @@ jobs:
- name: py311 (macos)
python: '3.11'
toxpython: python3.11
python_arch: x64
python_arch: arm64
tox_env: py311
os: macos-latest
- name: py312 (ubuntu)
python: '3.12'
toxpython: python3.12
python_arch: x64
tox_env: py312
os: ubuntu-latest
- name: py312 (windows)
python: '3.12'
toxpython: python3.12
python_arch: x64
tox_env: py312
os: windows-latest
- name: py312 (macos)
python: '3.12'
toxpython: python3.12
python_arch: arm64
tox_env: py312
os: macos-latest
- name: pypy38 (ubuntu)
python: pypy-3.8
toxpython: pypy3.8
Expand All @@ -106,7 +124,7 @@ jobs:
- name: pypy38 (macos)
python: pypy-3.8
toxpython: pypy3.8
python_arch: x64
python_arch: arm64
tox_env: pypy38
os: macos-latest
- name: pypy39 (ubuntu)
Expand All @@ -124,14 +142,32 @@ jobs:
- name: pypy39 (macos)
python: pypy-3.9
toxpython: pypy3.9
python_arch: x64
python_arch: arm64
tox_env: pypy39
os: macos-latest
- name: pypy310 (ubuntu)
python: pypy-3.10
toxpython: pypy3.10
python_arch: x64
tox_env: pypy310
os: ubuntu-latest
- name: pypy310 (windows)
python: pypy-3.10
toxpython: pypy3.10
python_arch: x64
tox_env: pypy310
os: windows-latest
- name: pypy310 (macos)
python: pypy-3.10
toxpython: pypy3.10
python_arch: arm64
tox_env: pypy310
os: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.python_arch }}
Expand Down
61 changes: 32 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,53 @@
*.py[cod]
__pycache__

# Temp files
.*.sw[po]
*~
*.bak
.DS_Store

# C extensions
*.so

# Packages
# Build and package files
*.egg
*.egg-info
dist
build
eggs
.bootstrap
.build
.cache
.eggs
parts
.env
.installed.cfg
.ve
bin
var
sdist
wheelhouse
build
develop-eggs
.installed.cfg
dist
eggs
lib
lib64
venv*/
pyvenv*/
parts
pip-wheel-metadata/
pyvenv*/
sdist
var
venv*/
wheelhouse

# Installer logs
pip-log.txt

# Unit test / coverage reports
.benchmarks
.coverage
.tox
.coverage.*
.pytest
.pytest_cache/
nosetests.xml
.tox
coverage.xml
htmlcov
nosetests.xml

# Translations
*.mo
Expand All @@ -43,12 +56,12 @@ htmlcov
.mr.developer.cfg

# IDE project files
*.iml
*.komodoproject
.idea
.project
.pydevproject
.idea
.vscode
*.iml
*.komodoproject

# Complexity
output/*.html
Expand All @@ -57,18 +70,8 @@ output/*/index.html
# Sphinx
docs/_build

.DS_Store
*~
.*.sw[po]
.build
.ve
.env
.cache
.pytest
.benchmarks
.bootstrap
.appveyor.token
*.bak

# Mypy Cache
.mypy_cache/

# Generated by setuptools-scm
src/*/_version.py
Loading

0 comments on commit 8980f5b

Please sign in to comment.