Skip to content

Commit

Permalink
Merge pull request #1 from tlambert03/update-repo
Browse files Browse the repository at this point in the history
Update repo
  • Loading branch information
tlambert03 authored Apr 17, 2023
2 parents ecade9c + ee78bec commit d23a252
Show file tree
Hide file tree
Showing 17 changed files with 7,186 additions and 6,719 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "ci(dependabot):"
45 changes: 31 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,52 @@ on:
workflow_dispatch:

jobs:
check-manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pipx run check-manifest

test:
name: ${{ matrix.platform }} (${{ matrix.python-version }})
name: ${{ matrix.platform }} ${{ matrix.python-version }} ${{ matrix.backend }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
python-version: ["3.7", "3.11"]
platform: [ubuntu-latest, macos-latest, windows-latest]
backend: [pyqt5, pyside2]
backend: [pyqt5, pyside2, pyqt6, pyside6]
exclude:
- backend: pyside2 # this is a superqt issue
python-version: "3.11"
include:
- backend: pyside2
python-version: "3.10"
platform: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3

- uses: tlambert03/setup-qt-libs@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[testing]
pip install .[test]
pip install ${{ matrix.backend }}
- name: Test
uses: GabrielBB/xvfb-action@v1
uses: aganders3/headless-gui@v1.2
with:
run: python -m pytest

Expand All @@ -48,10 +66,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.x"

Expand All @@ -67,11 +85,10 @@ jobs:
python -m build
twine check dist/*
- name: publish
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
- name: 🚢 Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TWINE_API_KEY }}

- uses: softprops/action-gh-release@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ __pycache__/
# C extensions
*.so

.DS_Store

# Distribution / packaging
.Python
env/
Expand Down
44 changes: 21 additions & 23 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
ci:
autoupdate_schedule: monthly
autofix_commit_msg: "style(pre-commit.ci): auto fixes [...]"
autoupdate_commit_msg: "ci(pre-commit.ci): autoupdate"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.12.2
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
- id: validate-pyproject

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports"]
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
hooks:
- id: isort
- id: ruff
args: [--fix]

- repo: https://github.com/psf/black
rev: 21.5b2
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
files: "^src/"
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# fonticon-materialdesignicons6

[![License](https://img.shields.io/pypi/l/fonticon-materialdesignicons6.svg?color=green)](https://github.com/tlambert03/fonticon-materialdesignicons6/raw/master/LICENSE)
[![License](https://img.shields.io/pypi/l/fonticon-materialdesignicons6.svg?color=green)](https://github.com/pyapp-kit/fonticon-materialdesignicons6/raw/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/fonticon-materialdesignicons6.svg?color=green)](https://pypi.org/project/fonticon-materialdesignicons6)
[![Python Version](https://img.shields.io/pypi/pyversions/fonticon-materialdesignicons6.svg?color=green)](https://python.org)

[Material Design Icons](https://github.com/Templarian/MaterialDesign-Webfont) extension for [superqt font icons](https://pyapp-kit.github.io/superqt/utilities/fonticon/)

Material Design Icons extension for superqt font icons

https://github.com/templarian/MaterialDesign
<https://github.com/templarian/MaterialDesign>

```sh
pip install superqt fonticon-materialdesignicons6
Expand All @@ -28,3 +27,8 @@ btn2.show()

app.exec_()
```

### Dev note

To update this package for new fonticon releases, update the `VERSION = ...` string
in `scripts/bundle.py`, and rerun `python scripts/bundle.py`.
4 changes: 0 additions & 4 deletions fonticon_mdi6/__init__.py

This file was deleted.

Loading

0 comments on commit d23a252

Please sign in to comment.