Skip to content

Commit 34b6222

Browse files
committed
removed requirements txt files
1 parent 4017239 commit 34b6222

File tree

7 files changed

+46
-55
lines changed

7 files changed

+46
-55
lines changed

pyproject.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,47 @@ classifiers = [
3333
dynamic = [ "version" ]
3434

3535
dependencies = [ "django>=4.2" ]
36+
37+
optional-dependencies.documentation = [
38+
# MkDocs to build our documentation.
39+
"mkdocs==1.6",
40+
# pylinkvalidator to check for broken links in documentation.
41+
"pylinkvalidator==0.3",
42+
]
43+
optional-dependencies.optional = [
44+
# Optional packages which may be used with REST framework.
45+
"coreapi==2.3.1",
46+
"coreschema==0.0.4",
47+
"django-filter",
48+
"django-guardian>=2.4,<2.5",
49+
"inflection==0.5.1",
50+
"legacy-cgi; python_version>='3.13'",
51+
"markdown>=3.3.7",
52+
"psycopg[binary]>=3.1.8",
53+
"pygments~=2.17.0",
54+
"pyyaml>=5.3.1,<5.4",
55+
]
56+
optional-dependencies.packaging = [
57+
# Transifex client for managing translation resources.
58+
"transifex-client",
59+
# Twine for secured PyPI uploads.
60+
"twine>=3.4.2,<4.0.2",
61+
62+
# Wheel for PyPI installs.
63+
"wheel>=0.36.2,<0.40",
64+
65+
]
66+
optional-dependencies.testing = [
67+
# temporary pin of attrs
68+
"attrs==22.1",
69+
"importlib-metadata<5",
70+
71+
# Pytest for running the tests.
72+
"pytest>=7.0.1,<8",
73+
"pytest-cov>=4,<5",
74+
"pytest-django>=4.5.2,<5",
75+
"pytz",
76+
]
3677
urls.Changelog = "https://www.django-rest-framework.org/community/release-notes/"
3778
urls.Funding = "https://fund.django-rest-framework.org/topics/funding/"
3879
urls.Homepage = "https://www.django-rest-framework.org"

requirements.txt

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

requirements/requirements-documentation.txt

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

requirements/requirements-optionals.txt

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

requirements/requirements-packaging.txt

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

requirements/requirements-testing.txt

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

tox.ini

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,24 @@ deps =
2222
django52: Django>=5.2,<6.0
2323
django60: Django>=6.0,<6.1
2424
djangomain: https://github.com/django/django/archive/main.tar.gz
25-
-rrequirements/requirements-testing.txt
26-
-rrequirements/requirements-optionals.txt
25+
.[testing, optional]
2726

2827
[testenv:base]
2928
; Ensure optional dependencies are not required
3029
deps =
31-
django<6.1
32-
-rrequirements/requirements-testing.txt
30+
.[testing]
3331

3432
[testenv:dist]
3533
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
3634
deps =
37-
django<6.1
38-
-rrequirements/requirements-testing.txt
39-
-rrequirements/requirements-optionals.txt
35+
.[testing, optional]
4036

4137
[testenv:docs]
4238
skip_install = true
4339
commands = mkdocs build
4440
deps =
45-
-rrequirements/requirements-testing.txt
46-
-rrequirements/requirements-documentation.txt
41+
.[testing, optional]
42+
4743

4844
[testenv:py312-djangomain]
4945
ignore_outcome = true

0 commit comments

Comments
 (0)