Quoted post unavailable.
Quoted post unavailable.
How to create a Python package in 2022
51–60 of 153 posts
Re: How to create a Python package in 2022
#52You can take this a step further and completely automate the release of your package. That means the tagging, publishing and the GitHub release notes. I don't have a blog post but you can see the process on my personal project https://github.com/DontShaveTheYak/cf2tf Check out the merged PR's and the GitHub actions. I even do alpha releases to test pypi.
Re: How to create a Python package in 2022
#53This is really nicely written; kudos to the author for compiling a great deal of information in a readable format. If I can be forgiven one nitpick: Poetry does not use a PEP 518-style[1] build configuration by default, which means that its use of `pyproject.toml` is slightly out of pace with the rest of the Python packaging ecosystem. That isn't to say that it isn't excellent, because it is! But you the standards ha…
The font size is extremely small to the point of being unreadable on a mobile phone.
Re: How to create a Python package in 2022
#54This is really nicely written; kudos to the author for compiling a great deal of information in a readable format. If I can be forgiven one nitpick: Poetry does not use a PEP 518-style[1] build configuration by default, which means that its use of `pyproject.toml` is slightly out of pace with the rest of the Python packaging ecosystem. That isn't to say that it isn't excellent, because it is! But you the standards ha…
If I can be forgiven another nitpick regarding readability: The font size is extremely small to the point of being unreadable on a mobile phone.
Re: How to create a Python package in 2022
#55Re: How to create a Python package in 2022
#56My only gripe with poetry is that when I tried it out last year there was no equivalent for `pip install -e` which can be used to install other python package dependancies that you are simultaneously developing. I found that feature useful enough to stick with setuptools and setup.py instead.
https://python-poetry.org/docs/dependency-specification/#pat...
Re: How to create a Python package in 2022
#57Pre-commit is one of the most annoying tools that have come into existence in recent years that everyone seems to be cargo-culting. It doesn't play well with editors since in order to find the actual binary path, you'd have to open up a sqlite database to fish out the virtualenv pre-commit created. Pre-commit also increases maintenance burden, since its configuration is completely separate from your usual requirements-dev.txt/pyproject.toml/setup.cfg etc. If you have dev dependencies in one of these files because making your editors to find the pre-commit created binaries are hard, now you have to keep both versions in sync.
I really don't see the point of any pre-commit hooks unless you are the one guy that doesn't use a modern CI/CD platform.
Re: How to create a Python package in 2022
#58Re: How to create a Python package in 2022
#59My only gripe with poetry is that when I tried it out last year there was no equivalent for `pip install -e` which can be used to install other python package dependancies that you are simultaneously developing. I found that feature useful enough to stick with setuptools and setup.py instead.
Poetry has path dependencies and the develop flag to enable the same editable functionality https://python-poetry.org/docs/dependency-specification/#pat...