python-gitea 0.5.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. python_gitea-0.7.0/.coderabbit.yaml +3 -0
  2. python_gitea-0.7.0/.github/ISSUE_TEMPLATE/bug-report.md +56 -0
  3. python_gitea-0.7.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  4. python_gitea-0.7.0/.github/ISSUE_TEMPLATE/feature-request.md +46 -0
  5. python_gitea-0.7.0/.github/pull_request_template.md +40 -0
  6. python_gitea-0.7.0/.github/workflows/ci.yml +53 -0
  7. python_gitea-0.7.0/.github/workflows/codeql.yml +34 -0
  8. python_gitea-0.7.0/.github/workflows/documentation.yml +45 -0
  9. python_gitea-0.7.0/.github/workflows/draft_release.yml +50 -0
  10. python_gitea-0.7.0/.github/workflows/publish.yml +69 -0
  11. python_gitea-0.7.0/.github/workflows/publish_testpypi.yml +87 -0
  12. python_gitea-0.7.0/.github/workflows/release.yml +58 -0
  13. python_gitea-0.7.0/.github/workflows/scheduled_release.yml +177 -0
  14. python_gitea-0.7.0/.github/workflows/semantic_pull_request.yml +20 -0
  15. python_gitea-0.7.0/.github/workflows/support_floor_update.yml +64 -0
  16. {python_gitea-0.5.0 → python_gitea-0.7.0}/.gitignore +0 -1
  17. {python_gitea-0.5.0 → python_gitea-0.7.0}/.markdownlint.yaml +13 -15
  18. python_gitea-0.7.0/.pre-commit-config.yaml +63 -0
  19. python_gitea-0.7.0/.prettierrc +7 -0
  20. python_gitea-0.7.0/.typos.toml +20 -0
  21. python_gitea-0.7.0/CITATION.cff +12 -0
  22. {python_gitea-0.5.0 → python_gitea-0.7.0}/CODE_OF_CONDUCT.md +4 -5
  23. {python_gitea-0.5.0 → python_gitea-0.7.0}/CONTRIBUTING.md +25 -25
  24. {python_gitea-0.5.0 → python_gitea-0.7.0}/PKG-INFO +39 -57
  25. {python_gitea-0.5.0 → python_gitea-0.7.0}/README.md +29 -19
  26. {python_gitea-0.5.0 → python_gitea-0.7.0}/SECURITY.md +6 -6
  27. {python_gitea-0.5.0 → python_gitea-0.7.0}/SUPPORT.md +13 -9
  28. {python_gitea-0.5.0 → python_gitea-0.7.0}/cliff.toml +22 -22
  29. {python_gitea-0.5.0 → python_gitea-0.7.0}/docs/dev/troubleshooting.md +4 -2
  30. {python_gitea-0.5.0 → python_gitea-0.7.0}/docs/index.md +4 -2
  31. python_gitea-0.7.0/docs/javascripts/mathjax.js +12 -0
  32. {python_gitea-0.5.0 → python_gitea-0.7.0}/docs/style/api.css +6 -6
  33. {python_gitea-0.5.0 → python_gitea-0.7.0}/docs/user_guide/installation.md +6 -3
  34. python_gitea-0.7.0/mkdocs.yml +140 -0
  35. python_gitea-0.7.0/pyproject.toml +180 -0
  36. python_gitea-0.7.0/renovate.json +88 -0
  37. python_gitea-0.7.0/scripts/release_version.py +150 -0
  38. python_gitea-0.7.0/src/gitea/cli/comment/add.py +79 -0
  39. python_gitea-0.7.0/src/gitea/cli/comment/delete.py +76 -0
  40. python_gitea-0.7.0/src/gitea/cli/comment/edit.py +79 -0
  41. python_gitea-0.7.0/src/gitea/cli/comment/list.py +88 -0
  42. python_gitea-0.7.0/src/gitea/cli/comment/main.py +27 -0
  43. python_gitea-0.7.0/src/gitea/cli/config/__init__.py +1 -0
  44. python_gitea-0.7.0/src/gitea/cli/config/add.py +48 -0
  45. python_gitea-0.7.0/src/gitea/cli/config/delete.py +50 -0
  46. python_gitea-0.7.0/src/gitea/cli/config/list.py +40 -0
  47. python_gitea-0.7.0/src/gitea/cli/config/main.py +27 -0
  48. python_gitea-0.7.0/src/gitea/cli/config/update.py +59 -0
  49. python_gitea-0.7.0/src/gitea/cli/issue/__init__.py +1 -0
  50. python_gitea-0.7.0/src/gitea/cli/issue/create.py +125 -0
  51. python_gitea-0.7.0/src/gitea/cli/issue/dependency/__init__.py +1 -0
  52. python_gitea-0.7.0/src/gitea/cli/issue/dependency/add.py +94 -0
  53. python_gitea-0.7.0/src/gitea/cli/issue/dependency/list.py +88 -0
  54. python_gitea-0.7.0/src/gitea/cli/issue/dependency/main.py +25 -0
  55. python_gitea-0.7.0/src/gitea/cli/issue/dependency/remove.py +94 -0
  56. python_gitea-0.7.0/src/gitea/cli/issue/edit.py +131 -0
  57. python_gitea-0.7.0/src/gitea/cli/issue/get.py +76 -0
  58. python_gitea-0.7.0/src/gitea/cli/issue/list.py +148 -0
  59. python_gitea-0.7.0/src/gitea/cli/issue/main.py +29 -0
  60. python_gitea-0.7.0/src/gitea/cli/label/create.py +85 -0
  61. python_gitea-0.7.0/src/gitea/cli/label/delete.py +76 -0
  62. python_gitea-0.7.0/src/gitea/cli/label/list.py +85 -0
  63. python_gitea-0.7.0/src/gitea/cli/label/main.py +27 -0
  64. python_gitea-0.7.0/src/gitea/cli/label/update.py +94 -0
  65. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/cli/main.py +32 -36
  66. python_gitea-0.7.0/src/gitea/cli/milestone/create.py +95 -0
  67. python_gitea-0.7.0/src/gitea/cli/milestone/list.py +97 -0
  68. python_gitea-0.7.0/src/gitea/cli/milestone/main.py +23 -0
  69. python_gitea-0.7.0/src/gitea/cli/notification/__init__.py +1 -0
  70. python_gitea-0.7.0/src/gitea/cli/notification/list.py +138 -0
  71. python_gitea-0.7.0/src/gitea/cli/notification/main.py +23 -0
  72. python_gitea-0.7.0/src/gitea/cli/notification/read.py +117 -0
  73. python_gitea-0.7.0/src/gitea/cli/project/__init__.py +1 -0
  74. python_gitea-0.7.0/src/gitea/cli/project/column/__init__.py +1 -0
  75. python_gitea-0.7.0/src/gitea/cli/project/column/create.py +85 -0
  76. python_gitea-0.7.0/src/gitea/cli/project/column/list.py +88 -0
  77. python_gitea-0.7.0/src/gitea/cli/project/create.py +94 -0
  78. python_gitea-0.7.0/src/gitea/cli/project/delete.py +76 -0
  79. python_gitea-0.7.0/src/gitea/cli/project/edit.py +100 -0
  80. python_gitea-0.7.0/src/gitea/cli/project/get.py +76 -0
  81. python_gitea-0.7.0/src/gitea/cli/project/issue/__init__.py +1 -0
  82. python_gitea-0.7.0/src/gitea/cli/project/issue/add.py +82 -0
  83. python_gitea-0.7.0/src/gitea/cli/project/issue/move.py +88 -0
  84. python_gitea-0.7.0/src/gitea/cli/project/issue/remove.py +82 -0
  85. python_gitea-0.7.0/src/gitea/cli/project/list.py +91 -0
  86. python_gitea-0.7.0/src/gitea/cli/project/main.py +51 -0
  87. python_gitea-0.7.0/src/gitea/cli/pull_request/__init__.py +1 -0
  88. python_gitea-0.7.0/src/gitea/cli/pull_request/list.py +117 -0
  89. python_gitea-0.7.0/src/gitea/cli/pull_request/main.py +21 -0
  90. python_gitea-0.7.0/src/gitea/cli/user/get.py +70 -0
  91. python_gitea-0.7.0/src/gitea/cli/user/main.py +23 -0
  92. python_gitea-0.7.0/src/gitea/cli/user/update_settings.py +97 -0
  93. python_gitea-0.7.0/src/gitea/cli/utils/__init__.py +8 -0
  94. python_gitea-0.7.0/src/gitea/cli/utils/api.py +32 -0
  95. python_gitea-0.7.0/src/gitea/cli/utils/auth.py +67 -0
  96. python_gitea-0.7.0/src/gitea/cli/utils/convert.py +32 -0
  97. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/client/async_gitea.py +18 -5
  98. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/client/gitea.py +18 -5
  99. python_gitea-0.7.0/src/gitea/comment/__init__.py +8 -0
  100. python_gitea-0.7.0/src/gitea/comment/async_comment.py +251 -0
  101. python_gitea-0.7.0/src/gitea/comment/base.py +154 -0
  102. python_gitea-0.7.0/src/gitea/comment/comment.py +251 -0
  103. python_gitea-0.7.0/src/gitea/issue/async_issue.py +591 -0
  104. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/issue/base.py +185 -2
  105. python_gitea-0.7.0/src/gitea/issue/issue.py +591 -0
  106. python_gitea-0.7.0/src/gitea/label/__init__.py +8 -0
  107. python_gitea-0.7.0/src/gitea/label/async_label.py +263 -0
  108. python_gitea-0.7.0/src/gitea/label/base.py +171 -0
  109. python_gitea-0.7.0/src/gitea/label/label.py +263 -0
  110. python_gitea-0.7.0/src/gitea/milestone/__init__.py +8 -0
  111. python_gitea-0.7.0/src/gitea/milestone/async_milestone.py +160 -0
  112. python_gitea-0.7.0/src/gitea/milestone/base.py +109 -0
  113. python_gitea-0.7.0/src/gitea/milestone/milestone.py +160 -0
  114. python_gitea-0.7.0/src/gitea/notification/__init__.py +8 -0
  115. python_gitea-0.7.0/src/gitea/notification/async_notification.py +434 -0
  116. python_gitea-0.7.0/src/gitea/notification/base.py +253 -0
  117. python_gitea-0.7.0/src/gitea/notification/notification.py +434 -0
  118. python_gitea-0.7.0/src/gitea/project/__init__.py +8 -0
  119. python_gitea-0.7.0/src/gitea/project/async_project.py +1065 -0
  120. python_gitea-0.7.0/src/gitea/project/base.py +512 -0
  121. python_gitea-0.7.0/src/gitea/project/project.py +1065 -0
  122. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/pull_request/async_pull_request.py +4 -4
  123. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/pull_request/base.py +1 -1
  124. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/pull_request/pull_request.py +5 -8
  125. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/repository/async_repository.py +2 -2
  126. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/repository/repository.py +2 -2
  127. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/user/async_user.py +8 -8
  128. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/user/base.py +1 -1
  129. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/user/user.py +8 -8
  130. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/utils/response.py +19 -13
  131. python_gitea-0.7.0/tests/cli/comment/__init__.py +1 -0
  132. python_gitea-0.7.0/tests/cli/comment/test_cli_comment_add.py +48 -0
  133. python_gitea-0.7.0/tests/cli/comment/test_cli_comment_delete.py +47 -0
  134. python_gitea-0.7.0/tests/cli/comment/test_cli_comment_edit.py +48 -0
  135. python_gitea-0.7.0/tests/cli/comment/test_cli_comment_list.py +49 -0
  136. python_gitea-0.7.0/tests/cli/comment/test_cli_comment_main.py +12 -0
  137. python_gitea-0.7.0/tests/cli/config/__init__.py +1 -0
  138. python_gitea-0.7.0/tests/cli/config/test_cli_config_add.py +153 -0
  139. python_gitea-0.7.0/tests/cli/config/test_cli_config_delete.py +134 -0
  140. python_gitea-0.7.0/tests/cli/config/test_cli_config_list.py +115 -0
  141. python_gitea-0.7.0/tests/cli/config/test_cli_config_main.py +39 -0
  142. python_gitea-0.7.0/tests/cli/config/test_cli_config_update.py +180 -0
  143. python_gitea-0.7.0/tests/cli/issue/__init__.py +1 -0
  144. python_gitea-0.7.0/tests/cli/issue/dependency/__init__.py +1 -0
  145. python_gitea-0.7.0/tests/cli/issue/dependency/test_cli_issue_dependency.py +137 -0
  146. python_gitea-0.7.0/tests/cli/issue/test_cli_issue_create.py +70 -0
  147. python_gitea-0.7.0/tests/cli/issue/test_cli_issue_edit.py +74 -0
  148. python_gitea-0.7.0/tests/cli/issue/test_cli_issue_get.py +39 -0
  149. python_gitea-0.7.0/tests/cli/issue/test_cli_issue_list.py +78 -0
  150. python_gitea-0.7.0/tests/cli/issue/test_cli_issue_main.py +13 -0
  151. python_gitea-0.7.0/tests/cli/label/__init__.py +1 -0
  152. python_gitea-0.7.0/tests/cli/label/test_cli_label_create.py +51 -0
  153. python_gitea-0.7.0/tests/cli/label/test_cli_label_delete.py +47 -0
  154. python_gitea-0.7.0/tests/cli/label/test_cli_label_list.py +48 -0
  155. python_gitea-0.7.0/tests/cli/label/test_cli_label_main.py +12 -0
  156. python_gitea-0.7.0/tests/cli/label/test_cli_label_update.py +57 -0
  157. python_gitea-0.7.0/tests/cli/milestone/__init__.py +1 -0
  158. python_gitea-0.7.0/tests/cli/milestone/test_cli_milestone_create.py +60 -0
  159. python_gitea-0.7.0/tests/cli/milestone/test_cli_milestone_list.py +52 -0
  160. python_gitea-0.7.0/tests/cli/milestone/test_cli_milestone_main.py +10 -0
  161. python_gitea-0.7.0/tests/cli/notification/__init__.py +1 -0
  162. python_gitea-0.7.0/tests/cli/notification/test_cli_notification.py +242 -0
  163. python_gitea-0.7.0/tests/cli/project/__init__.py +1 -0
  164. python_gitea-0.7.0/tests/cli/project/test_cli_project.py +373 -0
  165. python_gitea-0.7.0/tests/cli/pull_request/__init__.py +1 -0
  166. python_gitea-0.7.0/tests/cli/pull_request/test_cli_pull_request_list.py +67 -0
  167. python_gitea-0.7.0/tests/cli/pull_request/test_cli_pull_request_main.py +9 -0
  168. python_gitea-0.7.0/tests/cli/test_cli_main.py +99 -0
  169. python_gitea-0.7.0/tests/cli/user/test_cli_user_get.py +67 -0
  170. python_gitea-0.7.0/tests/cli/user/test_cli_user_update_settings.py +92 -0
  171. python_gitea-0.7.0/tests/cli/utils/__init__.py +1 -0
  172. python_gitea-0.7.0/tests/cli/utils/test_cli_utils_api.py +46 -0
  173. python_gitea-0.7.0/tests/cli/utils/test_cli_utils_auth.py +235 -0
  174. python_gitea-0.7.0/tests/cli/utils/test_cli_utils_convert.py +36 -0
  175. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/client/test_client_gitea.py +42 -0
  176. python_gitea-0.7.0/tests/comment/__init__.py +1 -0
  177. python_gitea-0.7.0/tests/comment/test_comment_async_comment.py +81 -0
  178. python_gitea-0.7.0/tests/comment/test_comment_base.py +38 -0
  179. python_gitea-0.7.0/tests/comment/test_comment_comment.py +84 -0
  180. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/config/test_config_manager.py +2 -2
  181. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/config/test_config_model.py +1 -1
  182. python_gitea-0.7.0/tests/conftest.py +25 -0
  183. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/issue/test_issue_async_issue.py +28 -3
  184. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/issue/test_issue_base.py +47 -0
  185. python_gitea-0.7.0/tests/issue/test_issue_dependencies.py +157 -0
  186. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/issue/test_issue_issue.py +33 -3
  187. python_gitea-0.7.0/tests/label/__init__.py +1 -0
  188. python_gitea-0.7.0/tests/label/test_label_async_label.py +84 -0
  189. python_gitea-0.7.0/tests/label/test_label_base.py +59 -0
  190. python_gitea-0.7.0/tests/label/test_label_label.py +79 -0
  191. python_gitea-0.7.0/tests/milestone/__init__.py +1 -0
  192. python_gitea-0.7.0/tests/milestone/test_milestone_async_milestone.py +59 -0
  193. python_gitea-0.7.0/tests/milestone/test_milestone_base.py +42 -0
  194. python_gitea-0.7.0/tests/milestone/test_milestone_milestone.py +58 -0
  195. python_gitea-0.7.0/tests/notification/__init__.py +1 -0
  196. python_gitea-0.7.0/tests/notification/test_notification_base.py +56 -0
  197. python_gitea-0.7.0/tests/notification/test_notification_notification.py +237 -0
  198. python_gitea-0.7.0/tests/project/__init__.py +1 -0
  199. python_gitea-0.7.0/tests/project/test_project_base.py +105 -0
  200. python_gitea-0.7.0/tests/project/test_project_project.py +470 -0
  201. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/pull_request/test_pull_request_async_pull_request.py +3 -3
  202. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/pull_request/test_pull_request_pull_request.py +3 -3
  203. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/repository/test_repository_async_repository.py +9 -9
  204. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/repository/test_repository_repository.py +9 -9
  205. python_gitea-0.7.0/tests/smoke_test.py +34 -0
  206. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/test_main.py +3 -2
  207. python_gitea-0.7.0/tests/test_release_version.py +148 -0
  208. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/test_version.py +5 -10
  209. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/user/test_user_async_user.py +3 -3
  210. python_gitea-0.7.0/tests/user/test_user_base.py +107 -0
  211. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/user/test_user_user.py +3 -3
  212. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/utils/test_utils_log.py +1 -1
  213. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/utils/test_utils_response.py +32 -7
  214. python_gitea-0.7.0/uv.lock +2167 -0
  215. python_gitea-0.5.0/.github/dependabot.yml +0 -20
  216. python_gitea-0.5.0/.github/workflows/CI.yml +0 -62
  217. python_gitea-0.5.0/.github/workflows/create_tag.yml +0 -139
  218. python_gitea-0.5.0/.github/workflows/documentation.yml +0 -41
  219. python_gitea-0.5.0/.github/workflows/draft_release.yml +0 -50
  220. python_gitea-0.5.0/.github/workflows/publish.yml +0 -82
  221. python_gitea-0.5.0/.github/workflows/publish_testpypi.yml +0 -95
  222. python_gitea-0.5.0/.github/workflows/release.yml +0 -53
  223. python_gitea-0.5.0/.github/workflows/semantic_pull_request.yml +0 -20
  224. python_gitea-0.5.0/.ignore_words.txt +0 -78
  225. python_gitea-0.5.0/.pre-commit-config.yaml +0 -146
  226. python_gitea-0.5.0/CITATION.cff +0 -12
  227. python_gitea-0.5.0/commitlint.config.js +0 -30
  228. python_gitea-0.5.0/cspell.json +0 -30
  229. python_gitea-0.5.0/docs/javascripts/mathjax.js +0 -12
  230. python_gitea-0.5.0/mkdocs.yml +0 -132
  231. python_gitea-0.5.0/package.json +0 -6
  232. python_gitea-0.5.0/pyproject.toml +0 -196
  233. python_gitea-0.5.0/src/gitea/cli/user/delete_user_level_runner.py +0 -40
  234. python_gitea-0.5.0/src/gitea/cli/user/get_registration_token.py +0 -31
  235. python_gitea-0.5.0/src/gitea/cli/user/get_user.py +0 -42
  236. python_gitea-0.5.0/src/gitea/cli/user/get_user_level_runners.py +0 -34
  237. python_gitea-0.5.0/src/gitea/cli/user/get_workflow_jobs.py +0 -50
  238. python_gitea-0.5.0/src/gitea/cli/user/get_workflow_runs.py +0 -67
  239. python_gitea-0.5.0/src/gitea/cli/user/main.py +0 -34
  240. python_gitea-0.5.0/src/gitea/cli/utils.py +0 -46
  241. python_gitea-0.5.0/src/gitea/issue/async_issue.py +0 -277
  242. python_gitea-0.5.0/src/gitea/issue/issue.py +0 -277
  243. python_gitea-0.5.0/tests/cli/test_cli_main.py +0 -100
  244. python_gitea-0.5.0/tests/cli/test_cli_utils.py +0 -69
  245. python_gitea-0.5.0/tests/cli/user/test_cli_user_delete_user_level_runner.py +0 -75
  246. python_gitea-0.5.0/tests/cli/user/test_cli_user_get_registration_token.py +0 -75
  247. python_gitea-0.5.0/tests/cli/user/test_cli_user_get_user.py +0 -100
  248. python_gitea-0.5.0/tests/cli/user/test_cli_user_get_user_level_runners.py +0 -100
  249. python_gitea-0.5.0/tests/cli/user/test_cli_user_get_workflow_jobs.py +0 -102
  250. python_gitea-0.5.0/tests/cli/user/test_cli_user_get_workflow_runs.py +0 -123
  251. python_gitea-0.5.0/tests/cli/user/test_cli_user_main.py +0 -52
  252. python_gitea-0.5.0/tests/conftest.py +0 -16
  253. python_gitea-0.5.0/tests/user/test_user_base.py +0 -49
  254. {python_gitea-0.5.0 → python_gitea-0.7.0}/.pypirc +0 -0
  255. {python_gitea-0.5.0 → python_gitea-0.7.0}/LICENSE +0 -0
  256. {python_gitea-0.5.0 → python_gitea-0.7.0}/docs/gen_ref_pages.py +0 -0
  257. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/__init__.py +0 -0
  258. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/__main__.py +0 -0
  259. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/cli/__init__.py +0 -0
  260. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/cli/user/__init__.py +0 -0
  261. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/client/__init__.py +0 -0
  262. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/client/base.py +0 -0
  263. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/config/__init__.py +0 -0
  264. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/config/manager.py +0 -0
  265. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/config/model.py +0 -0
  266. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/issue/__init__.py +0 -0
  267. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/pull_request/__init__.py +0 -0
  268. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/repository/__init__.py +0 -0
  269. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/repository/base.py +0 -0
  270. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/resource/__init__.py +0 -0
  271. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/resource/async_resource.py +0 -0
  272. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/resource/resource.py +0 -0
  273. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/user/__init__.py +0 -0
  274. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/utils/__init__.py +0 -0
  275. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/utils/log.py +0 -0
  276. {python_gitea-0.5.0 → python_gitea-0.7.0}/src/gitea/version.py +0 -0
  277. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/__init__.py +0 -0
  278. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/cli/__init__.py +0 -0
  279. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/cli/user/__init__.py +0 -0
  280. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/client/__init__.py +0 -0
  281. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/client/test_client_async_gitea.py +0 -0
  282. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/client/test_client_base.py +0 -0
  283. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/config/__init__.py +0 -0
  284. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/issue/__init__.py +0 -0
  285. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/pull_request/__init__.py +0 -0
  286. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/pull_request/test_pull_request_base.py +0 -0
  287. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/repository/__init__.py +0 -0
  288. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/repository/test_repository_base.py +0 -0
  289. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/resource/__init__.py +0 -0
  290. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/resource/test_resource_async_resource.py +0 -0
  291. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/resource/test_resource_resource.py +0 -0
  292. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/test_import.py +0 -0
  293. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/user/__init__.py +0 -0
  294. {python_gitea-0.5.0 → python_gitea-0.7.0}/tests/utils/__init__.py +0 -0
