Skip to content

Commit 33b516c

Browse files
authored
Merge pull request #1202 from wright-group/ddk-meta
meta maintenance
2 parents 9590111 + e27f154 commit 33b516c

8 files changed

Lines changed: 77 additions & 78 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
1919

2020
### Changed
2121
- default colorbar is sampled at 4096 points (was 256)
22+
- packaging now done through pyproject.toml
2223

2324
## [3.5.5]
2425

CONTRIBUTORS

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ http://wright.tools/en/stable/contributing.html
33

44
Maintainers (alphabetical by last name)
55
Daniel Kohler (@ddkohler)
6-
Darien Morrow <darienmorrow@gmail.com> (@darienmorrow)
7-
Kyle Sunden <sunden@wisc.edu> (@ksunden)
8-
Blaise Thompson <blaise@untzag.com> (@untzag)
96

107
Contributors (alphabetical by last name)
118
Kyle Czech (@kjczech)
9+
Ryan McDonnell (@rpm4)
10+
Kent Meyer (@kameyer226)
11+
Darien Morrow <darienmorrow@gmail.com> (@darienmorrow)
1212
Nathan Neff-Mallon (@neffmallon)
1313
Thomas Parker (@parkertomf)
14+
Kyle Sunden (@ksunden)
1415
Rachel Swedin (@RachelSwedin)
16+
Blaise Thompson <blaise@untzag.com> (@untzag)

WrightTools/data/_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
signed=None,
3434
label=None,
3535
label_seed=None,
36-
**kwargs
36+
**kwargs,
3737
):
3838
"""Construct a channel object.
3939

WrightTools/diagrams/delay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def label_sectors(
1818
cs=None,
1919
c_zlevel=2,
2020
c_alpha=0.5,
21-
fontsize=40
21+
fontsize=40,
2222
):
2323
"""Label the six time-orderings in a three-pulse experiment.
2424

pyproject.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[build-system]
2+
requires = ["setuptools >= 77.0.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "WrightTools"
7+
authors =[{name="WrightTools Developers"}]
8+
description="Tools for loading, processing, and plotting multidimensional spectroscopy data."
9+
readme = "README.rst"
10+
requires-python = ">=3.7"
11+
dynamic = ["version"]
12+
dependencies = [
13+
"h5py",
14+
"imageio>=2.28.0",
15+
"matplotlib>=3.4.0",
16+
"numexpr",
17+
"numpy>=1.15.0",
18+
"pint",
19+
"python-dateutil",
20+
"scipy",
21+
"click",
22+
"tidy_headers>=1.0.4",
23+
"rich",
24+
]
25+
classifiers = [
26+
"Development Status :: 5 - Production/Stable",
27+
"Intended Audience :: Science/Research",
28+
"Framework :: Matplotlib",
29+
"Natural Language :: English",
30+
"Programming Language :: Python :: 3",
31+
"Programming Language :: Python :: 3.11",
32+
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
34+
"Topic :: Scientific/Engineering",
35+
]
36+
keywords = ["spectroscopy", "science", "multidimensional", "visualization"]
37+
license="MIT"
38+
license-files = ["LICEN[CS]E*"]
39+
40+
[project.optional-dependencies]
41+
docs = [
42+
"sphinx<8.0",
43+
"sphinx-gallery==0.8.2",
44+
"sphinx-rtd-theme"
45+
]
46+
dev = [
47+
"black",
48+
"pre-commit",
49+
"pydocstyle",
50+
"pytest",
51+
"pytest-cov",
52+
"databroker>=1.2",
53+
"msgpack",
54+
"sphinx<8.0",
55+
"sphinx-gallery==0.8.2",
56+
"sphinx-rtd-theme"
57+
]
58+
59+
[project.urls]
60+
Homepage = "https://github.com/wright-group/WrightTools"
61+
Documentation = "https://wright.tools"
62+
Repository = "https://github.com/wright-group/WrightTools.git"
63+
Issues = "https://github.com/wright-group/WrightTools/issues"
64+
Changelog = "https://github.com/wright-group/WrightTools/blob/master/CHANGELOG.md"
65+
66+
[project.scripts]
67+
wt5 = "WrightTools.cli._wt5:cli"
68+
wt-convert = "WrightTools.cli._units:cli"

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ ignore = D105, E203, W503
2020
convention = numpy
2121
add-ignore = D105
2222

23-
[metadata]
24-
description_file = README.rst
25-
license_file = LICENSE.txt
26-
2723
[tool:pytest]
2824
addopts = --durations=10 --cov=WrightTools --verbose --cov-report term:skip-covered
2925
python_files = tests/*.py

setup.py

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
#! /usr/bin/env python3
22

3-
import os
4-
from setuptools import setup, find_packages
5-
6-
7-
here = os.path.abspath(os.path.dirname(__file__))
8-
93

10-
def read(fname):
11-
with open(os.path.join(here, fname)) as f:
12-
return f.read()
4+
from setuptools import setup, find_packages
135

146

157
extra_files = {
@@ -25,67 +17,7 @@ def read(fname):
2517
]
2618
}
2719

28-
with open(os.path.join(here, "WrightTools", "VERSION")) as version_file:
29-
version = version_file.read().strip()
30-
31-
docs_require = ["sphinx<8.0", "sphinx-gallery==0.8.2", "sphinx-rtd-theme"]
32-
3320
setup(
34-
name="WrightTools",
3521
packages=find_packages(exclude=("tests", "tests.*")),
3622
package_data=extra_files,
37-
python_requires=">=3.7",
38-
install_requires=[
39-
"h5py",
40-
"imageio>=2.28.0",
41-
"matplotlib>=3.4.0",
42-
"numexpr",
43-
"numpy>=1.15.0",
44-
"pint",
45-
"python-dateutil",
46-
"scipy",
47-
"click",
48-
"tidy_headers>=1.0.4",
49-
"rich",
50-
],
51-
extras_require={
52-
"docs": docs_require,
53-
"dev": [
54-
"black",
55-
"pre-commit",
56-
"pydocstyle",
57-
"pytest",
58-
"pytest-cov",
59-
"databroker>=1.2",
60-
"msgpack",
61-
]
62-
+ docs_require,
63-
},
64-
version=version,
65-
description="Tools for loading, processing, and plotting multidimensional spectroscopy data.",
66-
description_content_type="text/plain",
67-
long_description=read("README.rst"),
68-
long_description_content_type="text/x-rst",
69-
author="WrightTools Developers",
70-
license="MIT",
71-
url="http://wright.tools",
72-
keywords="spectroscopy science multidimensional visualization",
73-
entry_points={
74-
"console_scripts": [
75-
"wt5=WrightTools.cli._wt5:cli",
76-
"wt-convert=WrightTools.cli._units:cli",
77-
]
78-
},
79-
classifiers=[
80-
"Development Status :: 5 - Production/Stable",
81-
"Intended Audience :: Science/Research",
82-
"License :: OSI Approved :: MIT License",
83-
"Framework :: Matplotlib",
84-
"Natural Language :: English",
85-
"Programming Language :: Python :: 3",
86-
"Programming Language :: Python :: 3.11",
87-
"Programming Language :: Python :: 3.12",
88-
"Programming Language :: Python :: 3.13",
89-
"Topic :: Scientific/Engineering",
90-
],
9123
)

tests/data/convert_data.py

100755100644
File mode changed.

0 commit comments

Comments
 (0)