Commit Graph

86 Commits

Author SHA1 Message Date
Adrien Delsalle bff16c2bdc
Split projects (#1219)
* make a clear split between CMake targets
* split versions between libmamba and mamba
* add libmambapy target for python bindings and make mamba depend on it
* rename CMake options to make them homogeneous, simplify CMake
* remove termcolor from thirdparties, use it as a dependency
* remove unnecessary version global vars and convert to functions
* update CI workflows
2021-10-26 16:01:53 +02:00
Wolf Vollprecht 7ea1ab9110 improve explicit transactions and remove package function 2021-10-15 09:47:05 +02:00
Adrien Delsalle af71ae1e5c
Support CLI11 2.0 (#1086) 2021-07-15 17:43:49 +02:00
Wolf Vollprecht 5ab06d176f
add mamba shell init (#1078) 2021-07-13 16:56:57 +02:00
Isuru Fernando be715ebdaf
Add mamba.sh so that reactivating and conda environments work (#1075) 2021-07-12 08:22:05 +02:00
Wolf Vollprecht 81a490a046
add menu install shortcut and more long paths support for Windows (#975) 2021-06-17 13:28:36 +02:00
Adrien DELSALLE 7fd801c52c
remove GHC_WIN_DISABLE_AUTO_PREFIXES definition
resize the buffer before returning self exe
avoids long path prefix on Windows
test long prefix activation
add documentation
2021-06-10 17:16:22 +02:00
Wolf Vollprecht d9eb271ce3
Merge pull request #928 from JohanMabille/progress_bar
Progress bar
2021-05-12 17:58:24 +02:00
Adrien DELSALLE 95cd1a75af
use openssl cryptographic functions
remove libsodium dep
add bin2hex and hex2bin utils from libsodium
2021-05-11 18:31:57 +02:00
Johan Mabille 8adfc72a47 Refactored progress bars 2021-05-10 11:45:52 +02:00
Wolf Vollprecht 798447cce3 make libsodium optional, fix winreg tests 2021-05-01 07:21:37 +02:00
Adrien Delsalle 133284bddc
Add initial crypto sign and verify (#916) 2021-04-30 11:27:16 +02:00
Adrien DELSALLE b4bbd509d3 allow ultra-dry runs on final executable
add an extra debug config that is required for config and context debug prints
update CMakeLists, CI scripts and tests
2021-04-28 07:39:07 +02:00
Adrien Delsalle d5505b534f
only init curl ssl on micromamba static (#895) 2021-04-23 11:43:31 +02:00
Wolf Vollprecht e5bb0b12eb initial token handling for micromamba 2021-04-22 19:28:37 +02:00
Adrien DELSALLE b58a853987 suspend use of long path on windows 2021-04-15 11:30:20 +02:00
Adrien DELSALLE 35afe8d1ca fix support of fs::path on windows
fix tests
2021-04-14 19:07:50 +02:00
Adrien DELSALLE 08483f9ee6 add a C-API for the high-level API
fix remove operation that was exiting
2021-04-02 18:46:09 +02:00
Adrien Delsalle 99157eef84
Add a high-level API (#824) 2021-04-02 18:41:15 +02:00
Adrien Delsalle 79d3342a04
mamba core API (#821) 2021-04-01 11:12:01 +02:00
Wolf Vollprecht a04d2de988 add context debugging config flags 2021-03-31 17:11:26 +02:00
Adrien DELSALLE 92c94787a1 [WIP] refactor configuration
Configurable is a trait
Configuration is a collection of traits
declare reference to Context at construction
improve Configuration::dump method, use it for multiple purpose
add config describe umamba sub command
improve config list sub command
refactor cpp and python tests
add capability to define to link cli config with Configuration/Configurable
register cli options/flags on configurables
add capability to declare and get config from env var
merge configuration from rc files, cli or env vars
make rc-file and no-rc exclusive
rc-file has to be a valid file
2021-03-19 19:48:00 +01:00
Wolf Vollprecht 7140b7db9f add initial virtual packages handling for micromamba
add dist virtual packages
add cuda virtual package
load virtual packages in PrefixData
add tests
add glibc handling using confstr
load virtual packages on install/update/create ops only
add umamba info sub command
add capability to add virtual packages to PrefixData
add __archspec virtual package
add capability to override virtual packages
refactor win environment variable reading and setting
2021-03-03 15:45:39 +01:00
Adrien DELSALLE 4f6e1205d9 pin python specification
add pinned_packages from rc files to specs
add prefix pinned file content to specs
add pinned_packages to context and load_config
add no-pin flag to create and install cli subcoms
add tests
2021-02-25 11:58:06 +01:00
Adrien DELSALLE 65658ec1b9 read config from rc files
add CLI command and subcommands for config
add shrink_user free function
add util to unindent literal strings
store sources of config values
add capability to print config and sources
activate override channels option
add method to load config in context
call this method in CLI callbacks
store valid sources
display if a source is invalid in config sources subcommand
add tests
add MAMBA_USE_YAML_CPP definition
use it to not include config related files when building with setup.py
add override_channels_enabled in context
get override_channels_enabled from config if available
add warning if override_channel is used when override_channels_enabled is false
2021-02-24 16:32:15 +01:00
Wolf Vollprecht b84e6f689a more uniform error handling in micromamba, and retry when solve fails / repodata corrupted 2021-01-13 18:24:53 +01:00
Wolf Vollprecht 1c2cf758b0 clean up and move cmake lists 2020-11-11 11:18:05 +01:00
Wolf Vollprecht 8638a020a2 use reproc 2020-11-09 06:46:31 +01:00
Wolf Vollprecht e696c5c272 add conda_exe.hpp and bin2header utility 2020-11-09 06:46:31 +01:00
Wolf Vollprecht 509b1bfddd add shell_init.hpp to installed headers 2020-10-06 05:56:15 +02:00
Wolf Vollprecht 863e5e0106
improvements to micromamba (multiple files and override_channels noop) (#524)
* improvements to micromamba (multiple files and override_channels noop)

* format
2020-10-01 22:36:32 +02:00
Wolf Vollprecht a991afabe6 use conda-package-handling code 2020-10-01 15:02:42 +02:00
Wolf Vollprecht 7524490eee attempt fixing the CI 2020-09-17 18:40:29 +02:00
Wolf Vollprecht d77709cd6e Update CMakeLists to link stdlibc++ correctly again 2020-09-17 08:07:34 +02:00
Wolf Vollprecht b60e1b9c61 add support for windows micromamba 2020-09-16 16:49:35 +02:00
Wolf Vollprecht bfcc337b20 initial work to read environment files in micromamba 2020-09-16 11:01:44 +02:00
Mariana Meireles 240c71b6c0 Add missing libs 2020-08-27 19:09:09 +02:00
Wolf Vollprecht 8d3afcbb4f fix static linking for micromamba with nghttp2 and release 0.5.0 2020-08-27 11:34:08 +02:00
Johan Mabille 1d75b476d1 Fixed CMakeLists.txt 2020-08-25 11:20:44 +02:00
Johan Mabille 775ae1f0fd ghc::filesystem is now an exernal dependency 2020-08-25 01:47:26 +02:00
Mariana Meireles 3dddeca2e8 Removes duplication of include dir of mamba inside env creation 2020-08-24 15:34:44 +02:00
Johan Mabille 27ef70611f Added BUILD_SHARED and BUILD_STATIC options 2020-08-21 14:51:14 +02:00
Johan Mabille 7b4436af86 Moved thirdparty headers to src 2020-08-17 15:28:13 +02:00
Johan Mabille 804ebcff1a Fixed test CMakeLists.txt and include_directories 2020-08-14 01:47:36 +02:00
Mariana Meireles bca8ca1078 Makes mamba easy to find to other projects dependable on it 2020-08-13 19:25:23 +02:00
Marcelo Trevisani 5c2951cc18 Add pre-commit configuration
Run pre-commit
Fixed small problems
Fixed linters problems

Improve conditional expression
2020-08-02 18:58:09 +01:00
Wolf Vollprecht 09b71bf8cc fix url handler 2020-07-28 15:55:18 +02:00
Johan Mabille 9cd961c19d Implemented interruptible threads 2020-07-22 10:57:18 +02:00
Sylvain Corlay cf6017edd7 Add copyright headers 2020-07-10 11:08:44 +02:00
Wolf Vollprecht 4edb49c1df add ppc64le detection 2020-07-02 10:12:02 +02:00