Skip to content

Commit

Permalink
Version 3.0.0 (#328)
Browse files Browse the repository at this point in the history
* Version 3.0.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
jonashaag and pre-commit-ci[bot] authored May 23, 2024
1 parent 889a434 commit 421a481
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

3.0.0 (May 23, 2024)
--------------------
Require Python >= 3.7.

- #326: Fix Smart HTTP (Jonas Haag)

2.0.3 (Jun 3, 2023)
-------------------
This is the last release to support Python < 3.7.
Expand Down
2 changes: 1 addition & 1 deletion klaus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from klaus import utils, views
from klaus.repo import FancyRepo, InvalidRepo

KLAUS_VERSION = utils.guess_git_revision() or "2.0.3"
KLAUS_VERSION = utils.guess_git_revision() or "3.0.0"


class Klaus(flask.Flask):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ def install_data_files_hack():
"flask",
"Werkzeug>=0.15.0",
"pygments",
"httpauth",
"httpauth>=0.4",
"humanize",
"dulwich>=0.19.3",
]

setup(
name="klaus",
version="2.0.3",
version="3.0.0",
author="Jonas Haag",
author_email="[email protected]",
packages=["klaus", "klaus.contrib"],
Expand Down
15 changes: 9 additions & 6 deletions tests/test_make_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,15 @@ def can_push_auth():
def _can_push(http_get, url):
return all(
[
any([
_check_http200(
http_get, TEST_REPO_BASE_URL + "info/refs?service=git-receive-pack"
),
_check_http200(http_get, TEST_REPO_BASE_URL + "git-receive-pack"),
]),
any(
[
_check_http200(
http_get,
TEST_REPO_BASE_URL + "info/refs?service=git-receive-pack",
),
_check_http200(http_get, TEST_REPO_BASE_URL + "git-receive-pack"),
]
),
subprocess.call(["git", "push", url, "master"], cwd=TEST_REPO) == 0,
]
)
Expand Down

0 comments on commit 421a481

Please sign in to comment.