Skip to content

Commit

Permalink
Merge pull request #46 from JSS95/src-layout
Browse files Browse the repository at this point in the history
maint: migrate to src-layout
  • Loading branch information
JSS95 authored Sep 22, 2023
2 parents 7123013 + 90b251b commit dfb8c47
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 35 deletions.
8 changes: 8 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[flake8]
doctests = True
exclude =
doc/build,
# compatibility with black
max-line-length = 88
extend-ignore =
E203,
32 changes: 12 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:

- name: get repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4

- name: install dependencies
run: |
Expand All @@ -34,33 +34,23 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
qt: [PySide6, PyQt6]

steps:

- name: get repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: set up Python
uses: actions/setup-python@v2

- name: install qt
run: |
pip install ${{ matrix.qt }}
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: install package
run: |
pip install mypy .[test]
pip install mypy
- name: run mypy check
run: |
mypy civiq6
mypy doc/source --exclude doc/source/examples
mypy doc/source/examples/${{ matrix.qt }}
mypy src
doc:

Expand All @@ -71,10 +61,12 @@ jobs:
steps:

- name: get repo
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.11"

- name: install package
run: |
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "civiq6"
Expand All @@ -24,6 +25,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down Expand Up @@ -53,3 +55,6 @@ full = ["civiq6[test,doc]"]

[tool.setuptools.dynamic]
version = {attr = "civiq6.version.__version__"}

[tool.setuptools.packages.find]
where = ["src"]
15 changes: 0 additions & 15 deletions setup.cfg

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dfb8c47

Please sign in to comment.