Skip to content

Commit

Permalink
Rename splitconfig to splitconfig.py. (#765)
Browse files Browse the repository at this point in the history
Fixes #763.

Eliminates some irregularities in the `lint` script.
  • Loading branch information
jtv committed Dec 23, 2023
1 parent 3322462 commit 93869e5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fix broken `to_buf()` on `zview`. (#728)
- Support `PQfsize()` and `PQfmod()`. (#727)
- Implement conversion from `string_view` to string. (#728)
- Rename `splitconfig` to `splitconfig.py`. (#763)
7.8.1
- Regenerate build files. Should fix ARM Mac build. (#715)
- Reinstate `<ciso646>` that MSVC can't live with or without. (#713)
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -21548,7 +21548,7 @@ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
_LT_EOF

;;
"configitems":C) "${srcdir}/tools/splitconfig" "${srcdir}" ;;
"configitems":C) "${srcdir}/tools/splitconfig.py" "${srcdir}" ;;

esac
done # for ac_tag
Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ AC_CONFIG_FILES([
libpqxx.pc])


AC_CONFIG_COMMANDS([configitems], ["${srcdir}/tools/splitconfig" "${srcdir}"])
AC_CONFIG_COMMANDS([configitems],
["${srcdir}/tools/splitconfig.py" "${srcdir}"])

AC_CONFIG_FILES([compile_flags])
AC_OUTPUT
2 changes: 1 addition & 1 deletion tools/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ EXTRA_DIST = \
m4esc.py \
pqxxthreadsafety.cxx \
rmlo.cxx \
splitconfig \
splitconfig.py \
template2mak.py \
todo \
update-copyright
Expand Down
2 changes: 1 addition & 1 deletion tools/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ EXTRA_DIST = \
m4esc.py \
pqxxthreadsafety.cxx \
rmlo.cxx \
splitconfig \
splitconfig.py \
template2mak.py \
todo \
update-copyright
Expand Down
6 changes: 3 additions & 3 deletions tools/lint
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ pylint() {

if which pyflakes
then
pyflakes "$SRCDIR"/tools/*.py "$SRCDIR"/tools/splitconfig
pyflakes "$SRCDIR"/tools/*.py
else
pyflakes3 "$SRCDIR"/tools/*.py "$SRCDIR"/tools/splitconfig
pyflakes3 "$SRCDIR"/tools/*.py
fi

ruff "$SRCDIR"/tools/*.py "$SRCDIR"/tools/splitconfig
ruff "$SRCDIR"/tools/*.py

if test -n "$venv"
then
Expand Down
File renamed without changes.

0 comments on commit 93869e5

Please sign in to comment.