"Loris Bennett" writes:
> Tony Flury writes:
>
>> On 07/10/2020 12:06, Loris Bennett wrote:
>>> Hi,
>>>
>>> I have written a program, which I can run on the command-line thus
>>>
>>>mypyprog --version
>>>
>>> and the get the version, which is currently derived from a variable in
>>> the main
Tony Flury writes:
> On 07/10/2020 12:06, Loris Bennett wrote:
>> Hi,
>>
>> I have written a program, which I can run on the command-line thus
>>
>>mypyprog --version
>>
>> and the get the version, which is currently derived from a variable in
>> the main module file.
>>
>> However, I also ha
On 07/10/2020 12:06, Loris Bennett wrote:
Hi,
I have written a program, which I can run on the command-line thus
mypyprog --version
and the get the version, which is currently derived from a variable in
the main module file.
However, I also have the version in an __init__.py file and in
Hi Heinrich,
Heinrich Kruger writes:
> ‐‐‐ Original Message ‐‐‐
> On Thursday, October 8, 2020 2:00 PM, Loris Bennett
> wrote:
>
>> Marco Sulla marco.sulla.pyt...@gmail.com writes:
>>
>> > On Wed, 7 Oct 2020 at 14:16, Loris Bennett loris.benn...@fu-berlin.de
>> > wrote:
>> >
>> > > But
‐‐‐ Original Message ‐‐‐
On Thursday, October 8, 2020 2:00 PM, Loris Bennett
wrote:
> Marco Sulla marco.sulla.pyt...@gmail.com writes:
>
> > On Wed, 7 Oct 2020 at 14:16, Loris Bennett loris.benn...@fu-berlin.de
> > wrote:
> >
> > > But the toml file isn't part of the distribution and so
Marco Sulla writes:
> On Wed, 7 Oct 2020 at 14:16, Loris Bennett
> wrote:
>
>> But the toml file isn't part of the distribution and so it won't be
>> installed.
>>
>> I suppose I could write a separate program which parses the toml file
>> and then just injects the version into __init__.py.
>
>
Hi Marco,
Marco Sulla writes:
> In __init__.py, you can parse the toml file, extract the version and
> store it in a __version__ variable.
But the toml file isn't part of the distribution and so it won't be
installed.
I suppose I could write a separate program which parses the toml file
and th
On Wed, 7 Oct 2020 at 14:16, Loris Bennett wrote:
> But the toml file isn't part of the distribution and so it won't be
> installed.
>
> I suppose I could write a separate program which parses the toml file
> and then just injects the version into __init__.py.
Yes, I do not know poetry, but I sup
In __init__.py, you can parse the toml file, extract the version and
store it in a __version__ variable.
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
I have written a program, which I can run on the command-line thus
mypyprog --version
and the get the version, which is currently derived from a variable in
the main module file.
However, I also have the version in an __init__.py file and in a
pyproject.toml (as I'm using poetry, otherwis
10 matches
Mail list logo