Skip to content

Commit a2d8b8a

Browse files
authored
Merge pull request #250 from saxix/feature/pep621
pep 621
2 parents f3c5ac1 + b1dd950 commit a2d8b8a

File tree

16 files changed

+84
-162
lines changed

16 files changed

+84
-162
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ __pycache__
2020
.testmondata
2121
Pipfile.lock
2222
poetry.lock
23-
pyproject.toml
23+
!pyproject.toml
2424
.venv/
25+
pdm.lock

.pre-commit-config.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@ repos:
1212
entry: isort
1313
language: system
1414
types: [python]
15-
- id: check-manifest
16-
name: check-manifest
17-
entry: check-manifest
18-
language: system
19-
types: [python]
20-
files: '^$'
21-
always_run: true
2215

23-
- repo: git://github.com/pre-commit/pre-commit-hooks
16+
17+
- repo: https://github.com/pre-commit/pre-commit-hooks
2418
rev: v1.4.0
2519
hooks:
2620
- id: debug-statements

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.9"
11+
python: "3.10"
1212
# You can also specify other tool versions:
1313
# nodejs: "20"
1414
# rust: "1.70"

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-----------
33
* add support do Django 5.x
44
* drop support python 3.9
5+
* move to .pyproject.toml
56

67

78
Release 2.5

Pipfile

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

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
'django': ('http://django.readthedocs.org/en/latest/', None),
4646
'sphinx': ('http://sphinx.readthedocs.org/en/latest/', None),
4747
}
48-
extlinks = {'issue': ('https://github.com/saxix/django-concurrency/issues/%s', 'issue #'),
49-
'django_issue': ('https://code.djangoproject.com/ticket/%s', 'issue #'),
48+
extlinks = {'issue': ('https://github.com/saxix/django-concurrency/issues/%s', 'issue #%s'),
49+
'django_issue': ('https://code.djangoproject.com/ticket/%s', 'issue #%s'),
5050

5151
}
5252

@@ -81,7 +81,7 @@
8181
version = concurrency.VERSION
8282
# The full version, including alpha/beta/rc tags.
8383
release = concurrency.VERSION
84-
next_version = '1.5'
84+
next_version = '2.6'
8585

8686
# The language for content autogenerated by Sphinx. Refer to documentation
8787
# for a list of supported languages.
@@ -122,7 +122,7 @@
122122

123123
# The theme to use for HTML and HTML Help pages. See the documentation for
124124
# a list of builtin themes.
125-
html_theme = "default"
125+
# html_theme = "default"
126126
#
127127
# Theme options are theme-specific and customize the look and feel of a theme
128128
# further. For a list of options available for each theme, see the

docs/requirements.pip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx==3.5.2
1+
sphinx
22
django
33
sphinx_issues

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[project]
2+
name = "django-concurrency"
3+
version = "2.5"
4+
description = "Optimistic lock implementation for Django. Prevents users from doing concurrent editing"
5+
authors = [
6+
{name = "sax", email = "[email protected]"},
7+
]
8+
dependencies = []
9+
requires-python = ">=3.10"
10+
readme = "README.md"
11+
license = {text = "MIT"}
12+
13+
[tool.pdm]
14+
[[tool.pdm.source]]
15+
url = "https://pypi.org/simple"
16+
verify_ssl = true
17+
name = "pypi"
18+
19+
[tool.pdm.dev-dependencies]
20+
dev = [
21+
"black",
22+
"bump2version>=1.0.1",
23+
"check-manifest",
24+
"django",
25+
"django-reversion",
26+
"django-webtest",
27+
"flake8",
28+
"isort",
29+
"mock",
30+
"pre-commit",
31+
"psycopg2-binary",
32+
"pytest",
33+
"pytest-cov",
34+
"pytest-django",
35+
"pytest-echo",
36+
"sphinx",
37+
"sphinx-issues",
38+
"tox",
39+
"twine",
40+
]
41+
42+
[tool.isort]
43+
combine_as_imports = true
44+
default_section = "THIRDPARTY"
45+
include_trailing_comma = true
46+
known_tests = "pytest,unittest,factory"
47+
known_demo = "demo"
48+
known_django = "django"
49+
sections = "FUTURE,STDLIB,DJANGO,THIRDPARTY,TESTS,FIRSTPARTY,DEMO,LOCALFOLDER"
50+
known_first_party = "etools_validator"
51+
multi_line_output = 3
52+
line_length = 120
53+
balanced_wrapping = true
54+
order_by_type = false

setup.cfg

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,3 @@ max-complexity = 12
1717
max-line-length = 160
1818
exclude = .tox,migrations,.git,docs,diff_match_patch.py, deploy/**,settings
1919
ignore = E501,E401,W391,E128,E261,E731,W504
20-
21-
[aliases]
22-
test=pytest
23-
24-
[bdist_wheel]
25-
universal=1
26-
27-
[devpi:upload]
28-
formats = bdist_wheel,sdist.tgz

setup.py

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

0 commit comments

Comments
 (0)