Commit Graph

30 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 392c5f15c2
build: Remove server (#3685)
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
2024-12-11 17:05:42 +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
Ayaz Salikhov 7623caa96c
Remove Taskfile from `environment-dev-extra.yml` (#3597) 2024-11-14 12:49:13 +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
Hind-M 3e1e97b0e6
Add checking typos to pre-commit (#3278)
* Add checking typos to pre-commit

* Add missed corrections

* Add more corrections to doc
2024-05-27 09:16:14 +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
Josh Chorlton 57a6a691be
Support multiple env yaml specs (#2993)
* tested and working

* docs update

* disallow multiple spec types

* add test for only one yaml specifies channel

* fix install yaml test

* Update micromamba/tests/test_create.py

Co-authored-by: Jonas Haag <jonas@lophus.org>

* Update micromamba/tests/test_create.py

Co-authored-by: Jonas Haag <jonas@lophus.org>

* suggestions

* separate loop

* appease the linter

* another test

---------

Co-authored-by: Jonas Haag <jonas@lophus.org>
2023-12-19 08:56:59 +01:00
Johan Mabille 4f2d1ebd43
Added mamba as dynamic build of micromamba (#3060) 2023-12-14 14:22:31 +01:00
Antoine Prouvost 1230b92094
Move to Ruff (#3011)
* Use Ruff LSP

* Remove unused imports

* More Ruff fixes

* Remove unused test vars

* Explicit import

* Explicit import

* Explicit import

* Explicit import

* Explicit import

* Warning fixes

* Import fixtures

* Add ruff pre-commit

* Remove pre-commits checks superceded by ruff

* Fix imports

* Fix ruff warning

* Fix test_linking fixtures

* Fix typo

* Fix test_update fixture import

* Python line-length to 100

* Reformat Python code line length

* Fix typo
2023-11-27 19:10:34 +01:00
Antoine Prouvost ddea95e16c
Add install from source instructions (#2977)
* Update static environment files

* Refactor installation pages

* Add install from source instructions
2023-11-15 08:47:53 +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 d116ff8917
Add cmake-format (#2962)
* Add cmake-format

* Apply cmake-format
2023-11-07 11:08:26 +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
Antoine Prouvost c33df03cba
Dev workflow (#2948)
* Add dev-extra tools

* Refactor CMake Presets

* Add taskfile

* Rename Taskfile

* Add .gitignore entry
2023-10-30 12:21:25 +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