Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Neil Saunders
@njsaunders
Thanks again. I tried replacing XML runner with a text runner, using parameterized methods with pytest, and at least 3 other workaround attempts, but couldn't get it working.
Arcadiy Ivanov
@arcivanov
@njsaunders thanks a lot!
Arcadiy Ivanov
@arcivanov
@njsaunders you should be all set, please use -pre build
Neil Saunders
@njsaunders
@arcivanov Fantastic - Thank you so much!
Arcadiy Ivanov
@arcivanov
NP!
Arcadiy Ivanov
@arcivanov
@/all 0.12.7 has been released with recent important fixes. Please see the release notes: https://pybuilder.io/release-notes/v0.12.x#version-0127
esc
@esc
👍
Arcadiy Ivanov
@arcivanov
@/all version 0.12.8 released with updated vendored dependencies and pdoc3 for Python 3.x in pdoc plugin
looks like PIP install for packaged pip now works much faster too for venv generation
esc
@esc
:+1:
Arcadiy Ivanov
@arcivanov
@/all Question: Who uses Anaconda with PyBuilder?
esc
@esc
Not for a long time
Arcadiy Ivanov
@arcivanov
out of people who actually still use PyBuilder @esc :)
esc
@esc
I have a few projects that still use it
but I no longer use it work work
Arcadiy Ivanov
@arcivanov
ah, nice! :)
esc
@esc
I actually work at Anaconda now, interestingly enough
Arcadiy Ivanov
@arcivanov
Yeah, I follow your Twitter :)
Arcadiy Ivanov
@arcivanov
@/all FYI new feature disabling VEnv management in PyBuilder: https://pybuilder.io/articles/news/no-virtualenv-option
Arcadiy Ivanov
@arcivanov
@/all PyBuilder 0.12.10 released with full support for Python 3.9
esc
@esc
:tada:
esc
@esc
after ghosting around this project for several years, I will resign, it was nice to know you all.
/exit
Arcadiy Ivanov
@arcivanov
sorry to see you go @esc
good luck!
Hugues de Mazancourt
@mazancourt_twitter
Hi all, I have a python package that relies on ad-hoc machine-learning models. I would like to have these models built while packaging so that the models stay up-to-date with the code at each release. How can I achieve this through pybuilder ? I created a task that "imports mypackage" but mypackage (which is being built) is not available at build-time. Any hint ?
Arcadiy Ivanov
@arcivanov
@mazancourt_twitter Hi, you can do the import in the task function after you know the artifacts were generated
Hugues de Mazancourt
@mazancourt_twitter
Yes, but the goal of the task will be to generate files for the (final version of the) artifact. At which step do I have the source files available in the build environment but the package is not finalized ?
Arcadiy Ivanov
@arcivanov
So you create two tasks
1 task generates files
1 task imports those files
there are more intricate details there of course
you train the model in one task, which you can put prior to packaging
now your generated packaging will be available in integration tests phase
so @mazancourt_twitter if you create "integration tests" and train your model there, this will work
if you want to train your model prior to packaging proper
Hugues de Mazancourt
@mazancourt_twitter
But this would mean having the package currently being built as a dependency of "build.py" (which I meant by importing it). Is it possible ?
Arcadiy Ivanov
@arcivanov
you can do it in "unit test" phase
the package is not yet created but the sources are available to you at that phase
you can generate the files in the compile phase
Hugues de Mazancourt
@mazancourt_twitter
So the unit test would generate files in the source tree that will then be included in the package, is this correct ?
Arcadiy Ivanov
@arcivanov
you can generate the files in "compile" task
one sec, I'll give you an example
This is for PyBuilder itself
Arcadiy Ivanov
@arcivanov
$ pyb -T
Tasks that will be executed for project "pybuilder":
                  prepare - Prepares the project for building. Creates target VEnvs  
          compile_sources - Compiles source files that need compilation.
                            depends on tasks: prepare
           run_unit_tests - Runs all unit tests. Runs unit tests based on Python's unittest module
                            depends on tasks: compile_sources
                  analyze - Execute analysis plugins. 
                            depends on tasks: run_unit_tests prepare
                  package - Packages the application. Package a python application. 
                            depends on tasks: compile_sources run_unit_tests(optional)
    run_integration_tests - Runs integration tests on the packaged application.  Runs integration tests based on Python's unittest module
                            depends on tasks: package
                   verify - Verifies the project and possibly integration tests.
                            depends on tasks: run_integration_tests(optional)
                 coverage - <no description available>
                            depends on tasks: verify
             compile_docs - Generates HTML documentation tree with pdoc
                            depends on tasks: compile_sources verify
                  publish - Publishes the project.
                            depends on tasks: package verify(optional) coverage(optional) compile_docs(optional)
you can create a task that depends on compile_sources and makes run_unit_tests a dependent
Hugues de Mazancourt
@mazancourt_twitter
Thanks! I'll try it.
Arcadiy Ivanov
@arcivanov
NP, sorry for late reply - gitter notifications are not the best
Hugues de Mazancourt
@mazancourt_twitter
no problem. Late reply is far better than no reply :)
Arcadiy Ivanov
@arcivanov
:smile: