Skip to content

Commit

Permalink
Updates build system to use latest PEP recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
gadamc committed Feb 6, 2023
1 parent 8aec47b commit 9572889
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 47 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
src/qt3rfsynthcontrol.egg-info/*
build/*
dist/*
.idea*
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Helper code to control [Windfreak's SynthHD RF generator](https://windfreaktech.
## Installation

```
git clone https://github.com/gadamc/qt3RFSynthControl
cd qt3rfsynthcontrol
python -m pip install .
pip install qt3rfsynthcontrol
```

## Usage
Expand Down
57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "qt3rfsynthcontrol"
dynamic = ["version"] # version is defined in __init__.py

description = "A package for controlling the Windfreak SynthHD RF generator."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
keywords = ["qt3", "microwave", "electron spin control", "windfreak",
"synthHD", "rf generator", "rf synthesizer", "rf control", "rf"]

authors = [
{name = "G. Adam Cox", email = "gadamc@gmail.com" },
]

maintainers = [
{name = "G. Adam Cox", email = "gadamc@gmail.com" },
{name = "Maxwell Parsons", email = "mfpars@uw.edu " },
]

classifiers = [
"Development Status :: 5 - Production/Stable",

# Indicate who your project is intended for
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering",

# Pick your license as you wish
"License :: OSI Approved :: BSD License",

# Specify the Python versions you support here. In particular, ensure
# that you indicate you support Python 3. These classifiers are *not*
# checked by "pip install". See instead "python_requires" below.
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]

dependencies = [
"windfreak==0.3.0",
]

[project.urls]
"Homepage" = "https://github.com/qt3uw/qt3rfsynthcontrol"
"Source" = "https://github.com/qt3uw/qt3rfsynthcontrol"
"Bug Tracker" = "https://github.com/qt3uw/qt3rfsynthcontrol/issues"
"Changelog" = "https://github.com/qt3uw/qt3rfsynthcontrol/releases"

[tool.setuptools.dynamic]
version = {attr = "qt3rfsynthcontrol.__version__"}
42 changes: 0 additions & 42 deletions setup.py

This file was deleted.

3 changes: 2 additions & 1 deletion src/qt3rfsynthcontrol/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from .__version__ import __version__
from .device import QT3SynthHD, discover_devices

__version__ = '1.0.1.dev0'
1 change: 0 additions & 1 deletion src/qt3rfsynthcontrol/__version__.py

This file was deleted.

0 comments on commit 9572889

Please sign in to comment.