Commit Graph

21 Commits

Author SHA1 Message Date
Ayaz Salikhov d0c7458839
maint: Add prettier pre-commit hook (#3663) 2025-01-13 09:09:07 +01:00
Julien Jerphanion 178593351b
fix: Skip empty lines in environment spec files (#3662)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Klaim <Klaim@users.noreply.github.com>
2024-12-09 08:55:39 +01:00
Ayaz Salikhov c3a2c1c66e
maint: Use Catch2 instead of doctest (#3618) 2024-12-06 08:57:33 +01:00
Julien Jerphanion 0ad7255b24
maint: Unpin libcurl<8.10 (#3548)
To see if 8.10.1 solved the problem.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-10-17 17:00:11 +02:00
Wolf Vollprecht a261cd461d
fix: add warning when using defaults (#3434)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Sylvain Corlay <sylvain.corlay@gmail.com>
2024-09-12 19:28:40 +02:00
Julien Jerphanion 0a01ecfc9d
fix: Reduce logging system overhead (#3416)
* test: Non-regression test

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* fix: Use penultimate libsolv's log level

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Only run `test_env_spdlog_overhead_regression` on Linux

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Add time-out on test and rename conda env

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Decrease timout to 15 seconds and use dry-run

A dry run takes slightly less than 10 seconds.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Use bounded value of `output_params.verbosity` as in 1.x

See: https://github.com/mamba-org/mamba/blob/1.x/libmamba/src/core/pool.cpp#L72

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Instead define and use and alternative `set_level`

I was hesitating between the previous solution and
this one (which is not really ideal either) but
which at least does not leak the `Context`.

Friend function could be used but we get this kind of
issue, but I am currently meeting this problem:
https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2174

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Revert "Instead define and use and alternative `set_level`"

This reverts commit f1f41b71d0.

* Simply hardcode the verbosity level to 3

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Increase timeout from 15 to 30 seconds

15 seconds is not sufficient as shown on the CI.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* From 30 sec to 60 sec

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* DEBUG No timeout

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* test: Remove edge-case for unlinks

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* test: Adapt number of unlinks on Linux

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Assert success

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* docs: Update comments

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* `const`-qualify `level`

* Use 100 seconds for the timeout

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

Co-authored-by: Hind Montassif <hind.montassif@gmail.com>

* Use 200 seconds for the timeout

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Adapt according to `1.x`'s behavior

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* fixup! Adapt according to `1.x`'s behavior

* Revert changes to handle CI failures

This is handled by another PR.

See: https://github.com/mamba-org/mamba/pull/3417

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
Co-authored-by: Hind Montassif <hind.montassif@gmail.com>
2024-08-29 14:03:18 +02:00
Julien Jerphanion 0bd2ee6ecf
Define `etc/profile.d/mamba.sh` and install it (#3413)
* Install profile.d directory

* Format

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Package etc/profile.d/mamba.sh

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Just install mamba.sh directly

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Modify env specification to invalidate its cache

FYI, the "build" package has been yanked:
https://prefix.dev/channels/conda-forge/packages/build

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Empty commit to retrigger CI

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Change output path of the script

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Revert uneeded changes

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Co-authored-by: Sylvain Corlay <sylvain.corlay@gmail.com>
2024-08-26 14:14:55 +02:00
jaimergp d662921715
Unpin cryptography, python, and add make to environment-dev.yml (#3352) 2024-08-01 14:27:42 +02:00
Julien Jerphanion d0d7eea49a
build: Support fmt 11 (follow-up) (#3371)
* build: Support fmt 11

A few other elements were required, as observed in:
https://github.com/mamba-org/mamba/pull/3352

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Unpin python on 3.9

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* ci: use libcxx<18 for macOS

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

* Add TODO comment

Co-authored-by: Hind-M <Hind-M@users.noreply.github.com>

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>

---------

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-07-30 15:57:15 +02:00
Johan Mabille dcd777fbd1
Test with xtensor-python instead of unmaintained xframe (#3286)
Upgraded tests to use packages available on osx-arm64
2024-05-03 18:02:33 +02:00
Antoine Prouvost 3a6d010e38
Remove unmaintained and broken pytest-lazy-fixture (#3193)
Remove pytest-lazy-fixtures
2024-02-19 13:31:52 -05:00
Antoine Prouvost de69846617
Add Breathe for API documentation (#3087)
* Add Doxygen+Breathe for C++ doc

* Rename doc sections

* Fix Taskfile

* Add mamba::specs reference

* Fix RTD file
2024-01-02 16:23:03 +01:00
Antoine Prouvost 09cbb34e54
Simplify and correct development documention (#2975)
* Use a single file for contributing guidelines

* Add doc builds to taskfile

* Fix sphinx warnings

* Simplify development doc

* Document Taskfile

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Update dev_environment.rst

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>

* Add test-docs task

---------

Co-authored-by: Johan Mabille <johan.mabille@gmail.com>
2023-11-14 11:59:44 +01:00
Antoine Prouvost e6967058a9
Update dependencies on OSX (#2976)
Upadte dependencies on OSX
2023-11-14 08:51:15 +01:00
Antoine Prouvost 0d42e81667
Modularize libmambapy (#2960)
* Modularize libmambapy

* Add test-libmambapy to Taskfile

* Fix libmamba installation

* Fix standalone libmambapy configuration

* Change libmambapy layout

* Add scikit-build

* Fix libmambapy extension name

* Add submodules shims

* Fix libmambaoy tests

* Fix stubgen

* Adapt libmambapy tests to scikit-build

* Read version from Python

* Replace confusing names
2023-11-10 18:29:16 +01:00
Johan Mabille 21c6d73680
removed dependency on conda-index (#2964) 2023-11-08 22:15:05 +01:00
Antoine Prouvost 8683078464
Refactor CI and libamambapy tests (on Win) (#2955)
* TMP disable Unix tests

* Try refactor win CI

* Add libmambapy tests

* Run Windows libamamba tests via CMake

* Add Windows menuinst dependency

* Fix typo

* Debug libmambapy tests Win

* Add micromamba tests windows

* Call test_libmamba from different paths

* Merge workflow launchers

* Fix libmamba tests win

* Fxi

* Fix workspace key

* DEbug win

* Implement local channel tests as part of the intergration tests

* Try Win libmamba tests bash

* Cleanup

* Restore Unix tests

* Make test local channel noarch

* Fix workspace action number

* No error on test cleanup in CI

* Reduce number of threads to conda-index

* Disable local channel tests on Windows
2023-11-03 14:07:54 +01:00
Antoine Prouvost fdf2b65a27
Refactor CI and libamambapy tests (on Unix) (#2952)
* Add simple libmambapy test

* Use CMakePresets in CI

* Share workspace between jobs

* Add Conda dependency

* Remove CMake STRIP

* Fix menuinst skipping

* Refactor CMakePresets

* Change ccache key

* Add pkg-config
2023-11-02 13:55:39 +01:00
Roman Inflianskas eb56046c18
Fix micromamba test dependency conda-package-handling (#2945) 2023-10-29 13:46:38 +02:00
Antoine Prouvost a38196e284
Move reposerver tests to micromamba (#2941)
* Move reposerver tests to micromamba

* Add micromamba channel data

* Remove mamba test

* Fix mamba path

* Restore mamba files

* Fix mamba code
2023-10-26 22:17:48 +02:00
Antoine Prouvost 6592c84084
Combine dev environments (#2937) 2023-10-26 12:48:50 +02:00