Skip to content

Commit

Permalink
Merge branch 'release/0.26.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
lasote committed Sep 5, 2017
2 parents 9d7c2e9 + 8965468 commit 1936d10
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
3 changes: 1 addition & 2 deletions conans/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
SERVER_CAPABILITIES = [COMPLEX_SEARCH_CAPABILITY, ]


__version__ = '0.26.0'

__version__ = '0.26.1'
2 changes: 1 addition & 1 deletion conans/client/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
version: ["3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "4.0"]
libcxx: [libstdc++, libstdc++11, libc++]
apple-clang:
version: ["5.0", "5.1", "6.0", "6.1", "7.0", "7.3", "8.0", "8.1"]
version: ["5.0", "5.1", "6.0", "6.1", "7.0", "7.3", "8.0", "8.1", "9.0"]
libcxx: [libstdc++, libc++]
build_type: [None, Debug, Release]
Expand Down
2 changes: 1 addition & 1 deletion conans/client/generators/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _loads_deps_user_info(text):

@staticmethod
def _loads_cpp_info(text):
pattern = re.compile("^\[([a-zA-Z0-9_:-]+)\]([^\[]+)", re.MULTILINE)
pattern = re.compile(r"^\[([a-zA-Z0-9_:-\\.]+)\]([^\[]+)", re.MULTILINE)
result = DepsCppInfo()

try:
Expand Down
6 changes: 3 additions & 3 deletions conans/client/package_copier.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def copy(self, reference, package_ids, username, channel, force=False):
% str(dest_ref)):
return
rmdir(export_dest)
shutil.copytree(export_origin, export_dest)
shutil.copytree(export_origin, export_dest, symlinks=True)
self._user_io.out.info("Copied %s to %s" % (str(reference), str(dest_ref)))

export_sources_origin = self._paths.export_sources(reference, self._short_paths)
export_sources_dest = self._paths.export_sources(dest_ref, self._short_paths)
if os.path.exists(export_sources_dest):
rmdir(export_sources_dest)
shutil.copytree(export_sources_origin, export_sources_dest)
shutil.copytree(export_sources_origin, export_sources_dest, symlinks=True)
self._user_io.out.info("Copied sources %s to %s" % (str(reference), str(dest_ref)))

# Copy packages
Expand All @@ -48,5 +48,5 @@ def copy(self, reference, package_ids, username, channel, force=False):
% str(package_id)):
continue
rmdir(package_path_dest)
shutil.copytree(package_path_origin, package_path_dest)
shutil.copytree(package_path_origin, package_path_dest, symlinks=True)
self._user_io.out.info("Copied %s to %s" % (str(package_id), str(dest_ref)))
2 changes: 1 addition & 1 deletion conans/client/remote_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def filter_function(urls):
c_src_path = os.path.join(export_sources_folder, ".c_src")
if os.path.exists(c_src_path):
merge_directories(c_src_path, export_sources_folder)
shutil.rmtree(c_src_path)
rmdir(c_src_path)
for dirname, _, filenames in os.walk(export_sources_folder):
for fname in filenames:
touch(os.path.join(dirname, fname))
Expand Down
10 changes: 8 additions & 2 deletions conans/test/integration/symlinks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ class TestConan(ConanFile):
"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9")

self._check(client, ref, build=False)
def export_test(self):

def export_and_copy_test(self):
if platform.system() == "Windows":
return

Expand All @@ -120,12 +121,17 @@ def export_test(self):

client.run("export lasote/stable")
client.run("install --build -f=conanfile.txt")
client.run("copy Hello/0.1@lasote/stable team/testing")
conan_ref = ConanFileReference.loads("Hello/0.1@lasote/stable")
team_ref = ConanFileReference.loads("Hello/0.1@team/testing")
package_ref = PackageReference(conan_ref,
"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9")
team_package_ref = PackageReference(team_ref,
"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9")

for folder in [client.paths.export(conan_ref), client.paths.source(conan_ref),
client.paths.build(package_ref), client.paths.package(package_ref)]:
client.paths.build(package_ref), client.paths.package(package_ref),
client.paths.export(team_ref), client.paths.package(team_package_ref)]:
exported_lib = os.path.join(folder, lib_name)
exported_link = os.path.join(folder, link_name)
self.assertEqual(os.readlink(exported_link), lib_name)
Expand Down
3 changes: 3 additions & 0 deletions conans/test/model/build_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ def parse_test(self):
mylib_path
[includedirs_My_Other_Lib]
otherlib_path
[includedirs_My.Component.Lib]
my_component_lib
"""
deps_info, _ = TXTGenerator.loads(text)
self.assertEqual(deps_info.includedirs, ['C:/Whenever'])
self.assertEqual(deps_info["Boost"].includedirs, ['F:/ChildrenPath'])
self.assertEqual(deps_info["My_Lib"].includedirs, ['mylib_path'])
self.assertEqual(deps_info["My_Other_Lib"].includedirs, ['otherlib_path'])
self.assertEqual(deps_info["My.Component.Lib"].includedirs, ['my_component_lib'])

def help_test(self):
deps_env_info = DepsEnvInfo()
Expand Down

0 comments on commit 1936d10

Please sign in to comment.