Skip to content

Revise installation steps and update command syntax#3

Open
CodeRed-001 wants to merge 1 commit into
FollowNaim:mainfrom
CodeRed-001:jason
Open

Revise installation steps and update command syntax#3
CodeRed-001 wants to merge 1 commit into
FollowNaim:mainfrom
CodeRed-001:jason

Conversation

@CodeRed-001

@CodeRed-001 CodeRed-001 commented Jun 25, 2026

Copy link
Copy Markdown

Updated installation commands and adjusted step numbering in README.

Summary by Sourcery

Update Termux installation instructions and step ordering in the README for generating Google API token.pickle.

Documentation:

  • Revise Termux setup commands, including package installation and dependency requirements, in the README.
  • Adjust and renumber the documented setup steps for cloning the repository, configuring credentials, and generating token.pickle.

Updated installation commands and adjusted step numbering in README.
@sourcery-ai

sourcery-ai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Reviewer's Guide

Updates Termux installation instructions in README to use non-sudo pkg/apt commands, adds a missing dependency, and renumbers/expands the setup steps for clarity and correctness.

Flow diagram for updated Termux installation and setup steps

flowchart TD
    A[Open Termux with internet connection] --> B[Run apt update && apt upgrade -y]
    B --> C[Run apt install git python3 -y]
    C --> D[pkg install python-cryptography]
    D --> E[pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib]
    E --> F[git clone https://github.com/FollowNaim/TokenPickle]
    F --> G[Move credentials.json to /sdcard]
    G --> H[termux-setup-storage and copy credentials.json into TokenPickle]
    H --> I[Run python3 GenerateTokenPickle.py]
    I --> J[Copy token.pickle to /sdcard]
Loading

File-Level Changes

Change Details Files
Revise Termux installation command to drop sudo usage, adjust packages, and add cryptography dependency.
  • Replace single long install command to use bare apt/pkg commands instead of sudo-prefixed ones for Termux
  • Remove python3-pip and redundant pip upgrade from the install chain
  • Add explicit installation of python-cryptography via pkg
  • Retain and reorder pip-based installation of Google API-related Python packages
README.md
Restructure and renumber setup steps to insert missing commands and keep sequence consistent.
  • Insert a dedicated step to run apt update && apt upgrade separately after the initial combined command
  • Shift subsequent step numbers up to account for the new step and removed blank step 8
  • Add an explicit cd to home directory before cd TokenPickle to avoid path issues
  • Update all later references (credentials placement, storage permission, navigation, copying token.pickle) to the new step numbers
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue, and left some high level feedback:

  • Step 2 already runs apt update && apt upgrade -y, so the new Step 3 (apt update && apt upgrade) appears redundant; consider either removing Step 3 or clarifying why a second update/upgrade is needed.
  • The revised command sequence mixes apt and pkg and no longer installs python3-pip; if Termux requires pkg and a separate pip installation, it may help to standardize the package manager and explicitly ensure pip is available before using it.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Step 2 already runs `apt update && apt upgrade -y`, so the new Step 3 (`apt update && apt upgrade`) appears redundant; consider either removing Step 3 or clarifying why a second update/upgrade is needed.
- The revised command sequence mixes `apt` and `pkg` and no longer installs `python3-pip`; if Termux requires `pkg` and a separate pip installation, it may help to standardize the package manager and explicitly ensure `pip` is available before using it.

## Individual Comments

### Comment 1
<location path="README.md" line_range="60" />
<code_context>
 ```

-### 11. You'll find a url https://accounts.google.com/o/oauth2/=offline like this. just copy this url and paste on browser and login into your google account. that's it. you'll see 'The authentication flow has completed. You may close this window' this massage. then you're done.
+### 12. You'll find a url https://accounts.google.com/o/oauth2/=offline like this. just copy this url and paste on browser and login into your google account. that's it. you'll see 'The authentication flow has completed. You may close this window' this massage. then you're done.

-### 12.
</code_context>
<issue_to_address>
**issue (typo):** Correct typos and phrasing in the OAuth URL instructions.

For example, you could revise this step to:

`### 12. You'll see a URL like https://accounts.google.com/o/oauth2/=offline. Copy this URL, paste it into your browser, and log in to your Google account. You'll then see 'The authentication flow has completed. You may close this window' — this message means you're done.`

This fixes capitalization, grammar (“URL”, “paste it into your browser”, “log in to”, “message”) and sentence starts.

```suggestion
### 12. You'll see a URL like https://accounts.google.com/o/oauth2/=offline. Copy this URL, paste it into your browser, and log in to your Google account. You'll then see 'The authentication flow has completed. You may close this window' — this message means you're done.
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread README.md
```

### 11. You'll find a url https://accounts.google.com/o/oauth2/=offline like this. just copy this url and paste on browser and login into your google account. that's it. you'll see 'The authentication flow has completed. You may close this window' this massage. then you're done.
### 12. You'll find a url https://accounts.google.com/o/oauth2/=offline like this. just copy this url and paste on browser and login into your google account. that's it. you'll see 'The authentication flow has completed. You may close this window' this massage. then you're done.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (typo): Correct typos and phrasing in the OAuth URL instructions.

For example, you could revise this step to:

### 12. You'll see a URL like https://accounts.google.com/o/oauth2/=offline. Copy this URL, paste it into your browser, and log in to your Google account. You'll then see 'The authentication flow has completed. You may close this window' — this message means you're done.

This fixes capitalization, grammar (“URL”, “paste it into your browser”, “log in to”, “message”) and sentence starts.

Suggested change
### 12. You'll find a url https://accounts.google.com/o/oauth2/=offline like this. just copy this url and paste on browser and login into your google account. that's it. you'll see 'The authentication flow has completed. You may close this window' this massage. then you're done.
### 12. You'll see a URL like https://accounts.google.com/o/oauth2/=offline. Copy this URL, paste it into your browser, and log in to your Google account. You'll then see 'The authentication flow has completed. You may close this window' this message means you're done.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant