Skip to content

Commit

Permalink
Merge pull request #248 from jenshnielsen/upgrade_package
Browse files Browse the repository at this point in the history
Upgrade package infrastructure and drop 3.8 support.
  • Loading branch information
jenshnielsen authored Sep 5, 2023
2 parents e918f37 + 6d40993 commit e4207af
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
exclude:
- os: windows-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.11"
env:
DISPLAY: ':99.0'
OS: ${{ matrix.os }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]
exclude:
- os: windows-latest
python-version: "3.9"
- os: windows-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.11"
env:
DISPLAY: ':99.0'
OS: ${{ matrix.os }}
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
run: mypy qcodes_contrib_drivers
- name: Run tests
run: |
pytest --cov=qcodes_contrib_drivers --cov-report xml --cov-config=setup.cfg qcodes_contrib_drivers
pytest --cov=qcodes_contrib_drivers --cov-report xml --cov-config=pyproject.toml qcodes_contrib_drivers
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
Expand Down
26 changes: 23 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
[build-system]
requires = [
"setuptools >= 61.2",
"setuptools >= 68.1.2",
"versioningit >= 2.0.1"
]
build-backend = 'setuptools.build_meta'

[project]
name = "qcodes_contrib_drivers"
description = "User contributed drivers for QCoDeS"
classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Scientific/Engineering",]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",]
requires-python = ">=3.9"
dependencies = [ "qcodes>=0.37.0", "versioningit>=2.0.1", "packaging"]
dynamic = [ "version",]

Expand Down Expand Up @@ -68,6 +77,17 @@ module = [
]
ignore_missing_imports = true

[tool.setuptools]
zip-safe = false
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 Down
12 changes: 0 additions & 12 deletions setup.cfg

This file was deleted.

5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from versioningit import get_cmdclasses

# this file does not contain configuration
# std configuration as defined by pep621
# is in pyproject.toml
# and setuptools specific config in setup.cfg
# all config should be in pyproject.toml


if int(setuptools.__version__.split(".")[0]) < 61:
raise RuntimeError(
Expand Down

0 comments on commit e4207af

Please sign in to comment.