Skip to content

Commit 677c5b0

Browse files
alexrashedthrau
andauthored
update dependencies, migrate build-backend to hatchling (#29)
Co-authored-by: Thomas Rausch <thomas@thrau.at>
1 parent 466b2f7 commit 677c5b0

File tree

6 files changed

+53
-71
lines changed

6 files changed

+53
-71
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
19+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v3

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VENV_ACTIVATE = . $(VENV_DIR)/bin/activate
66

77
venv: $(VENV_DIR)/bin/activate
88

9-
$(VENV_DIR)/bin/activate: setup.cfg
9+
$(VENV_DIR)/bin/activate: pyproject.toml
1010
test -d $(VENV_DIR) || $(VENV_BIN) $(VENV_DIR)
1111
$(VENV_ACTIVATE); pip install -e ".[dev]"
1212
touch $(VENV_DIR)/bin/activate
@@ -23,17 +23,14 @@ clean-dist: clean
2323
format:
2424
$(VENV_ACTIVATE); python -m isort .; python -m black .
2525

26-
build: venv
27-
$(VENV_ACTIVATE); python setup.py build
28-
2926
test: venv
3027
$(VENV_ACTIVATE); python -m pytest
3128

3229
dist: venv
33-
$(VENV_ACTIVATE); python setup.py sdist bdist_wheel
30+
$(VENV_ACTIVATE); python -m build
3431

3532
install: venv
36-
$(VENV_ACTIVATE); python setup.py install
33+
$(VENV_ACTIVATE); pip install -e .
3734

3835
upload: venv test dist
3936
$(VENV_ACTIVATE); pip install --upgrade twine; twine upload dist/*

plux/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
name = "plux"
1919

20-
__version__ = "1.13.0"
20+
__version__ = "1.14.0"
2121

2222
__all__ = [
2323
"FunctionPlugin",

pyproject.toml

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,56 @@
1-
# plux project configuration
1+
[build-system]
2+
requires = ['hatchling']
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "plux"
7+
authors = [
8+
{ name = "Thomas Rausch", email = "info@localstack.cloud" }
9+
]
10+
description = "A dynamic code loading framework for building pluggable Python distributions"
11+
readme = "README.md"
12+
license = "Apache-2.0"
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"License :: OSI Approved :: Apache Software License",
16+
"Operating System :: OS Independent",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Topic :: Software Development :: Libraries",
23+
"Topic :: Utilities"
24+
]
25+
requires-python = ">=3.10"
26+
dynamic = ["version"]
27+
28+
[project.urls]
29+
Repository = "https://github.com/localstack/plux"
30+
31+
[project.optional-dependencies]
32+
dev = [
33+
"build",
34+
"setuptools",
35+
"pytest==8.4.1",
36+
"black==25.1.0",
37+
"isort==6.0.1",
38+
]
39+
40+
[project.entry-points."distutils.commands"]
41+
plugins = "plux.build.setuptools:plugins"
42+
43+
[project.entry-points."egg_info.writers"]
44+
# this is actually not a writer, it's a reader :-)
45+
"plux.json" = "plux.build.setuptools:load_plux_entrypoints"
46+
47+
[tool.hatch.version]
48+
path = "plux/__init__.py"
249

350
[tool.black]
451
line_length = 100
552
include = '((plugin)/.*\.py$|(plux)/.*\.py$|tests/.*\.py$)'
6-
#extend_exclude = '()'
753

854
[tool.isort]
955
profile = 'black'
10-
#extend_skip = []
1156
line_length = 100

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)