Hey while back i have created this package that me and my friends use to see how should clean what https://pypi.org/project/pratac/
but recently i wanted to make an update to 0.3 version and i uninstalled it. Now when I pip intall it it is not recognized as a global command and i do not know what really happened as it worked like a charm before a simple pip intall and you good to go. Any ideas why it is not recognized as a global command in terminal?
#๐ global command as pip package
38 messages ยท Page 1 of 1 (latest)
@kindred yarrow
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
is there a working github link for this?
the one in the README doesn't work
the LICENSE link doesn't work either
send a screenshot
of what
I suspect it's because you have both a setup.py and a pyproject.toml: https://inspector.pypi.io/project/pratac/0.2/packages/05/c4/ea14c65823a5a2311c9a9aaf0986816cedbb8a16ae957098db3a5516099f/pratac-0.2.tar.gz/
but of course I can't know for sure since version 0.3 isn't posted
why would having a pyproject.toml be a problem?
oh, they're using different build back-ends
Yes this is the github link for this
Their pyproject.toml doesn't mention an entry point, so if, when they build, it's used instead of the setup.py, no entry point will be installed.
you should update the working links to README
so what I'd do is add the entry point to the pyproject.toml, and remove the setup.py and setup.cfg.
yep thanks for pointing it out i have changed it will make it as new release
and you need to decide if you want to use poetry or setuptools as the build back-end
can't use both
personally I can't recommend poetry for projects like these
setuptools or hatchling are better fits IMHO
personally I use poetry for everything, but it's not a big deal either way
okey so what would be easier because right now i was using poetry for the development and then when i wanted to release i used
python -m build
twine upload dist/*
poetry can both build and publish, btw
but anyway, it seems to me that all you need is a poetry script entry in pyproject.toml, and then the setup.* can go
oh, and also fix the version to be 0.3
okey i will add
[tool.poetry.scripts]
pratac = "pratac.__main__:main"
okey i published it with version 0.3.1
thanks i didnt know that the poetry publishing was so ez not it works
also edited the link thank you guys โค๏ธ
@kindred yarrow wouldn't you want GitHub CI to also do the publishing for you?
trusted publishing is the recommended method for this
all my repos are set to publish when a matching tag is pushed
what do you mean by matching tag? so when i commit something to main branch it automatically publishes?
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.