Skip to content

Commit cc8e137

Browse files
authored
Merge pull request conan-io#756 from rhfrog/master
Proofread and minor fixes for changes of Pull Request 744 of Conan 1.6
2 parents 76ee34d + 1dcd8b7 commit cc8e137

File tree

11 files changed

+78
-79
lines changed

11 files changed

+78
-79
lines changed

‎changelog.rst‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,42 +12,42 @@ Check https://github.com/conan-io/conan for issues and more details about develo
1212
Please read more :ref:`about Conan stability<stability>`.
1313

1414
1.6.0 (19-July-2018)
15-
------------------------
15+
--------------------
1616

17-
- Feature: Added new ``self.run(..., run_environment=True)`` argument, that applies automatically ``PATH``, ``LD_LIBRARY_PATH`` and
18-
``DYLD_LIBRARY_PATH`` environment variable, from the dependencies, to the execution of the current command.
19-
- Feature: Added new ``tools.run_environment()`` as a shortcut of using ``tools.environment_append`` and ``RunEnvironment()`` together.
20-
- Feature: Added new ``self.run(..., ignore_errors=True)`` argument, that inhibits launching an exception if the commands fails, user can
17+
- Feature: Added a new ``self.run(..., run_environment=True)`` argument, that automatically applies ``PATH``, ``LD_LIBRARY_PATH`` and
18+
``DYLD_LIBRARY_PATH`` environment variables from the dependencies, to the execution of the current command.
19+
- Feature: Added a new ``tools.run_environment()`` method as a shortcut to using ``tools.environment_append`` and ``RunEnvironment()`` together.
20+
- Feature: Added a new ``self.run(..., ignore_errors=True)`` argument that represses launching an exception if the commands fails, so user can
2121
capture the return code.
22-
- Feature: Improved ``tools.Git`` to allow capturing the current branch and enabling to export a package with version based on the branch and commit.
23-
- Feature: The ``json`` generator now outputs the settings and options
24-
- Feature: :command:`conan remote list --raw` prints remote info in a format valid for *remotes.txt*, so it can be used for ``conan config install``
25-
- Feature: Visual Studio generator creates *conanbuildinfo.props* file using ``$(USERPROFILE)`` macro.
26-
- Feature: Added ``filename`` parameter to ``tools.get()`` in case it cannot be deduced from URL.
22+
- Feature: Improved ``tools.Git`` to allow capturing the current branch and enabling the export of a package whose version is based on the branch and commit.
23+
- Feature: The ``json`` generator now outputs settings and options
24+
- Feature: :command:`conan remote list --raw` prints remote information in a format valid for *remotes.txt*, so it can be used for ``conan config install``
25+
- Feature: Visual Studio generator creates the *conanbuildinfo.props* file using the ``$(USERPROFILE)`` macro.
26+
- Feature: Added a ``filename`` parameter to ``tools.get()`` in case it cannot be deduced from the URL.
2727
- Feature: Propagated ``keep_permissions`` and ``pattern`` parameters from ``tools.get()`` to ``tools.unzip()``.
28-
- Feature: Added XZ extensions to ``unzip()``. It will only work in Python 3 with lzma support enabled, producing an error otherwise.
28+
- Feature: Added XZ extensions to ``unzip()``. This will only work in Python 3 with lzma support enabled, otherwise, and error is produced.
2929
- Feature: Added ``FRAMEWORK_SEARCH_PATHS`` var to the XCode generator to support packaging Apple Frameworks. Read more
3030
:ref:`here<package_apple_framework>`.
31-
- Feature: Added :command:`conan build --test` and ``should_configure`` attribute to control test stage. Read more
31+
- Feature: Added :command:`conan build --test` and a ``should_configure`` attribute to control the test stage. Read more
3232
:ref:`here<attribute_build_stages>`.
3333
- Feature: New tools to convert between files with LF and CRLF line endings: :ref:`tools_unix2dos` and :ref:`tools_dos2unix`.
34-
- Feature: Added :command:`conan config install [url] --type=git` to force cloning git repo for ``http://...`` git urls.
35-
- Feature: Improved output information when a package is missing in a remote, showing who is the package requiring the missing one.
36-
- Feature: Improved the management of an upload interruption, avoiding uploads of incomplete tarballs.
34+
- Feature: Added :command:`conan config install [url] --type=git` to force cloning of a Git repo for ``http://...`` git urls.
35+
- Feature: Improved output information when a package is missing in a remote to show which package requires the missing one.
36+
- Feature: Improved the management of an upload interruption to avoid uploads of incomplete tarballs.
3737
- Feature: Added new ``LLVM`` toolsets to the base ``settings.yml`` (Visual Studio).
38-
- Feature: Created plugin for pylint with the previous Conan checks (run in the export), enabling to use the plugin in IDEs and command line to check the correctness of the recipes.
39-
- Feature: Improved ``deb`` installer to guarantee that runs correctly in Debian 9 and other distros.
38+
- Feature: Created a plugin for pylint with the previous Conan checks (run in the export) enabling usage of the plugin in IDEs and command line to check if recipes are correct.
39+
- Feature: Improved the ``deb`` installer to guarantee that it runs correctly in Debian 9 and other distros.
4040
- Fix: Fixed :command:`conan search -q` and :command:`conan remove -q` to not return packages that don't have the setting specified in the query.
41-
- Fix: Fixed ``SystemPackageTool`` when calling to update with ``sudo`` not enabled and ``mode=verify``.
42-
- Fix: Removed ``pyinstaller`` shared libraries from the linker environment for any conan subprocess.
41+
- Fix: Fixed ``SystemPackageTool`` when calling to update with ``sudo`` is not enabled and ``mode=verify``.
42+
- Fix: Removed ``pyinstaller`` shared libraries from the linker environment for any Conan subprocess.
4343
- BugFix: The ``YumTool`` now calls ``yum update`` instead of ``yum check-update``.
44-
- Bugfix: Solved bug using ``--manifest`` parameter with :command:`conan create` causing the deletion of information of the dependency graph.
45-
- Bugfix: Solved bug in the ``build`` method of the ``Version`` model, not showing correctly the version build field.
46-
- Bugfix: Fixed Conan crash with a dependency tree containing transitive private nodes.
44+
- Bugfix: Solved a bug in which using ``--manifest`` parameter with :command:`conan create` caused the deletion of information in the dependency graph.
45+
- Bugfix: Solved bug in which the ``build`` method of the ``Version`` model was not showing the version build field correctly .
46+
- Bugfix: Fixed a Conan crash caused by a dependency tree containing transitive private nodes.
4747