@@ -0,0 +1,3 @@
1
+ reviews:
2
+ auto_review:
3
+ enabled: false
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: 🐛 Bug Report
3
+ about: Create a report to help us improve
4
+ title: '[BUG]: '
5
+ labels: bug
6
+ assignees: ''
7
+ ---
8
+
9
+ ## 📝 Description
10
+
11
+ A clear and concise description of what the bug is.
12
+
13
+ ## 🚀 Reproduction Steps
14
+
15
+ Steps to reproduce the behavior:
16
+
17
+ 1. '...'
18
+ 2. '...'
19
+ 3. '...'
20
+
21
+ ## 💻 Minimal Reproducible Example
22
+
23
+ Please provide a short snippet of Python code that demonstrates the issue. Use
24
+ code blocks for readability:
25
+
26
+ ```python
27
+ # Your code here
28
+ ```
29
+
30
+ ## 📋 Expected Behavior
31
+
32
+ A clear and concise description of what you expected to happen.
33
+
34
+ ## 💥 Actual Behavior / Traceback
35
+
36
+ If applicable, add the Python error traceback here **after redacting secrets**
37
+ (API keys, tokens, credentials, private URLs/paths, personal data). If this is a
38
+ potential security vulnerability, do **not** post it publicly; use the Security
39
+ reporting channel instead.
40
+
41
+ ```text
42
+ Traceback (most recent call last):
43
+ ...
44
+
45
+ ```
46
+
47
+ ## 🛠 Environment Information
48
+
49
+ - **Python Version:** (e.g., 3.13)
50
+ - **Package Version:** (e.g., 1.2.3)
51
+ - **Operating System:** (e.g., Windows 11, Ubuntu 22.04, macOS)
52
+ - **Relevant Dependencies:** (e.g., numpy, pandas version if applicable)
53
+
54
+ ## 📎 Additional Context
55
+
56
+ Add any other context about the problem here (e.g., screenshots, logs).
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: GitHub Community Support
4
+ url: https://github.com/isaac-cf-wong/python-gitea/discussions
5
+ about: Please ask and answer questions here.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: ✨ Feature Request
3
+ about: Suggest an idea or improvement for this package
4
+ title: '[FEATURE]: '
5
+ labels: enhancement
6
+ assignees: ''
7
+ ---
8
+
9
+ ## 🎯 Problem Statement
10
+
11
+ Is your feature request related to a problem? Please describe.
12
+
13
+ > _Ex: "I'm always frustrated when I have to manually loop over X to achieve
14
+ > Y..."_
15
+
16
+ ## 💡 Proposed Solution
17
+
18
+ A clear and concise description of what you want to happen. Describe the new
19
+ functionality or the change to existing behavior.
20
+
21
+ ## 💻 Proposed API / Usage Example
22
+
23
+ If applicable, show how you would imagine the Python code looking with this new
24
+ feature:
25
+
26
+ ```python
27
+ import gitea
28
+
29
+ # How you'd like to use the new feature
30
+ result = gitea.some_new_function(param="example")
31
+ ```
32
+
33
+ ## 🌈 Use Case & Benefits
34
+
35
+ Why is this feature important to you and other users? How does it improve the
36
+ package?
37
+
38
+ ## 🔄 Alternatives Considered
39
+
40
+ A clear and concise description of any alternative solutions or workarounds
41
+ you've considered (e.g., using a different library or a custom wrapper).
42
+
43
+ ## ⚠️ Additional Context
44
+
45
+ Add any other context, screenshots, or links to similar implementations in other
46
+ libraries here.
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: 🚀 Pull Request
3
+ about: Submit your changes for review
4
+ ---
5
+
6
+ ## 📝 Summary
7
+
8
+ Briefly describe the changes introduced by this PR. Mention any related issues
9
+ using keywords (e.g., `Closes #123`).
10
+
11
+ ## ✨ Type of Change
12
+
13
+ - [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
14
+ - [ ] ✨ New feature (non-breaking change which adds functionality)
15
+ - [ ] 💥 Breaking change (fix or feature that would cause existing functionality
16
+ to not work as expected)
17
+ - [ ] 📝 Documentation update
18
+ - [ ] 🎨 Refactoring (no functional changes, no API changes)
19
+
20
+ ## 🧪 How Has This Been Tested
21
+
22
+ Please describe the tests that you ran to verify your changes.
23
+
24
+ - [ ] **Unit Tests:** `uv run pytest tests/test_feature.py`
25
+ - [ ] **Manual Test:** (Describe steps)
26
+
27
+ ## 🏗️ Checklist
28
+
29
+ - [ ] My code follows the style guidelines of this project (PEP 8).
30
+ - [ ] I have performed a self-review of my own code.
31
+ - [ ] I have commented my code, particularly in hard-to-understand areas.
32
+ - [ ] I have made corresponding changes to the documentation.
33
+ - [ ] My changes generate no new warnings.
34
+ - [ ] I have added tests that prove my fix is effective or that my feature
35
+ works.
36
+
37
+ ## 📷 Screenshots (if applicable)
38
+
39
+ If this is a UI change or produces a specific output/graph, add screenshots
40
+ here.
@@ -0,0 +1,53 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ branches: [main]
7
+ workflow_dispatch:
8
+ workflow_call:
9
+
10
+ jobs:
11
+ test:
12
+ strategy:
13
+ matrix:
14
+ # Latest resolutions run everywhere; the SPEC 0 minimum
15
+ # (lowest-direct) runs on ubuntu with the oldest supported
16
+ # Python, since floor versions predate newer interpreters'
17
+ # wheels.
18
+ python-version: ['3.12', '3.13', '3.14']
19
+ os: [ubuntu-latest, windows-latest, macos-latest]
20
+ resolution: [highest]
21
+ include:
22
+ - os: ubuntu-latest
23
+ python-version: '3.12'
24
+ resolution: lowest-direct
25
+ runs-on: ${{ matrix.os }}
26
+ steps:
27
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
28
+
29
+ - name: Install uv
30
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
31
+ with:
32
+ python-version: ${{ matrix.python-version }}
33
+ enable-cache: 'true'
34
+
35
+ - name: Install dependencies
36
+ shell: bash
37
+ env:
38
+ RESOLUTION: ${{ matrix.resolution }}
39
+ run: |
40
+ if [ "$RESOLUTION" = "lowest-direct" ]; then
41
+ uv sync --group dev --upgrade --resolution lowest-direct
42
+ else
43
+ uv sync --group dev --upgrade
44
+ fi
45
+
46
+ - name: Run tests with pytest
47
+ run: uv run --no-sync pytest
48
+
49
+ - name: Upload coverage to Codecov
50
+ if: ${{ !cancelled() }}
51
+ uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5
52
+ with:
53
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,34 @@
1
+ name: 'CodeQL Advanced'
2
+
3
+ on:
4
+ push:
5
+ branches: ['main']
6
+ pull_request:
7
+ branches: ['main']
8
+ schedule:
9
+ - cron: '0 0 * * 1'
10
+ workflow_call:
11
+
12
+ jobs:
13
+ analyze:
14
+ name: Analyze
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ security-events: write
18
+ actions: read
19
+ contents: read
20
+ steps:
21
+ - name: Checkout repository
22
+ uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
23
+
24
+ - name: Initialize CodeQL
25
+ uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
26
+ with:
27
+ languages: python
28
+ queries: security-and-quality
29
+
30
+ - name: Autobuild
31
+ uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
32
+
33
+ - name: Perform CodeQL Analysis
34
+ uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
@@ -0,0 +1,45 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ pages: write
11
+ id-token: write
12
+
13
+ concurrency:
14
+ group: pages
15
+ cancel-in-progress: false
16
+
17
+ jobs:
18
+ deploy:
19
+ runs-on: ubuntu-latest
20
+ # Set the repository variable DEPLOY_DOCS to "true" once GitHub Pages
21
+ # is enabled (Settings -> Pages -> Source: GitHub Actions).
22
+ if: vars.DEPLOY_DOCS == 'true'
23
+ environment:
24
+ name: github-pages
25
+ url: ${{ steps.deployment.outputs.page_url }}
26
+ steps:
27
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
28
+
29
+ - name: Install uv
30
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
31
+ with:
32
+ python-version: '3.14.3'
33
+ enable-cache: 'true'
34
+
35
+ - name: Install dependencies
36
+ run: uv sync --group docs --frozen
37
+
38
+ - run: uv run --frozen mkdocs build --site-dir site
39
+
40
+ - uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
41
+ with:
42
+ path: site
43
+
44
+ - id: deployment
45
+ uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4
@@ -0,0 +1,50 @@
1
+ name: Draft Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+ pull-requests: read
10
+
11
+ concurrency:
12
+ group: draft-release
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ draft-release:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
20
+ with:
21
+ fetch-depth: 0
22
+
23
+ - name: Generate changelog
24
+ id: changelog
25
+ uses: orhun/git-cliff-action@f50e11560dce63f7c33227798f90b924471a88b5 # v4.8.0
26
+ with:
27
+ config: cliff.toml
28
+ args: --unreleased --verbose
29
+ env:
30
+ OUTPUT: CHANGELOG.md
31
+
32
+ - name: Delete existing draft release
33
+ continue-on-error: true
34
+ run: |
35
+ gh release delete next-release --yes
36
+ env:
37
+ GH_TOKEN: ${{ github.token }}
38
+
39
+ - name: Create or Update Draft Release
40
+ uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
41
+ with:
42
+ tag_name: next-release
43
+ name: 'Next Release (Draft)'
44
+ body: |
45
+ ${{ steps.changelog.outputs.content }}
46
+
47
+ ---
48
+ *This is an automatically generated draft release.*
49
+ draft: true
50
+ prerelease: false
@@ -0,0 +1,69 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ tag_name:
7
+ description: 'Tag name for the publish (e.g., v1.2.3)'
8
+ required: true
9
+ type: string
10
+ workflow_call:
11
+ inputs:
12
+ tag_name:
13
+ description: 'Tag name for the publish (e.g., v1.2.3)'
14
+ required: true
15
+ type: string
16
+
17
+ jobs:
18
+ build:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
22
+ with:
23
+ ref: ${{ inputs.tag_name || github.event.inputs.tag_name }}
24
+ fetch-depth: 0
25
+
26
+ - name: Output build information
27
+ run: |
28
+ echo "### Publishing Build :package:" >> $GITHUB_STEP_SUMMARY
29
+ echo "- **Version tag**: ${{ inputs.tag_name || github.event.inputs.tag_name }}" >> $GITHUB_STEP_SUMMARY
30
+
31
+ - name: Install uv
32
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
33
+ with:
34
+ python-version: '3.14.3'
35
+ enable-cache: 'true'
36
+
37
+ - name: Install dependencies
38
+ run: uv sync --frozen
39
+
40
+ - name: Build distribution
41
+ run: uv build
42
+
43
+ - name: Upload build artifacts
44
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
45
+ with:
46
+ name: python-package-distributions
47
+ path: dist/
48
+
49
+ publish-to-pypi:
50
+ needs: build
51
+ runs-on: ubuntu-latest
52
+ # Set the repository variable PUBLISH_TO_PYPI to "true" once the
53
+ # 'pypi' environment and PyPI trusted publishing are configured.
54
+ if: vars.PUBLISH_TO_PYPI == 'true'
55
+ environment: pypi
56
+ permissions:
57
+ id-token: write
58
+
59
+ steps:
60
+ - name: Download build artifacts
61
+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
62
+ with:
63
+ name: python-package-distributions
64
+ path: dist/
65
+
66
+ - name: Publish to PyPI
67
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
68
+ with:
69
+ packages-dir: dist/
@@ -0,0 +1,87 @@
1
+ name: Publish to TestPyPI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
+ inputs:
9
+ tag_name:
10
+ description: 'Tag name for the publish (e.g., v1.2.3)'
11
+ required: false
12
+ type: string
13
+ workflow_call:
14
+ inputs:
15
+ tag_name:
16
+ description: 'Tag name for the publish (e.g., v1.2.3)'
17
+ required: false
18
+ type: string
19
+
20
+ jobs:
21
+ build:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
25
+ with:
26
+ ref: ${{ inputs.tag_name || github.sha }}
27
+ fetch-depth: 0
28
+
29
+ - name: Output build information
30
+ run: |
31
+ echo "### Publishing Build :package:" >> $GITHUB_STEP_SUMMARY
32
+ echo "- **Version tag**: ${{ inputs.tag_name || github.sha }}" >> $GITHUB_STEP_SUMMARY
33
+
34
+ - name: Install uv
35
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
36
+ with:
37
+ python-version: '3.14.3'
38
+ enable-cache: 'true'
39
+
40
+ - name: Install dependencies
41
+ run: uv sync --group build --frozen
42
+
43
+ - name: Set version for publishing
44
+ run: |
45
+ if [ -n "${{ inputs.tag_name }}" ]; then
46
+ # Use the tag, stripping 'v' prefix if present
47
+ VERSION=$(echo "${{ inputs.tag_name }}" | sed 's/^v//')
48
+ else
49
+ # For untagged builds, use a dev version without local part
50
+ # Get the dev version from hatch-vcs, then strip +local
51
+ VERSION=$(uv run --frozen hatch version | sed 's/+.*//')
52
+ fi
53
+
54
+ # Update pyproject.toml with sed
55
+ sed -i "s/dynamic = \[\"version\"\]/version = \"$VERSION\"\ndynamic = []/" pyproject.toml
56
+
57
+ - name: Build distribution
58
+ run: uv build
59
+
60
+ - name: Upload build artifacts
61
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
62
+ with:
63
+ name: python-package-distributions
64
+ path: dist/
65
+
66
+ publish-to-testpypi:
67
+ needs: build
68
+ runs-on: ubuntu-latest
69
+ # Set the repository variable PUBLISH_TO_TESTPYPI to "true" once the
70
+ # 'testpypi' environment and TestPyPI trusted publishing are configured.
71
+ if: vars.PUBLISH_TO_TESTPYPI == 'true'
72
+ environment: testpypi
73
+ permissions:
74
+ id-token: write
75
+
76
+ steps:
77
+ - name: Download build artifacts
78
+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
79
+ with:
80
+ name: python-package-distributions
81
+ path: dist/
82
+
83
+ - name: Publish to TestPyPI
84
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
85
+ with:
86
+ repository-url: https://test.pypi.org/legacy/
87
+ packages-dir: dist/
@@ -0,0 +1,58 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ tag_name:
7
+ description: 'Tag name for the release (e.g., v1.2.3)'
8
+ required: true
9
+ type: string
10
+ workflow_call:
11
+ inputs:
12
+ tag_name:
13
+ description: 'Tag name for the release (e.g., v1.2.3)'
14
+ required: true
15
+ type: string
16
+
17
+ permissions:
18
+ contents: write
19
+
20
+ jobs:
21
+ release:
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: write
25
+ steps:
26
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
27
+ with:
28
+ fetch-depth: 0
29
+ ref: ${{ inputs.tag_name || github.event.inputs.tag_name }}
30
+
31
+ - name: Generate changelog
32
+ id: changelog
33
+ uses: orhun/git-cliff-action@f50e11560dce63f7c33227798f90b924471a88b5 # v4.8.0
34
+ with:
35
+ config: cliff.toml
36
+ args: --current --verbose
37
+ env:
38
+ OUTPUT: CHANGELOG.md
39
+
40
+ - name: Delete draft release
41
+ continue-on-error: true
42
+ run: |
43
+ gh release delete next-release --yes
44
+ env:
45
+ GH_TOKEN: ${{ github.token }}
46
+
47
+ - name: Create Release
48
+ uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
49
+ with:
50
+ tag_name:
51
+ ${{ inputs.tag_name || github.event.inputs.tag_name }}
52
+ body: ${{ steps.changelog.outputs.content }}
53
+ draft: false
54
+ prerelease:
55
+ ${{ contains(inputs.tag_name ||
56
+ github.event.inputs.tag_name, 'alpha') ||
57
+ contains(inputs.tag_name || github.event.inputs.tag_name,
58
+ 'beta') }}