Skip to content

Commit

Permalink
maint: migrate to src-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
JSS95 committed Sep 22, 2023
1 parent d4d90cc commit 36aae6a
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 20 deletions.
33 changes: 13 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,24 @@ 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 .[test]
pip install -r requirements.txt
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 +62,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 @@ -54,3 +56,6 @@ full = ["civiq6[test,doc]"]

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

[tool.setuptools.packages.find]
where = ["src"]
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 36aae6a

Please sign in to comment.