Skip to content
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

MAINTAINER NOTICE: RELEASES ARE CURRENTLY PAUSED HERE, VISIT THE FORK #2431

Open
wbarnha opened this issue Mar 8, 2024 · 5 comments
Open

Comments

@wbarnha
Copy link
Collaborator

wbarnha commented Mar 8, 2024

Hi everyone,

Due to some complications with transferring PyPi credentials, I am unable to update the kafka-python namespace on PyPi. As a consequence, I have created a fork at https://github.com/wbarnha/kafka-python-ng. I will try to write a bot to transfer all existing PRs and Issues to the repository. For now, you can install the new project via:

pip3 install kafka-python-ng

I apologize that it took so long to make this decision.

@wbarnha
Copy link
Collaborator Author

wbarnha commented Mar 8, 2024

I've been away for a while taking care of personal issues. In the meantime, I've been trying to get the old kafka-python system working again by migrating to kafka-python-ng. Maybe someone will find this useful someday. I transferred all issues from kafka-python to kafka-python-ng via some notes in https://jloh.co/posts/bulk-migrate-issues-github-cli/

gh issue list -s all --json number |     jq -r '.[] | .number' |     xargs -I% gh issue transfer % https://github.com/wbarnha/kafka-python-ng

Unfortunately, this only works if you're the owner of the project, which in this case for kafka-python, I am not. 😩
So I figured I could output all open issues from CLI via:

gh issue list -L 5000 -s all --json number |     jq -r '.[] | .number' |     xargs -I% gh issue view %

Pipe to a gh issue create:

gh issue list -R https://github.com/dpkp/kafka-python -L 5000 -s open --json number |     jq -r '.[] | .number' |     xargs -I% gh issue view % -R https://github.com/dpkp/kafka-python | 

(I ran this in a separate directory btw, hence -R), but doing it on a command line was painful so I wrote a script:

#!/bin/bash

remote_repo=https://github.com/dpkp/kafka-python
current_repo=https://github.com/wbarnha/kafka-python-ng
issue_limit=1

for issue_number in $(gh issue list -R $remote_repo -L $issue_limit -s open --json number |     jq -r '.[] | .number')
do
        issue_body=$(gh issue view $issue_number -R $remote_repo --json=body | jq -r '.body')
        issue_title=$(gh issue view $issue_number -R $remote_repo --json=title | jq -r '.title')
        echo "${issue_title}"
        echo "${issue_body}"
        gh issue create --title "${issue_title}" --body "${issue_body}" -R $current_repo
done

And for migrating PRs, I wrote this script:

#!/bin/bash

remote_repo=https://github.com/dpkp/kafka-python
current_repo=https://github.com/wbarnha/kafka-python-ng
issue_limit=5000

for issue_number in $(gh issue list -R $remote_repo -L $issue_limit -s open --json number |     jq -r '.[] | .number')
do
        if [ $issue_number  -lt 2391 ]
        then
                issue_body=$(gh issue view $issue_number -R $remote_repo --json=body | jq -r '.body')
                issue_title=$(gh issue view $issue_number -R $remote_repo --json=title | jq -r '.title')
                echo "${issue_title}"
                echo "${issue_body}"
                gh issue create --title "${issue_title}" --body "${issue_body}" -R $current_repo
                sleep 1s
        fi
done

I saw some errors like:

pull request create failed: GraphQL: Head sha can't be blank, Base sha can't be blank, Head repository can't be blank, No commits between wbarnha:master and jeffwidman:cleanup-max-bytes-tests, Head ref must be a branch, not all refs are readable (createPullRequest)

while attempting to open some PRs but didn't look into it further since the majority of PRs got pulled in and I can just do the remainder manually if need-be.

Hopefully this helps somebody else, someday.

@P1ng-W1n
Copy link

Hi @wbarnha

Sorry for asking this in the first place (I know, I have trust issues), but has there been any official announcement about the maintainer change? I was trying to find any reference that would indicate that @dpkp handed over the project maintenance to someone else, but ended up empty handed.
As this post is suggesting to use another repository / python package, so I think it would be good to communicate this clearly, otherwise people might have questions about the legitimacy of this request (considering the recent xz debacle) .

@wbarnha
Copy link
Collaborator Author

wbarnha commented Jun 28, 2024

Hi there! It's a fair question. Dana has been wanting to get back to maintaining this project but has been busy with other affairs. I've been less active as well unfortunately since I'm currently in the process of getting my flame back.

As for the fork, I'm the one who maintains kafka-python-ng and I'll review PRs if pinged. If there are any that have been opened which I forgot about, please ping me!

JamesWrigley added a commit to European-XFEL/DAMNIT that referenced this issue Jul 5, 2024
Unfortunately kafka-python seems to be having maintenance issues:
dpkp/kafka-python#2431

And it cannot be installed on Python 3.12:
dpkp/kafka-python#2412
tavallaie added a commit to tavallaie/connectiva that referenced this issue Aug 4, 2024
Unfortunately kafka-python seems to be having maintenance issues:
dpkp/kafka-python#2431

And it cannot be installed on Python 3.12:
dpkp/kafka-python#2412
@ssbarnea
Copy link

ssbarnea commented Aug 4, 2024

Another reason to worry is the fact that the project is not hosted under an github organization instead of a personal account. From the long term maintenance point of view, that is another liability similar to the one with pypi publishing. Hopefully this can be addressed.

PS. There are lots of github orgs designed to help with python project maintenance, which also makes it easier as others with experience can step in to help.

@maallaire
Copy link

Found the context of the "complications with transferring PyPi credentials" for those interested. pypi/support#3785 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants