Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ endif()
# Set the version here, strip any extra tags to use in `project`
# We try to use git to get a full description, inspired by setuptools_scm
set(_bout_previous_version "5.2.0")
set(_bout_next_version "5.2.1")
set(_bout_next_version "6.0.0")
execute_process(
COMMAND "git" describe --tags --match=v${_bout_previous_version}
COMMAND sed -e s/${_bout_previous_version}-/${_bout_next_version}.dev/ -e
Expand Down
16 changes: 6 additions & 10 deletions tools/pylib/_boutpp_build/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

try:
import packaging.tags # packaging
except:
except ImportError:
packaging = None


Expand All @@ -36,7 +36,7 @@ def getversion():
return version.lstrip("v")

_bout_previous_version = "v5.2.0"
_bout_next_version = "v5.2.1"
_bout_next_version = "v6.0.0"

try:
try:
Expand Down Expand Up @@ -161,7 +161,6 @@ def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):
)
run(f"cmake --build _wheel_build/ -j {os.cpu_count()}")
run("cmake --install _wheel_build/")
distinfo = f"_wheel_install"
prepare_metadata_for_build_wheel("_wheel_install", record=True)

# Do not add --symlink as python's does not extract that as symlinks
Expand Down Expand Up @@ -220,8 +219,8 @@ def build_sdist(sdist_directory, config_settings=None):
)
with open("LICENSE") as src:
pre = "License: "
for l in src:
f.write(f"{pre}{l}")
for line in src:
f.write(f"{pre}{line}")
pre = " "
f.write("Description-Content-Type: text/markdown\n\n")
with open("README.md") as src:
Expand Down Expand Up @@ -344,11 +343,8 @@ def help():
"""
table = []
for k, v in todos.items():
try:
doc = v.__doc__.strip()
doc = " : " + doc
except:
doc = ""
doc = v.__doc__.strip()
doc = " : " + doc
table.append((k, doc))
maxkey = max([len(k) for k, _ in table])
fmt = f" %-{maxkey}s%s"
Expand Down
Loading