4848

4949
1.5.2 (5-July-2018)
50-
--------------------
50+
-------------------
5151

5252
- Bugfix: Fixed bug with pre-1.0 packages with sources.
5353
- Bugfix: Fixed regression in private requirements.
@@ -515,7 +515,7 @@ Check https://github.com/conan-io/conan for issues and more details about develo
515515

516516

517517
0.29.2 (2-December-2017)
518-
-------------------------
518+
------------------------
519519

520520
- Updated python cryptography requirement for OSX due the pyOpenSSL upgrade. See more: https://pypi.org/project/pyOpenSSL/
521521

‎faq/conan1.0.rst‎

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
Upgrading to conan 1.0
55
======================
66

7-
If you were using a 0.X conan version, there are some things to consider while upgrading. They are reflected in the :ref:`changelog<changelog>`., but this section summarizes the most important changes here:
7+
If you have been using a 0.X version of Conan, there are some things to consider when upgrading to version 1.0. These are reflected in the :ref:`changelog<changelog>`., however, this section summarizes the most important ones:
88

99

1010
Command line changes
1111
--------------------
1212

13-
There has been a few things that will break existing usage (compared to 0.30). Most of them are in command line arguments, so they are relatively easy to fix. The most important one is that now most commands require the path to the conanfile folder or file, instead of using ``--path`` and ``--file`` arguments. Specifically, :command:`conan install`, :command:`conan export` and :command:`conan create` will be the ones most affected:
13+
There are quite a few things that will break existing usage (compared to 0.30). Most of these are in command line arguments, so they are relatively easy to fix. The most important one is that now, most commands require the path to the conanfile folder or file, instead of using ``--path`` and ``--file`` arguments. Specifically, :command:`conan install`, :command:`conan export` and :command:`conan create` are the ones most affected:
1414

1515
.. code-block:: bash
1616
@@ -26,11 +26,11 @@ There has been a few things that will break existing usage (compared to 0.30). M
2626
$ conan export . Pkg/0.1@user/channel
2727
$ conan export myfolder/myconanfile.py Pkg/0.1@user/channel
2828
29-
This behavior aligns with the :command:`conan source`, :command:`conan build`, :command:`conan package` commands, that all use the same arguments to locate the *conanfile.py* containing the logic to be run.
29+
This behavior aligns with the :command:`conan source`, :command:`conan build` and :command:`conan package` commands, that all use the same arguments to locate the *conanfile.py* containing the logic to be run.
3030

