Skip to content

Commit

Permalink
Merge pull request #290 from jenshnielsen/src_layout
Browse files Browse the repository at this point in the history
Switch to src based layout.
  • Loading branch information
astafan8 committed Jan 30, 2024
2 parents d653a9b + 0f82c53 commit 53af34f
Show file tree
Hide file tree
Showing 225 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
run: |
pip install .[test] -c requirements.txt
- name: Run Mypy
run: mypy qcodes_contrib_drivers
run: mypy src
- name: Run tests
run: |
pytest --cov=qcodes_contrib_drivers --cov-report xml --cov-config=pyproject.toml qcodes_contrib_drivers
pytest --cov=qcodes_contrib_drivers --cov-report xml --cov-config=pyproject.toml tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.5
with:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include src/qcodes_contrib_drivers/sims/*
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ clean:

# generate api docs for instruments automatically
genapi:
sphinx-apidoc -o _auto -d 10 ../qcodes_contrib_drivers \
../qcodes_contrib_drivers/drivers/Spectrum/pyspcm.py
sphinx-apidoc -o _auto -d 10 ../src/qcodes_contrib_drivers \
../src/qcodes_contrib_drivers/drivers/Spectrum/pyspcm.py
mkdir -p api/generated/
cp _auto/qcodes_contrib_drivers.drivers.* api/generated/

Expand Down
4 changes: 2 additions & 2 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if errorlevel 9009 (

REM generate api docs

sphinx-apidoc.exe -o _auto -d 10 ..\qcodes_contrib_drivers ^
..\qcodes_contrib_drivers\drivers\Spectrum\pyspcm.py
sphinx-apidoc.exe -o _auto -d 10 ..\src\qcodes_contrib_drivers ^
..\src\qcodes_contrib_drivers\drivers\Spectrum\pyspcm.py
mkdir api\generated\
copy _auto\qcodes_contrib_drivers.drivers.* api\generated\

Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ license-files = [
"LICENSE_TEKTRONIX_AWG520_KEITHLEY_2700",
"LICENSE",
]
include-package-data = false

[tool.setuptools.packages]
find = {namespaces = false}

[tool.versioningit]
default-version = "0.0"
Expand All @@ -111,5 +107,5 @@ method = "git"
match = ["v*"]

[tool.versioningit.onbuild]
source-file = "qcodes_contrib_drivers/_version.py"
source-file = "src/qcodes_contrib_drivers/_version.py"
build-file = "qcodes_contrib_drivers/_version.py"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def _get_version() -> str:
import qcodes_contrib_drivers

path = Path(qcodes_contrib_drivers.__file__).parent
return versioningit.get_version(project_dir=path.parent)
return versioningit.get_version(project_dir=path.parent.parent)


__version__ = _get_version()
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.
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.
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.
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 53af34f

Please sign in to comment.