Skip to content

Commit

Permalink
Change pypi auth credentials; remove __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmpr committed Oct 1, 2023
1 parent 61b4169 commit 7516d85
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:

- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run:
twine upload dist/*

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Cataloger
## Kataloger


[![Python version](https://img.shields.io/badge/python-3.11-blue.svg)](https://pypi.python.org/pypi/kataloger)
Expand Down
3 changes: 0 additions & 3 deletions src/kataloger/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from importlib.metadata import version

__version__ = version(__package__ or __name__)
4 changes: 2 additions & 2 deletions src/kataloger/__main__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import sys
from argparse import ArgumentParser
from importlib.metadata import version
from pathlib import Path
from typing import Optional

import asyncio

from kataloger import __version__ as kataloger_version
from kataloger.catalog_updater_builder import CatalogUpdaterBuilder
from kataloger.data.kataloger_configuration import KatalogerConfiguration
from kataloger.execptions.kataloger_configuration_exception import KatalogerConfigurationException
Expand Down Expand Up @@ -59,7 +59,7 @@ def parse_arguments() -> KatalogerConfiguration:
parser.add_argument(
"--version",
action="version",
version=f"%(prog)s {kataloger_version}",
version=f"%(prog)s {version(__package__ or __name__)}",
)
arguments = parser.parse_args()

Expand Down

0 comments on commit 7516d85

Please sign in to comment.