Skip to content

support pipx install#4

Open
jcrben wants to merge 1 commit intoboppreh:mainfrom
jcrben:add-pipx-support
Open

support pipx install#4
jcrben wants to merge 1 commit intoboppreh:mainfrom
jcrben:add-pipx-support

Conversation

@jcrben
Copy link

@jcrben jcrben commented Jan 2, 2024

By installing this with pipx install hello-tls I can avoid pulling the pyOpenSSL dependency into my global dependencies.

I had to expose a callable main() function from the __main__ module following the advice here https://stackoverflow.com/questions/27784271/how-can-i-use-setuptools-to-generate-a-console-scripts-entry-point-which-calls as trying to call the main module directly results in TypeError: 'module' object is not callable.

I tested this with test.pypi.org https://test.pypi.org/project/hello-tls-ben/:

python -m build
twine upload --repository-url https://test.pypi.org/legacy/ --username __token__ --password pypi-AgENdGVzdC5weXBpLm9yZwIkOWFjOWVlMTctYmUxZS00MmUzLTkyOWItOWNjZjBhYWEzNzc0AAIqWzMsImIxYjY3MWIzLWM0MDgtNDZhZi04OGJiLWYwNjlkNGEyMzBmMCJdAAAGIMx2j3U_it_jbE7jbAYvcZy3JyH_Xe_6Zof1qdvfwyd3 dist/*

pipx install --index-url https://test.pypi.org/simple --pip-args="--extra-index-url https://pypi.org/simple/" hello-tls-ben==0.3.17

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