-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test against Python 3.13 pre-release #619
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #619 +/- ##
=======================================
Coverage 95.69% 95.69%
=======================================
Files 8 8
Lines 2854 2854
=======================================
Hits 2731 2731
Misses 123 123 ☔ View full report in Codecov by Sentry. |
Tests failed attempting to install
|
https://github.com/simonw/sqlite-utils/actions/runs/8290227555/job/22687937164 A bunch of new warnings:
Weirdly the tests failed on
|
I installed Python 3.13 locally like this: pyenv install 3.13-dev
cd /tmp
mkdir hello
cd hello
pyenv local 3.13-dev
cat .python-version
eval "$(pyenv init -)"
git clone [email protected]:simonw/sqlite-utils
cd sqlite-utils
python -m venv venv
source venv/bin/activate
pip install -e '.[docs]'
cog -r docs/*.rst Now if I run diff --git a/docs/cli-reference.rst b/docs/cli-reference.rst
index 55517c9..04c4a59 100644
--- a/docs/cli-reference.rst
+++ b/docs/cli-reference.rst
@@ -615,25 +615,25 @@ See :ref:`cli_convert`.
r.jsonsplit(value, delimiter=',', type=<class 'str'>)
- Convert a string like a,b,c into a JSON array ["a", "b", "c"]
+ Convert a string like a,b,c into a JSON array ["a", "b", "c"]
r.parsedate(value, dayfirst=False, yearfirst=False, errors=None)
- Parse a date and convert it to ISO date format: yyyy-mm-dd
-
- - dayfirst=True: treat xx as the day in xx/yy/zz
- - yearfirst=True: treat xx as the year in xx/yy/zz
- - errors=r.IGNORE to ignore values that cannot be parsed
- - errors=r.SET_NULL to set values that cannot be parsed to null
+ Parse a date and convert it to ISO date format: yyyy-mm-dd
+
+ - dayfirst=True: treat xx as the day in xx/yy/zz
+ - yearfirst=True: treat xx as the year in xx/yy/zz
+ - errors=r.IGNORE to ignore values that cannot be parsed
+ - errors=r.SET_NULL to set values that cannot be parsed to null
r.parsedatetime(value, dayfirst=False, yearfirst=False, errors=None)
- Parse a datetime and convert it to ISO datetime format: yyyy-mm-ddTHH:MM:SS
-
- - dayfirst=True: treat xx as the day in xx/yy/zz
- - yearfirst=True: treat xx as the year in xx/yy/zz
- - errors=r.IGNORE to ignore values that cannot be parsed
- - errors=r.SET_NULL to set values that cannot be parsed to null
+ Parse a datetime and convert it to ISO datetime format: yyyy-mm-ddTHH:MM:SS
+
+ - dayfirst=True: treat xx as the day in xx/yy/zz
+ - yearfirst=True: treat xx as the year in xx/yy/zz
+ - errors=r.IGNORE to ignore values that cannot be parsed
+ - errors=r.SET_NULL to set values that cannot be parsed to null
You can use these recipes like so:
|
Weird, there is now a visible character in that README when it is displayed in the help: |
It doesn't show if I just run But it DOES if I run that through
|
That weird visible character is a
>>> '\x08' == '\b'
True |
https://github.com/simonw/sqlite-utils/blob/fd803d7043121f8618932c6c45888da60282ff5b/docs/cli-reference.rst#convert displays without visible glitch characters now. |
Tested in Python 3.13 as of #619
I learned about
allow-prerelease: true
from https://github.com/dateutil/dateutil/pull/1337/files