Skip to content

Commit

Permalink
Added api token in options based on githib discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
YoraiLevi committed Oct 30, 2024
1 parent 84d86f0 commit 78b5dfe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Python package

on:
push:
branches: [ $default-branch ]
branches: [ master ]
pull_request:
branches: [ $default-branch ]
branches: [ master ]

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ jobs:
with:
packages-dir: ./hatch/hatch-module-yorailevi/dist/ # the action doesn't use cwd but global repo
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
10 changes: 8 additions & 2 deletions hatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ Credentials
username = __token__
password = pypi-*********
```

from pypi/test.pypi
```
pip install hatch-module-yorailevi
pip install -i https://test.pypi.org/simple/ hatch-module-yorailevi
```

from github url
```
python -m pip install "git+https://github.com/YoraiLevi/pip_installable_module/#subdirectory=hatch/hatch-module-yorailevi"
```
Locally, editable
```
pip install -e .
```
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024-present Yorai Levi <yorai.email@gmail.com>
#
# SPDX-License-Identifier: MIT
__version__ = "0.0.2"
__version__ = "0.0.4"

0 comments on commit 78b5dfe

Please sign in to comment.