• My first attempt at a package.

    From Antoon Pardon@21:1/5 to All on Tue Jul 19 15:58:41 2022
    I am writing a python package which has the following structure

    PACKAGE
       * module1.py
       * module2.py
       * data.cfg

    However the data.cfg should be build at installation time.

    Can someone give advise on which packaging tool and how
    to use it, to accomplisch this.

    e.g. de data config.cfg should be build with the following linix command:

    $ date '+installed on %Y:%M:%d at %T' > data.cfg

    --
    Antoon Pardon.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Lowry-Duda@21:1/5 to Antoon Pardon on Tue Jul 19 08:57:40 2022
    On Tue, Jul 19, 2022 at 03:58:41PM +0200, Antoon Pardon wrote:
    I am writing a python package which has the following structure

    PACKAGE
      * module1.py
      * module2.py
      * data.cfg

    However the data.cfg should be build at installation time.

    Can someone give advise on which packaging tool and how
    to use it, to accomplisch this.

    A lot of good packaging information can be found at

    https://packaging.python.org/en/latest/

    and in particular at

    https://packaging.python.org/en/latest/tutorials/packaging-projects/

    and

    https://packaging.python.org/en/latest/overview/

    There are a couple of different ways to handle python packaging, and it
    can be a bit confusing. But following the tutorial on packaging is a
    good start.

    - DLD

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antoon Pardon@21:1/5 to All on Mon Jul 25 10:39:46 2022
    Op 19/07/2022 om 16:57 schreef David Lowry-Duda:
    On Tue, Jul 19, 2022 at 03:58:41PM +0200, Antoon Pardon wrote:
    I am writing a python package which has the following structure

    PACKAGE
       * module1.py
       * module2.py
       * data.cfg

    However the data.cfg should be build at installation time.

    Can someone give advise on which packaging tool and how
    to use it, to accomplisch this.

    A lot of good packaging information can be found at

    https://packaging.python.org/en/latest/

    and in particular at

    https://packaging.python.org/en/latest/tutorials/packaging-projects/

    and

    https://packaging.python.org/en/latest/overview/

    There are a couple of different ways to handle python packaging, and
    it can be a bit confusing. But following the tutorial on packaging is
    a good start.


    Yes it is, but it doesn't answer my question: How do I create a package
    in which a file is built at install time.
    I just want to build a configuration file that will among some other
    info contain the date the package
    was installed. The idea is that you can execute python3 -m
    <package>.release to know what version
    of the package you installed and when you installed it. But seem unable
    to find a way to do this.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Mon Jul 25 10:43:00 2022
    On Mon, 25 Jul 2022 10:39:46 +0200, Antoon Pardon <antoon.pardon@vub.be> declaimed the following:

    Yes it is, but it doesn't answer my question: How do I create a package
    in which a file is built at install time.
    I just want to build a configuration file that will among some other
    info contain the date the package
    was installed. The idea is that you can execute python3 -m
    <package>.release to know what version
    of the package you installed and when you installed it. But seem unable
    to find a way to do this.

    Does https://stackoverflow.com/questions/72320778/autostart-installed-package-with-python
    provide any hints?


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antoon Pardon@21:1/5 to All on Tue Jul 26 11:00:47 2022
    Op 25/07/2022 om 16:43 schreef Dennis Lee Bieber:
    On Mon, 25 Jul 2022 10:39:46 +0200, Antoon Pardon <antoon.pardon@vub.be> declaimed the following:

    Yes it is, but it doesn't answer my question: How do I create a package
    in which a file is built at install time.
    I just want to build a configuration file that will among some other
    info contain the date the package
    was installed. The idea is that you can execute python3 -m
    <package>.release to know what version
    of the package you installed and when you installed it. But seem unable
    to find a way to do this.
    Does https://stackoverflow.com/questions/72320778/autostart-installed-package-with-python
    provide any hints?

    Yes it does, thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)