Oliver Sauder
10b25e7d63
Use final version of Python 3.13 ( #9556 )
...
Final version of Python 3.13 has been released and is now also available on GitHub actions.
2024-10-10 04:39:36 +06:00
Bruno Alla
b25028ac8f
Add support for Python 3.13 ( #9527 )
...
* Add support for Python 3.13
* Fix extracting tox env with -dev Python versions
* Fix view description inspection in Python 3.13
Python 3.13 introduced docstrings for None: https://github.com/python/cpython/pull/117813
In Python 3.12, this is an empty string:
```
➜ python3.12
Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d = None
>>> d.__doc__
>>>
```
In Python 3.13, it's no longer empty:
```
➜ python3.13
Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d = None
>>> d.__doc__
'The type of the None singleton.'
>>>
```
Adding a check in the inspector that get the view description out the view function docstring to catch this edge case.
2024-09-11 15:39:52 +06:00
Peter Thomassen
1f2daaf53c
Drop support for Django < 4.2 and Python < 3.8
...
Discussion: https://github.com/encode/django-rest-framework/discussions/8814#discussioncomment-9237791
2024-04-30 18:28:19 +02:00
Peter Thomassen
861b7ac42b
Adapt issue/PR template to better reflect contribution policy
2024-04-30 18:24:22 +02:00
dependabot[bot]
4c7c693f15
Bump the github-actions group with 1 update ( #9272 )
...
Bumps the github-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout ).
Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-06 16:06:24 +01:00
Christian Clauss
b7cccff943
Keep GitHub Actions up to date with GitHub's Dependabot ( #9237 )
...
* https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
* https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
2024-03-06 15:41:19 +01:00
Christian Clauss
6cbd4b7789
GitHub Actions: Upgrade pre-commit and drop the removed token ( #9267 )
...
* https://github.com/pre-commit/action/releases
* https://github.com/actions/checkout/releases
* https://github.com/actions/setup-python/releases
https://github.com/pre-commit/action#using-this-action-in-private-repositories explains why `token` was removed but is a bit difficult to understand.
Moving to running pre-commit on https://pre-commit.ci has proved to be the best solution on other projects.
2024-03-06 14:27:46 +01:00
KanchiMoe
3c9490be22
resolve deprecation warnings for setup-python ( #9266 )
2024-02-28 11:57:33 +01:00
Asif Saif Uddin
336e7addb6
added python 3.12 to CI ( #9157 )
...
* added python 3.12 to CI
* Update tox.ini
* Update tox.ini
* Update tox.ini
2024-02-20 14:12:07 +01:00
Asif Saif Uddin
4bbfa8d455
Updated Checkout action version & Ubuntu OS version ( #9097 )
...
* Updated Checkout action version & Ubuntu OS version
* Update .github/workflows/main.yml
2023-09-09 13:55:32 +06:00
Harald Nezbeda
40eccb0d6c
Fixes documentation link test ( #9076 )
2023-08-17 16:21:03 +06:00
Harald Nezbeda
a2430a8cce
Add docs validation to release process ( #6967 )
...
* Add ci stage to test for broken links in documentation
* Add docs validation to release process
* Update .github/workflows/main.yml
* Update .github/workflows/main.yml
---------
Co-authored-by: Ryan P Kilby <kilbyr@gmail.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2023-08-15 11:17:08 +06:00
Samiul Sk
8b7e6f2e34
Update pre-commit.yml ( #9012 )
2023-06-20 17:43:33 +06:00
Asif Saif Uddin
38a74b42da
Revert "test codecov gha ( #8946 )" ( #8947 )
...
This reverts commit 684522807f
.
2023-04-15 12:11:35 +06:00
Asif Saif Uddin
684522807f
test codecov gha ( #8946 )
2023-04-13 21:48:45 +06:00
Asif Saif Uddin
118543769f
upddate setup python action to v4 ( #8806 )
2023-01-03 17:41:40 +06:00
Adam Johnson
59ae95b22f
Upgrade to tox 4 ( #8795 )
2022-12-08 08:01:07 +00:00
Paolo Melchiorre
2a2b092864
Fix #8751 - Add support to Python 3.11 ( #8752 )
2022-11-21 11:47:21 +01:00
Tom Christie
df4d16d2f1
Add StaleBot ( #8423 )
2022-03-24 09:23:16 +00:00
Mariusz Felisiak
0b88583a10
Bumped versions in Github actions configuration to v3. ( #8414 )
2022-03-23 11:28:46 +00:00
Tom Christie
217b0bf3af
Add Python 3.10 to test matrix ( #8287 )
...
* Add Python 3.10 to test matrix
* Update README, docs homepage to properly reflect Python versions that we test against
2021-12-10 12:04:27 +00:00
Adam Johnson
010c8d4f08
Use tox-py in CI ( #7925 )
2021-04-16 17:59:27 +01:00
Adam Johnson
f628db383a
Fix GitHub Actions to run on 'master' branch ( #7926 )
...
The config I copied in #7903 was from a repo with the new name 'main', so tests have not been running on master since.
2021-04-16 17:23:18 +01:00
Adam Johnson
fd017d00f9
Move CI to GitHub Actions ( #7903 )
...
* Recreate all the jobs on GitHub Actions
* Upgrade to Ubuntu 20.04
* Upgrade base/docs/dist to Python 3.9
2021-04-06 18:34:18 +01:00
Adam Johnson
aa12a5f967
Lint with pre-commit ( #7900 )
...
Following [my comment here](https://github.com/encode/django-rest-framework/pull/7589#issuecomment-813301322 ) and [Django's own move to pre-commit](https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#pre-commit-checks ).
* Add pre-commit config file to run flake8 and isort.
* Add extra "common sense" hooks.
* Run pre-commit on GitHub actions using the [official action](https://github.com/pre-commit/action/ ). This is a good way to get up-and-running but it would be better if we activated [pre-commit.ci](https://pre-commit.ci/ ), which is faster and will auto-update the hooks for us going forwards.
* Remove `runtests.py` code for running linting tools.
* Remove `runtests.py --fast` flag, since that would now just run `pytest -q`, which can be done with `runtests.py -q` instead.
* Remove tox configuration and requirements files for linting.
* Update the contributing guide to mention setting up pre-commit.
2021-04-05 12:08:52 +01:00
Tom Christie
ee51145574
Update config.yml
2021-03-03 15:43:57 +00:00
Tom Christie
37b8d2018d
Create 1-issue.md
2021-03-03 15:42:38 +00:00
Tom Christie
db0bb5ef42
Update config.yml
2021-03-03 15:39:22 +00:00
Tom Christie
c9a00bdb2c
Update config.yml
2021-03-03 15:33:14 +00:00
Tom Christie
344235ab37
Create config.yml
2021-03-03 15:32:19 +00:00
Tom Christie
1deb8ae370
Update FUNDING.yml
2021-03-03 15:06:42 +00:00
Tom Christie
3135ae86c9
Create FUNDING.yml
2019-06-04 09:00:11 +01:00