-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor make_virtual_package * Refactor macos_version * Add new windows_version * Add __win virtual package version * Use new util::windows_version * Add virtual packages version test * Add Plaform os detection * Refactor linux_version * Fix linux_version on mac with unix_name_version
- Loading branch information
1 parent
3a31b83
commit 3275347
Showing
24 changed files
with
638 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2024, QuantStack and Mamba Contributors | ||
// | ||
// Distributed under the terms of the BSD 3-Clause License. | ||
// | ||
// The full license is in the file LICENSE, distributed with this software. | ||
|
||
#ifndef MAMBA_UTIL_OS_HPP | ||
#define MAMBA_UTIL_OS_HPP | ||
|
||
#include <string> | ||
|
||
namespace mamba::util | ||
{ | ||
struct OSError | ||
{ | ||
std::string message = {}; | ||
}; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2024, QuantStack and Mamba Contributors | ||
// | ||
// Distributed under the terms of the BSD 3-Clause License. | ||
// | ||
// The full license is in the file LICENSE, distributed with this software. | ||
|
||
#ifndef MAMBA_UTIL_OS_LINUX_HPP | ||
#define MAMBA_UTIL_OS_LINUX_HPP | ||
|
||
#include <string> | ||
|
||
#include <tl/expected.hpp> | ||
|
||
#include "mamba/util/os.hpp" | ||
|
||
namespace mamba::util | ||
{ | ||
[[nodiscard]] auto linux_version() -> tl::expected<std::string, OSError>; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2024, QuantStack and Mamba Contributors | ||
// | ||
// Distributed under the terms of the BSD 3-Clause License. | ||
// | ||
// The full license is in the file LICENSE, distributed with this software. | ||
|
||
#ifndef MAMBA_UTIL_OS_OSX_HPP | ||
#define MAMBA_UTIL_OS_OSX_HPP | ||
|
||
#include <string> | ||
|
||
#include <tl/expected.hpp> | ||
|
||
#include "mamba/util/os.hpp" | ||
|
||
namespace mamba::util | ||
{ | ||
[[nodiscard]] auto osx_version() -> tl::expected<std::string, OSError>; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2024, QuantStack and Mamba Contributors | ||
// | ||
// Distributed under the terms of the BSD 3-Clause License. | ||
// | ||
// The full license is in the file LICENSE, distributed with this software. | ||
|
||
#ifndef MAMBA_UTIL_OS_UNIX_HPP | ||
#define MAMBA_UTIL_OS_UNIX_HPP | ||
|
||
#include <string> | ||
#include <utility> | ||
|
||
#include <tl/expected.hpp> | ||
|
||
#include "mamba/util/os.hpp" | ||
|
||
namespace mamba::util | ||
{ | ||
[[nodiscard]] auto unix_name_version() | ||
-> tl::expected<std::pair<std::string, std::string>, OSError>; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.