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 6f21fb7 commit 41cd9dd
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 17 deletions.
File renamed without changes.
29 changes: 17 additions & 12 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 @@ -37,17 +37,20 @@ 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: |
pip install mypy .[test]
pip install mypy
- name: run mypy check
run: mypy dawiq
run: |
mypy src
unit-test:

Expand All @@ -61,7 +64,6 @@ jobs:

strategy:
fail-fast: false

matrix:
os : [ubuntu-latest, windows-latest, macos-latest]
python: ["3.9", "3.10", "3.11"]
Expand All @@ -75,10 +77,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
with:
python-version: ${{ matrix.python }}

Expand All @@ -91,7 +93,8 @@ jobs:
- name: install package
run: |
pip install .[test-headless]
pip install pytest-xvfb
pip install .[test]
- run: pytest

Expand All @@ -104,10 +107,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
Empty file removed dawiq/tests/__init__.py
Empty file.
8 changes: 4 additions & 4 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 = "dawiq"
Expand Down Expand Up @@ -41,10 +42,6 @@ test = [
"pytest",
"pytest-qt",
]
test-headless = [
"dawiq[test]",
"pytest-xvfb",
]
doc = [
"numpydoc",
"sphinx",
Expand All @@ -55,3 +52,6 @@ full = ["dawiq[test,doc]"]

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

[tool.setuptools.packages.find]
where = ["src"]
3 changes: 2 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[pytest]

testpaths =
dawiq
src
tests
doc/source

doctest_optionflags =
Expand Down
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.
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 41cd9dd

Please sign in to comment.