File tree 3 files changed +25
-22
lines changed
3 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,13 @@ jobs:
31
31
include : ${{ fromJson(needs.prepare.outputs.matrix) }}
32
32
name : " Python ${{ matrix.python-version }} + Django ${{ matrix.django-version }}"
33
33
runs-on : ubuntu-latest
34
- env :
35
- POETRY_VIRTUALENVS_CREATE : false
36
34
steps :
37
- - uses : actions/checkout@v3
38
- - uses : actions/setup-python@v4
35
+ - uses : actions/checkout@v4
36
+ - uses : actions/setup-python@v5
39
37
with :
40
38
python-version : ${{ matrix.python-version }}
41
- - run : pip install poetry
42
- - run : poetry install
43
- - run : poetry build --format wheel
39
+ - run : pip install -e '.[build,dev]'
40
+ - run : python -m build
44
41
- name : Make sure tests use dist instead of source
45
42
run : |
46
43
rm -rf django_object_actions
@@ -51,11 +48,10 @@ jobs:
51
48
lint :
52
49
runs-on : ubuntu-latest
53
50
steps :
54
- - uses : actions/checkout@v3
51
+ - uses : actions/checkout@v4
55
52
- name : Set up Python
56
- uses : actions/setup-python@v4
53
+ uses : actions/setup-python@v5
57
54
with :
58
- python-version : " 3.12"
59
- - run : pip install poetry
60
- - run : poetry install --with=dev
55
+ python-version : " 3.13"
56
+ - run : pip install -e '.[dev]'
61
57
- run : make lint
Original file line number Diff line number Diff line change @@ -24,23 +24,23 @@ clean: ## Remove generated files
24
24
find . -type d -name " __pycache__" -exec rm -rf {} \; || true
25
25
26
26
install : # # Install development dependencies
27
- poetry install
27
+ pip install -e ' .[build,dev] '
28
28
pip install Django
29
29
30
30
lint : # # Check the project for lint errors
31
- poetry run ruff check .
32
- poetry run ruff format --diff .
31
+ ruff check .
32
+ ruff format --diff .
33
33
34
34
tdd : # # Run tests with a file watcher
35
- PYTHONPATH=. nodemon --ext py -x sh -c " poetry run python -W ignore::RuntimeWarning $( MANAGE) test --failfast django_object_actions || true"
35
+ PYTHONPATH=. nodemon --ext py -x sh -c " python -W ignore::RuntimeWarning $( MANAGE) test --failfast django_object_actions || true"
36
36
37
37
test : # # Run test suite
38
- PYTHONPATH=. poetry run python -W ignore::RuntimeWarning $(MANAGE ) test django_object_actions
38
+ PYTHONPATH=. python -W ignore::RuntimeWarning $(MANAGE ) test django_object_actions
39
39
40
40
coverage : # # Run and then display coverage report
41
- poetry run coverage erase
42
- PYTHONPATH=. poetry run coverage run $(MANAGE ) test django_object_actions
43
- poetry run coverage report --show-missing
41
+ coverage erase
42
+ PYTHONPATH=. coverage run $(MANAGE ) test django_object_actions
43
+ coverage report --show-missing
44
44
45
45
resetdb : # # Delete and then recreate the dev sqlite database
46
46
python $(MANAGE ) reset_db --router=default --noinput
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools" , " wheel" ]
3
+ build-backend = " setuptools.build_meta"
4
+
1
5
[project ]
2
6
name = " django-object-actions"
3
7
version = " 4.3.0"
4
8
description = " A Django app for adding object tools for models in the admin"
5
9
authors = [{ name = " crccheck" , email = " c@crccheck.com" }]
6
10
license = { text = " Apache-2.0" }
7
11
readme = " README.md"
8
- # repository = "https://github.com/crccheck/django-object-actions"
9
12
keywords = [" django" , " admin" ]
10
13
classifiers = [
11
14
" Development Status :: 5 - Production/Stable" ,
@@ -21,6 +24,9 @@ classifiers = [
21
24
" Programming Language :: Python :: 3.13" ,
22
25
]
23
26
27
+ [project .urls ]
28
+ "Homepage" = " https://github.com/crccheck/django-object-actions"
29
+
24
30
[project .optional-dependencies ]
25
31
dev = [
26
32
" coverage==7.*" ,
@@ -29,14 +35,15 @@ dev = [
29
35
" dj-database-url==2.*" ,
30
36
" ruff" ,
31
37
]
38
+ build = [" build" , " twine" ]
32
39
33
40
[tool .setuptools ]
34
41
packages = [" django_object_actions" ]
35
42
36
43
[tool .semantic_release ]
37
44
version_toml = [" pyproject.toml:project.version" ]
38
45
version_variables = [" django_object_actions/__init__.py:__version__" ]
39
- build_command = " pip build"
46
+ build_command = " python -m build"
40
47
41
48
[tool .coverage .run ]
42
49
source = [" django_object_actions" ]
You can’t perform that action at this time.
0 commit comments