Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEP: drop undeclared runtime dependency on setuptools #45

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,24 @@ jobs:
- linux: codestyle

# Linux builds - test on all supported Matplotlib versions
- linux: py38-test-mpl33
- linux: py39-test-mpl32
- linux: py39-test-mpl34
- linux: py39-test-mpl35
- linux: py310-test-mpl36
- linux: py310-test-mpl37
- linux: py311-test-mpldev
- linux: py311-test-mpl38
- linux: py312-test-mpldev

# MacOS X and Windows builds - alternative Matplotlib versions
- windows: py38-test-mpl33
- windows: py39-test-mpl33
- macos: py39-test-mpl34
- windows: py39-test-mpl35
- macos: py310-test-mpl36
- windows: py310-test-mpl37
- windows: py311-test-mpldev
- windows: py312-test-mpldev

# Image tests
- linux: py311-test-mpl38-image
- linux: py312-test-mpl38-image

publish:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
Expand Down
9 changes: 4 additions & 5 deletions mpl_scatter_density/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from .scatter_density_artist import * # noqa
from .scatter_density_axes import * # noqa

from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution('mpl-scatter-density').version
except DistributionNotFound:
__version__ = 'undefined'
from importlib.metadata import version

__version__ = version("mpl-scatter-density")
del version
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ long_description = file: README.rst
[options]
zip_safe = True
packages = find:
python_requires = >=3.6
python_requires = >=3.9
setup_requires =
setuptools_scm
install_requires =
numpy
matplotlib>=3.0
fast-histogram>=0.3
importlib_metadata>=1.4 ; python_version < '3.8'

[options.extras_require]
test =
Expand Down
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{36,37,38,39,310,311}-test{,-image}
py{39,310,311,312}-test{,-image}
codestyle
requires =
setuptools >= 30.3.0
Expand All @@ -13,8 +13,6 @@ setenv =
!image: MPLFLAGS =
changedir = .tmp/{envname}
deps =
mpl30: matplotlib==3.0.*
mpl31: matplotlib==3.1.*
mpl32: matplotlib==3.2.*
mpl33: matplotlib==3.3.*
mpl34: matplotlib==3.4.*
Expand Down