profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/jdufresne/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jon Dufresne jdufresne Pioneer Valley Books Vancouver, BC, Canada http://jondufresne.org/

jazzband/django-taggit 2725

Simple tagging for django

jazzband/django-redis 2178

Full featured redis cache backend for Django.

Alir3z4/html2text 1170

Convert HTML to Markdown-formatted text.

gjedeer/celery-php 416

PHP client for Celery

jdufresne/commit-messages 2

Common commit messages

jdufresne/django 1

The Web framework for perfectionists with deadlines.

jdufresne/ansible-kodi 0

Ansible scripts to configure Kodi

jdufresne/asgiref 0

ASGI specification and utilities

jdufresne/AvaTax-REST-V2-Ruby-SDK 0

Sales Tax API SDK for Ruby and AvaTax REST

jdufresne/babel 0

The official repository for Babel, the Python Internationalization Library

PullRequestReviewEvent

issue commentdimitri/pgloader

MySQL: Access denied [1045], but mysql or mysqldump work fine

After spending some more time on this, it looks like pgloader fails for users with REQUIRE SSL as described in the MySQL docs: https://dev.mysql.com/doc/refman/5.7/en/alter-user.html

Some of my DBs had this, others did not. Only the ones that have it enabled fail with pgloader. Disabling it allows pgloader connections.

@jbauers to see if your user has this value set, you can run the query:

mysql> select user, ssl_type from mysql.user where ssl_type != '';

If I understand ticket #493 correctly, this MySQL connection feature may not be supported.

jbauers

comment created time in a day

issue commentdimitri/pgloader

MySQL: Access denied [1045], but mysql or mysqldump work fine

I'm experiencing the same issue. mysql CLI authenticates, mysqldump authenticates, but pgloader results in "Access denied".

The logs don't reveal anything interesting:

2021-10-21T01:21:02.657532Z 63641 [Note] Access denied for user <REDACTED> (using password: YES)

I am very willing to help debug this. If there is additional information I can provide please ask.

jbauers

comment created time in a day

issue openeddimitri/pgloader

MySQL "Access denied" should exit with a non-zero status

$ docker run --rm -it --network host dimitri/pgloader:latest pgloader mysql://<REDACTED> postgresql://jon@127.0.0.1/newdb
2021-10-21T00:28:20.016000Z LOG pgloader version "3.6.3~devel"
2021-10-21T00:28:20.051000Z LOG Migrating from #<MYSQL-CONNECTION mysql://<REDACTED> {1005E963E3}>
2021-10-21T00:28:20.051000Z LOG Migrating into #<PGSQL-CONNECTION pgsql://jon@127.0.0.1:5432/newdb {1005FD7FA3}>
2021-10-21T00:28:20.578000Z ERROR mysql: Failed to connect to mysql at "<REDACTED>" (port 3306) as user "<REDACTED>": MySQL Error [1045]: "Access denied for user <REDACTED> (using password: YES)"
2021-10-21T00:28:20.578000Z LOG report summary reset
       table name     errors       rows      bytes      total time
-----------------  ---------  ---------  ---------  --------------
  fetch meta data          0          0                     0.000s
-----------------  ---------  ---------  ---------  --------------
-----------------  ---------  ---------  ---------  --------------
$ echo $?
0

Expected: return a non-zero status code.

This is important for CI systems that fail based on command exit statuses. Right now, my CI system "passes" but doesn't do the expected work.

Thanks!

created time in a day

push eventjdufresne/emacs-init

Jon Dufresne

commit sha bccacf90a616512b7ae8968bb0f30280c8707717

Run Ruby commands with 2.7.4

view details

push time in 3 days

delete branch jdufresne/pyjwt

delete branch : pypy

delete time in 4 days

PR closed jpadilla/pyjwt

Add PyPy3 to the test matrix
+7 -5

1 comment

3 changed files

jdufresne

pr closed time in 4 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha ff92fdddb5d8722f0130192dadcc292294dbfc1e

Add scripts to PATH

view details

push time in 4 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 496dbb6b6e652e75cc49a81adc2ec8bf70f2147a

Fix key scan

view details

push time in 4 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 2e173241380ce124a86a837901abac46a9d8d9ed

Fix all lint warnings

view details

push time in 4 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 267cfb66ea42d6703d659fdd35946974e229e6f5

Don't call strip on None when capture_stdout is false

view details

push time in 4 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 69d97a0b3a9e12c79437b57eb6aab8fd59d00c40

Don't install missing gemfile-* scripts

view details

push time in 5 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 4e66865ea29ad9d7389b453181ab703ba2f847fc

Improve git-sync - Show diff when it exists - Don't sync tags

view details

push time in 5 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 17e64c5cccab572d4e55a606da8dfe59a863320b

Remove unnecessary scripts

view details

push time in 5 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 16dc87214df19e89d0b930ab2fe0c6197fb2b907

Install global npm packages to user directory

view details

Jon Dufresne

commit sha 216e95f17eb8da2cc04e2e2efaeb533dcea075e4

Remove bashrc.d customization Handled by skeleton files now

view details

push time in 5 days

push eventjdufresne/system-scripts

