!jiuwgDGkuoWhETTJtM:matrix.org

pykeepass

27 Members
pykeepass and friends6 Servers

Load older messages


SenderMessageTime
30 Dec 2023
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
it's to prevent the tests from being included in the release. Someone requested that at some point, but I can't find the PR
* It was https://github.com/libkeepass/pykeepass/pull/261
19:57:38
@OR:matrix.orgOvsyanka *

It was https://github.com/libkeepass/pykeepass/pull/261

I did some experiments and as I see, make dist command creates build directory which contains test if I remove packages directive.
At the same time actual artifacts (whl and tar.gz) still doesn't contain the tests.

When I use poetry build there is no build directory at all and the artifacts doesn't contain the tests.

So, the question is - is it okay to not have build directory after the building process? As I understand that is just some temporary data

20:03:28
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
I think it's better to just update version.py and add a "tag" target to the makefile. There is even already a 'version' variable in there

Why do you think it is better? Don't you think it is better to eliminate possibility to have inconsistence betveen git and the source code regarding the version information?

Honestly, It is harder to me to make it take version value from the version.py because I don't know yet how to do it, but I figured the workflow I described - take the version from the git and set it in the packaged version.py and package metadata.

20:22:09
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
I think it's better to just update version.py and add a "tag" target to the makefile. There is even already a 'version' variable in there
*

Why do you think it is better? Don't you think it is a good idea to eliminate possibility to have inconsistence betveen git and the source code regarding the version information?

Honestly, It is harder to me to make it take version value from the version.py because I don't know yet how to do it, but I figured the workflow I described - take the version from the git and set it in the packaged version.py and package metadata.

20:22:26
@OR:matrix.orgOvsyanka *

Why do you think it is better? Don't you think it is a good idea to eliminate possibility to have inconsistence between git and the source code regarding the version information?

Honestly, It is harder to me to make it take version value from the version.py because I don't know yet how to do it, but I figured the workflow I described - take the version from the git and set it in the packaged version.py and package metadata.

20:22:34
@Evidlo:matrix.orgevidloI mean take the version from version.py. It will be easier because that's what I already for determining the release filename20:24:12
@Evidlo:matrix.orgevidlo* I mean take the version from version.py. It will be easier because that's what I already do for determining the release filename20:24:24
@OR:matrix.orgOvsyankaDo you know how to do it using pyproject.toml and poetry?20:24:50
@Evidlo:matrix.orgevidloit seems the recommended way is to pull from pyproject.toml like here: https://stackoverflow.com/questions/67085041/how-to-specify-version-in-only-one-place-when-using-pyproject-toml20:26:33
@Evidlo:matrix.orgevidloeither way, not from git tags20:26:43
@OR:matrix.orgOvsyanka It is no problem to have it hardcoded in the pyproject.toml. It is easy-peasy =)
We were talking about taking the version from version.py, right? And that I don't know yet how to do.,
20:29:26
@OR:matrix.orgOvsyanka * It is no problem to have it hardcoded in the pyproject.toml. It is easy-peasy =)
We were talking about taking the version from version.py, right? And that I don't know yet how to do.
20:29:28
@Evidlo:matrix.orgevidloI don't mind it being in pyproject.toml20:29:46
@OR:matrix.orgOvsyankaThe workflow I was suggesting it to have "0.0.0" version as a stub in the pyproject.toml and version.py and have it generated only for the build artifacts on the build time based on the git tag20:30:35
@Evidlo:matrix.orgevidloI'd rather it be in pyproject.toml and everything sources it from there20:30:59
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
I don't mind it being in pyproject.toml
Okay, let it be that way since you don't like git-derived versioning for some reason =)
20:32:06
@OR:matrix.orgOvsyanka evidlo: what do you think about removing support for python 3.6, 3.7? They reached the EOL and current version of poetry doesn't support them. 22:40:20
@OR:matrix.orgOvsyanka * evidlo: what do you think about removing support for python 3.6, 3.7? They reached the EOL (https://devguide.python.org/versions/#versions) and seems that current version of poetry doesn't support them. 22:40:43
@OR:matrix.orgOvsyanka * evidlo: what do you think about removing support for python 3.6, 3.7? They reached the EOL (https://devguide.python.org/versions/#versions) and seems that current version of poetry doesn't support them, hence failed builds https://github.com/Ovsyanka/pykeepass/actions/workflows/ci.yaml 22:41:05
@OR:matrix.orgOvsyankaFor now I'll try to use previous version of poetry, but this is something to think of.22:41:43
@OR:matrix.orgOvsyankaAnd poetry 1.1.13 (the last version that supports python 3.6) doesn't support dependency groups (I used one for the sphinx dependency)... So I would like to hear from you if you gonna drop support of python 3.6 and|or 3.7 before trying to solve that.22:54:40
@OR:matrix.orgOvsyankaYou can see my current work here, bu the way. I didn't prepare this fo PR yet, but it is mostly done. https://github.com/Ovsyanka/pykeepass/tree/poetry-migration22:55:46
@Evidlo:matrix.orgevidloLooks good. I'd ask to move version, dependencies, description, authors to a [project] section instead of a poetry-specific one23:04:59
@OR:matrix.orgOvsyankaI am not sure it is possible, but I'll look closer into it23:05:29
@Evidlo:matrix.orgevidlohttps://stackoverflow.com/questions/75408641/whats-the-difference-between-the-tool-poetry-and-project-tables-in-pyprojec23:06:58
@Evidlo:matrix.orgevidloAn example with optional deps: https://discuss.python.org/t/pyproject-toml-optional-dependencies-redundancy-aka-dry-extras/842823:07:48
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
https://stackoverflow.com/questions/75408641/whats-the-difference-between-the-tool-poetry-and-project-tables-in-pyprojec
That is what I talked about. As I understand, currently there is no way to tell poetry to use [project] instead of [tool.poetry]. Or did I read that wrong?
23:10:20
@OR:matrix.orgOvsyankaIf you like to read about the reasoning why it isn't support PEP-621 yet, I think this is the good starting point https://github.com/python-poetry/poetry/issues/3332#issuecomment-179351212423:31:52
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
An example with optional deps: https://discuss.python.org/t/pyproject-toml-optional-dependencies-redundancy-aka-dry-extras/8428
Is it about groups in pyproject.toml? If so, should I read that as you are not gonna drop python 3.6,3.7 for now?
23:35:03
@OR:matrix.orgOvsyanka
In reply to @Evidlo:matrix.org
An example with optional deps: https://discuss.python.org/t/pyproject-toml-optional-dependencies-redundancy-aka-dry-extras/8428
* Are you suggesting the alternative way to specify sphinx dependency in pyproject.toml without using groups?
If so, should I read that as you are not gonna drop python 3.6,3.7 for now?
23:42:05

Show newer messages


Back to Room ListRoom Version: 1