-
Notifications
You must be signed in to change notification settings - Fork 2k
simple_enum: add new version 0.8.11 #26028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
toge
wants to merge
10
commits into
conan-io:master
Choose a base branch
from
toge:simple_enum-0.8.4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+14
−24
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
221e88f
simple_enum: add version 0.8.5
toge 0179b52
require C++23 on 0.8.4
toge f78d820
require glaze
toge 9ce9893
update 0.8.5
toge 8123ba8
update 0.8.6
toge 5a4629f
downgrade 0.8.4 (official release)
toge f433749
update 0.8.7
toge 3aef522
update 0.8.9
toge 3fe7b7b
update 0.8.11
toge 172dc1a
Merge branch 'conan-io:master' into simple_enum-0.8.4
toge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
sources: | ||
"0.8.11": | ||
url: "https://github.com/arturbac/simple_enum/archive/refs/tags/v0.8.11.tar.gz" | ||
sha256: "dae600d9baf3698ec2b9efe9a7ed2f8a417a7b665a841881fcf97e536c68dfac" | ||
"0.8.0": | ||
url: "https://github.com/arturbac/simple_enum/archive/refs/tags/v0.8.0.tar.gz" | ||
sha256: "b32e723ddb29b6cb2ab93f2376157ee6fd7a4f3c170edddb6a3fb7186068e6ee" |
This file contains hidden or 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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
from conan import ConanFile | ||
from conan.errors import ConanInvalidConfiguration | ||
from conan.tools.build import check_min_cppstd | ||
from conan.tools.files import copy, export_conandata_patches, get | ||
from conan.tools.files import copy, get | ||
from conan.tools.layout import basic_layout | ||
from conan.tools.scm import Version | ||
import os | ||
|
||
required_conan_version = ">=1.52.0" | ||
required_conan_version = ">=2.0.9" | ||
|
||
class SimpleEnumConan(ConanFile): | ||
name = "simple_enum" | ||
|
@@ -21,35 +20,19 @@ class SimpleEnumConan(ConanFile): | |
|
||
@property | ||
def _min_cppstd(self): | ||
return 20 | ||
|
||
@property | ||
def _compilers_minimum_version(self): | ||
return { | ||
"gcc": "11", | ||
"clang": "12", | ||
"apple-clang": "14", # apple-clang/13 doesn't support std::convertible_to | ||
"Visual Studio": "16", | ||
"msvc": "192", | ||
} | ||
|
||
def export_sources(self): | ||
export_conandata_patches(self) | ||
return 23 if Version(self.version) >= "0.8.4" else 17 | ||
|
||
def layout(self): | ||
basic_layout(self, src_folder="src") | ||
|
||
def requirements(self): | ||
self.requires("glaze/4.0.1") | ||
|
||
def package_id(self): | ||
self.info.clear() | ||
|
||
def validate(self): | ||
if self.settings.compiler.get_safe("cppstd"): | ||
check_min_cppstd(self, self._min_cppstd) | ||
minimum_version = self._compilers_minimum_version.get(str(self.settings.compiler), False) | ||
if minimum_version and Version(self.settings.compiler.version) < minimum_version: | ||
raise ConanInvalidConfiguration( | ||
f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support." | ||
) | ||
check_min_cppstd(self, self._min_cppstd) | ||
|
||
def source(self): | ||
get(self, **self.conan_data["sources"][self.version], strip_root=True) | ||
|
@@ -72,3 +55,5 @@ def package(self): | |
def package_info(self): | ||
self.cpp_info.bindirs = [] | ||
self.cpp_info.libdirs = [] | ||
|
||
self.cpp_info.defines.append("SIMPLE_ENUM_GLZ_3_1_x") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I may be missing something here, where does this come from? |
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
versions: | ||
"0.8.11": | ||
folder: all | ||
"0.8.0": | ||
folder: all |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the public headers of simple_enum dont make any references to glaze whatsoever - in the codebase it seems like its used only in examples and tests, but not the actual header library. it's documented as being opt-in by the end user, to include both, so I'm not sure if this is required here