Jon Dufresne

commit sha 89018f9df82a49c8acab375731a7b67352e9511b

Add auto-chruby shell function

view details

push time in 5 days

delete branch jdufresne/pip

delete branch : optional-strict

delete time in 5 days

PR closed pypa/pip

Resolve all "mypy: strict-optional=False" overrides
+76 -47

0 comment

10 changed files

jdufresne

pr closed time in 5 days

pull request commentpython-distro/distro

Add shebang to distro.py

Thanks @HorlogeSkynet and @sethmlarson. I've taken the suggested approach in the latest revision.

jdufresne

comment created time in 6 days

push eventjdufresne/distro

Jon Dufresne

commit sha 5733b0c22288f89e72560e7d0381280576fee711

Document support for Python 3.10

view details

Jon Dufresne

commit sha f7993a7973daf29d8c4c7d58b9e414e19d319292

Run mypy on all files including tests

view details

Jon Dufresne

commit sha 7b45c6cd9b62ddf871f672fdbdf36c7d38028375

Add shebang to distro.py This allows executing the file as a standalone script. Previously, without the shebang, trying to execute results in the following: $ ./distro.py ./distro.py: line 28: platform.linux_distribution: command not found ./distro.py: line 28: platform.dist: command not found ./distro.py: line 28: Python: command not found ./distro.py: command substitution: line 29: syntax error near unexpected token `newline' ./distro.py: command substitution: line 29: `<https://bugs.python.org/issue1322>' ... Now: $ ./distro.py Name: Fedora 34 (Workstation Edition) Version: 34 Codename:

view details

push time in 6 days

push eventpython-distro/distro

Jon Dufresne

commit sha 28f624c116024c21e0d6aef9a8c7985b8ea80e6a

Pass CLI positional argument through to pytest A development convenience to pass arguments like -v -x and others. See: https://tox.wiki/en/latest/config.html#substitutions-for-positional-arguments-in-commands

view details

push time in 6 days

delete branch jdufresne/distro

delete branch : posargs

delete time in 6 days

PR merged python-distro/distro

Pass CLI positional argument through to pytest enhancement area: setup

A development convenience to pass arguments like -v -x and others.

See: https://tox.wiki/en/latest/config.html#substitutions-for-positional-arguments-in-commands

+1 -1

0 comment

1 changed file

jdufresne

pr closed time in 6 days

push eventjdufresne/distro

Jon Dufresne

commit sha 1757b8efa499e2c41ea6425d7dc18ceb091f4a7d

Add py.typed file to package for PEP-561 compliance Per PEP-561, packages that include type information that can be consumed by other libraries should distribute a py.typed file. This tells mypy and other tools to use type information shipped with the library. This requires moving distro from a single module file to a package so that it can ship data files. The original distro.py was not altered. Only the __init__.py and __main__.py were added to facilitate being used as a packages. By keeping distro.py unaltered, this allows projects to continue to vendor the file into their project without as before without any modifications. For details on PEP-561, see: https://www.python.org/dev/peps/pep-0561/ For details on mypy using py.typed, see: https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages

view details

push time in 6 days

push eventjdufresne/distro

Jon Dufresne

commit sha 5733b0c22288f89e72560e7d0381280576fee711

Document support for Python 3.10

view details

Jon Dufresne

commit sha f7993a7973daf29d8c4c7d58b9e414e19d319292

Run mypy on all files including tests

view details

Jon Dufresne

commit sha 4c01890f43f131c81e062d8b10421775fefdec5d

Add py.typed file to package for PEP-561 compliance Per PEP-561, packages that include type information that can be consumed by other libraries should distribute a py.typed file. This tells mypy and other tools to use type information shipped with the library. This requires moving distro from a single module file to a package so that it can ship data files. The original distro.py was not altered. Only the __init__.py and __main__.py were added to facilitate being used as a packages. By keeping distro.py unaltered, this allows projects to continue to vendor the file into their project without as before without any modifications. For details on PEP-561, see: https://www.python.org/dev/peps/pep-0561/ For details on mypy using py.typed, see: https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages

view details

push time in 6 days

delete branch jdufresne/distro

delete branch : mypy-tests

delete time in 6 days

delete branch jdufresne/distro

delete branch : py310

delete time in 6 days

PR opened python-distro/distro

Run mypy on all files including tests

The tests are a big consumer of the distro API. By running mypy on tests, we:

  • Help verify the tests are using the distro API as designed.

  • Help verify the API types are internally consistent when used in test scenario which should represent real life scenarios.

  • Help catch non-representative tests that use the API in non-realstic ways.

  • Help verify pytest is used as designed.

+197 -189

0 comment

3 changed files

pr created time in 6 days

create barnchjdufresne/distro

branch : mypy-tests

created branch time in 6 days

pull request commentpython-distro/distro

Remove executable bit from distro.py

Adding the shebang and executable bit is already handled by the setuptools entrypoint:

https://github.com/python-distro/distro/blob/6ae385b905239e6535cf53c933c4d7c7d80804da/setup.cfg#L35-L37

Do you see some other use case not already solved by this?

jdufresne

comment created time in 6 days