3131
Now all commands read: :command:`command <origin-conanfile> ...`
3232

33-
Also, all arguments to command line now use dash instead of underscore:
33+
Also, all arguments to the command line now use a dash instead of an underscore:
3434

3535
.. code-block:: bash
3636
@@ -43,18 +43,18 @@ Deprecations/removals
4343
- ``self.conanfile_directory`` has been removed. Use ``self.source_folder``, ``self.build_folder``, etc. instead
4444
- ``self.cpp_info``, ``self.env_info`` and ``self.user_info`` scope has been reduced to only the ``package_info()`` method
4545
- ``gcc`` and ``ConfigureEnvironment`` were already removed in conan 0.30.1
46-
- ``werror`` doesn't exist anymore. Now it is the builtin behavior.
46+
- ``werror`` doesn't exist anymore. It is now built-in behavior.
4747
- Command ``test_package`` has been removed. Use :command:`conan create` and :command:`conan test` instead.
48-
- ``CMake`` helper only allows now (from conan 0.29). the ``CMake(self)`` syntax
48+
- ``CMake`` helper now (from conan 0.29) only allows the ``CMake(self)`` syntax
4949
- :command:`conan package_files` command was replaced in conan 0.28 by :command:`conan export-pkg` command.
5050

5151

52-
Settings and profiles. Gcc/CLang versioning
52+
Settings and profiles. GCC/Clang versioning
5353
-------------------------------------------
5454

55-
gcc and clang compilers have modified their versioning approach, from gcc > 5 and clang > 4,
56-
the minors are really bugfixes, and then they have binary compatibility. To adapt to this,
57-
conan now includes major version in the *settings.yml* default settings file:
55+
GCC and Clang compilers have modified their versioning approach, from GCC > 5 and Clang > 4.
56+
The minor versions are really bugfixes, and then they have binary compatibility. To adapt to this,
57+
conan now includes the major version in the *settings.yml* default settings file:
5858

5959
.. code-block:: yaml
6060
@@ -64,11 +64,11 @@ conan now includes major version in the *settings.yml* default settings file:
6464
"6", "6.1", "6.2", "6.3", "6.4",
6565
"7", "7.1", "7.2"]
6666
67-
Most package creators want to use the major-only settings, like ``-s compiler=gcc -s compiler.version=5``,
68-
instead of specifying the minors too.
67+
Most package creators want to use the major-only settings, such as ``-s compiler=gcc -s compiler.version=5``,
68+
instead of also specifying the minor versions.
6969

7070
The default profile detection and creation has been modified accordingly, but if you have a default
71-
profile you may want to update it to reflect this:
71+
profile, you may want to update it to reflect this:
7272

7373
.. code-block::text
7474
@@ -78,7 +78,7 @@ profile you may want to update it to reflect this:
7878
compiler.version=7 #instead of 7.2
7979
8080
81-
Conan associated tools (conan-package-tools, conan.cmake) have been upgraded to accomodate this new defaults.
81+
Conan-associated tools (conan-package-tools, conan.cmake) have been upgraded to accommodate these new defaults.
8282

8383

8484

@@ -88,8 +88,7 @@ New features
8888
------------
8989

9090
- Cross-compilation support with new default settings in settings.yml: ``os_build``, ``arch_build``, ``os_target``, ``arch_target``.
91-
They are automatically removed from the ``package_id`` computation, or kept if they
92-
are the only ones defined (as it happens usually with dev-tools packages). It is possible to keep them too with the ``self.info.include_build_settings()`` method (call it in your ``package_id()`` method).
91+
They are automatically removed from the ``package_id`` computation, or kept if they are the only ones defined (as usually happens with dev-tools packages). It is also possible to keep them with the ``self.info.include_build_settings()`` method (call it from your ``package_id()`` method).
9392

9493
.. important::
9594

@@ -105,7 +104,7 @@ New features
105104
Windows:
106105
subsystem: [None, cygwin, msys, msys2, wsl]
107106
108-
This subsetting can be used by build helpers as ``CMake``, to act accordingly.
107+
This subsetting can be used by build helpers such as ``CMake`` to act accordingly.
109108

110109

111110

‎howtos/link_apple_framework.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ How to package Apple Frameworks
4646

4747
To package an Apple framework:
4848

