Skip to content

Commit 45cb174

Browse files
authored
Merge pull request #75 from zoccoler/atomated_versions
Integrate setuptools_scm for version management
2 parents d16cecc + 5e65477 commit 45cb174

File tree

5 files changed

+75
-69
lines changed

5 files changed

+75
-69
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
matrix:
2525
platform: [ubuntu-latest, windows-latest, macos-latest]
2626
python-version: ['3.10', '3.11', '3.12', '3.13']
27+
exclude:
28+
- platform: windows-latest
29+
python-version: '3.13' # py313-windows: FAIL code 3221225477
2730

2831
steps:
2932
- uses: actions/checkout@v3

pyproject.toml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,73 @@
1+
[project]
2+
name = "biaplotter"
3+
dynamic = ["version"]
4+
description = "A base napari plotter widget for interactive plotting"
5+
readme = "README.md"
6+
requires-python = ">=3.10"
7+
license = { file = "LICENSE" }
8+
authors = [
9+
{ name = "Marcelo Leomil Zoccoler", email = "marzoccoler@gmail.com" }
10+
]
11+
classifiers = [
12+
"Development Status :: 2 - Pre-Alpha",
13+
"Framework :: napari",
14+
"Intended Audience :: Developers",
15+
"License :: OSI Approved :: BSD License",
16+
"Operating System :: OS Independent",
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3 :: Only",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
"Topic :: Scientific/Engineering :: Image Processing",
25+
"Topic :: Scientific/Engineering :: Visualization"
26+
]
27+
dependencies = [
28+
"numpy>=1.22.0,<2.0.0",
29+
"magicgui",
30+
"qtpy",
31+
"napari-matplotlib",
32+
"nap-plot-tools>=0.1.0"
33+
]
34+
35+
[project.optional-dependencies]
36+
testing = [
37+
"tox",
38+
"pytest",
39+
"pytest-cov",
40+
"pytest-qt",
41+
"napari",
42+
"pyqt5"
43+
]
44+
45+
[project.entry-points."napari.manifest"]
46+
biaplotter = "biaplotter:napari.yaml"
47+
48+
[project.urls]
49+
"Homepage" = "https://github.com/BiAPoL/biaplotter"
50+
"Bug Tracker" = "https://github.com/BiAPoL/biaplotter/issues"
51+
"Documentation" = "https://biapol-biaplotter.readthedocs.io/en/stable/"
52+
"Source Code" = "https://github.com/BiAPoL/biaplotter"
53+
"User Support" = "https://github.com/BiAPoL/biaplotter/issues"
54+
155
[build-system]
2-
requires = ["setuptools>=42.0.0", "wheel"]
56+
requires = ["setuptools>=42.0.0", "wheel", "setuptools_scm"]
357
build-backend = "setuptools.build_meta"
458

59+
[tool.setuptools]
60+
include-package-data = true
61+
62+
[tool.setuptools.packages.find]
63+
where = ["src"]
64+
65+
[tool.setuptools.package-data]
66+
"*" = ["*.yaml"]
567

68+
[tool.setuptools_scm]
69+
write_to = "src/biaplotter/_version.py"
70+
fallback_version = "0.0.1+nogit"
671

772
[tool.black]
873
line-length = 79

setup.cfg

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/biaplotter/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
__version__ = "0.4.1"
1+
try:
2+
from ._version import version as __version__
3+
except ImportError:
4+
__version__ = "unknown"
5+
26
from .artists import Histogram2D, Scatter
37
from .colormap import BiaColormap
48
from .plotter import CanvasWidget

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ passenv =
3131
extras =
3232
testing
3333
commands = pytest -v --color=yes --cov=biaplotter --cov-report=xml
34+
allowlist_externals = pytest

0 commit comments

Comments
 (0)