49-
- Copy/Create a framework folder ``XXX.framework`` (being ``XXX`` the name of your framework),
50-
to your package folder, putting there all the subdirectories (``Headers``, ``Modules``, etc).
49+
- Copy/create a framework folder ``XXX.framework`` (``XXX`` being the name of your framework),
50+
to your package folder, where you should put all the subdirectories (``Headers``, ``Modules``, etc).
5151

5252
.. code-block:: python
5353

‎integrations/pylint.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
Linting conanfile.py
44
====================
55

6-
``conan create`` command verifies the recipe file using pylint.
6+
The ``conan create`` command verifies the recipe file using pylint.
77

8-
However if you have IDE which has support for Python and may do linting automatically,
9-
there are false warnings caused by the fact that Conan populates some
10-
fields of recipe dynamically based on context.
8+
However, if you have an IDE that supports Python and may do linting automatically,
9+
there are false warnings caused by the fact that Conan dynamically populates some
10+
fields of the recipe based on context.
1111

1212
Conan provides a plugin which makes pylint aware of these dynamic fields and their types.
13-
To using it when running pylint outside Conan just add to your ``.pylintrc`` file:
13+
To use it when running pylint outside Conan, just add the following to your ``.pylintrc`` file:
1414

1515
.. code-block:: ini
1616

‎reference/build_helpers/run_environment.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.. warning::
55

66
The ``RunEnvironment`` is no longer needed, at least explicitly in conanfile.py. It has been integrated
7-
in the ``self.run(..., run_environment=True)`` argument. Check :ref:`self.run() docs <running_commands>`.
7+
into the ``self.run(..., run_environment=True)`` argument. Check :ref:`self.run() docs <running_commands>`.
88

99

1010
RunEnvironment
@@ -60,7 +60,7 @@ It sets the following environment variables:
6060
# self.run('./myexetool") # won't work, even if 'DYLD_LIBRARY_PATH' is in the env
6161
self.run('DYLD_LIBRARY_PATH=%s ./myexetool" % os.environ['DYLD_LIBRARY_PATH'])
6262
63-
This is already automatically handled by the ``self.run(..., run_environment=True)`` argument.
63+
This is already handled automatically by the ``self.run(..., run_environment=True)`` argument.
6464
6565
.. seealso::
6666

‎reference/commands/consumer/config.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,27 @@ so following calls to :command:`conan config install` command doesn't need to sp
9191

9292
**Examples**:
9393

94-
- Install the configuration from an URL:
94+
- Install the configuration from a URL:
9595

9696
.. code-block:: bash
9797
9898
$ conan config install http://url/to/some/config.zip
9999
100100
Conan config command stores the specified URL in the conan.conf ``general.config_install`` variable.
101101

102-
- Install the configuration from a git repository:
102+
- Install the configuration from a Git repository:
103103

104104
.. code-block:: bash
105105
106106
$ conan config install http://github.com/user/conan_config/.git
107107
108-
You can also force the git download by using :command:`--type git` (in case it is not deduced from URL automatically):
108+
You can also force the git download by using :command:`--type git` (in case it is not deduced from the URL automatically):
109109

110110
.. code-block:: bash
111111
112112
$ conan config install http://github.com/user/conan_config/.git --type git
113113
114-
- Install from an url skipping SSL verification:
114+
- Install from a URL skipping SSL verification:
115115

116116
.. code-block:: bash
117117

‎reference/commands/development/build.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ folder will be configured as destination folder for the install step.
2626
-h, --help show this help message and exit
2727
-b, --build Execute the build step (variable should_build=True).
2828
When specified, configure/install/test won't run
29-
unless --configure/--install/--test specified
29+
unless --configure/--install/--test are specified
3030
-bf BUILD_FOLDER, --build-folder BUILD_FOLDER
3131
Directory for the build process. Defaulted to the
3232
current directory. A relative path to current
3333
directory can also be specified
3434
-c, --configure Execute the configuration step (variable
3535
should_configure=True). When specified,
3636
build/install/test won't run unless
37-
--build/--install/--test specified
37+
--build/--install/--test are specified
3838
-i, --install Execute the install step (variable
3939
should_install=True). When specified,
4040
configure/build/test won't run unless
41-
--configure/--build/--test specified
41+
--configure/--build/--test are specified
4242
-t, --test Execute the test step (variable should_test=True).
4343
When specified, configure/build/install won't run
4444
unless --configure/--build/--install specified

0 commit comments

Comments
 (0)