Notify about version field when creating library

This commit is contained in:
Ivan Kravets
2016-09-09 18:08:18 +03:00
parent 160ae3fb60
commit f186ad30c1
5 changed files with 46 additions and 17 deletions

View File

@@ -196,7 +196,7 @@ dash. `Semantic Versioning <http://semver.org>`_ IS RECOMMENDED.
field is defined. field is defined.
|PIOAPICR| will use the |PIOAPICR| will use the
`CVS <http://en.wikipedia.org/wiki/Concurrent_Versions_System>`_ revision from `VCS <http://en.wikipedia.org/wiki/Concurrent_Versions_System>`_ revision from
the latest commit as "current version". For example, ``13`` (*SVN*) or first the latest commit as "current version". For example, ``13`` (*SVN*) or first
10 chars of *SHA* digest ``e4564b7da4`` (*Git*). If :ref:`libjson_repository` 10 chars of *SHA* digest ``e4564b7da4`` (*Git*). If :ref:`libjson_repository`
``branch`` is not specified, then default branch will be used. ``branch`` is not specified, then default branch will be used.

View File

@@ -44,34 +44,63 @@ If a library source code is located at `GitHub <https://github.com>`_, then
you **need to specify** only these fields in the :ref:`library_config`: you **need to specify** only these fields in the :ref:`library_config`:
* :ref:`libjson_name` * :ref:`libjson_name`
* :ref:`libjson_version` (is not required, but highly recommended for new :ref:`librarymanager`)
* :ref:`libjson_keywords` * :ref:`libjson_keywords`
* :ref:`libjson_description` * :ref:`libjson_description`
* :ref:`libjson_repository` * :ref:`libjson_repository`
|PIOAPICR| will populate the rest fields, like :ref:`libjson_version` or |PIOAPICR| will populate the rest fields, like :ref:`libjson_authors` with an
:ref:`libjson_authors` with an actual information from *GitHub*. actual information from *GitHub*.
Example: Example, `DallasTemperature <http://platformio.org/lib/show/54/DallasTemperature/manifest>`_:
.. code-block:: javascript .. code-block:: javascript
{ {
"name": "IRremote", "name": "DallasTemperature",
"keywords": "infrared, ir, remote", "keywords": "onewire, 1-wire, bus, sensor, temperature",
"description": "Send and receive infrared signals with multiple protocols", "description": "Arduino Library for Dallas Temperature ICs (DS18B20, DS18S20, DS1822, DS1820)",
"repository": "repository":
{
"type": "git",
"url": "https://github.com/milesburton/Arduino-Temperature-Control-Library.git"
},
"authors":
[
{ {
"type": "git", "name": "Miles Burton",
"url": "https://github.com/shirriff/Arduino-IRremote.git" "email": "miles@mnetcs.com",
"url": "http://www.milesburton.com",
"maintainer": true
}, },
"frameworks": "arduino", {
"platforms": "atmelavr" "name": "Tim Newsome",
"email": "nuisance@casualhacker.net"
},
{
"name": "Guil Barros",
"email": "gfbarros@bappos.com"
},
{
"name": "Rob Tillaart",
"email": "rob.tillaart@gmail.com"
}
],
"dependencies":
{
"name": "OneWire",
"authors": "Paul Stoffregen",
"frameworks": "arduino"
},
"version": "3.7.7",
"frameworks": "arduino",
"platforms": "*"
} }
Under CVS (SVN/GIT) Under VCS (SVN/GIT)
^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
|PIOAPICR| can operate with a library source code that is under *CVS* control. |PIOAPICR| can operate with a library source code that is under *VCS* control.
The list of **required** fields in the :ref:`library_config` will look like: The list of **required** fields in the :ref:`library_config` will look like:
* :ref:`libjson_name` * :ref:`libjson_name`

View File

@@ -133,7 +133,7 @@ next structure:
(``*.h, *.c, *.cpp, *.S, *.ino, etc.``) (``*.h, *.c, *.cpp, *.S, *.ino, etc.``)
* ``lib`` directory can be used for the project specific (private) libraries. * ``lib`` directory can be used for the project specific (private) libraries.
More details are located in ``lib/readme.txt`` file. More details are located in ``lib/readme.txt`` file.
* Miscellaneous files for CVS and :ref:`ci` support. * Miscellaneous files for VCS and :ref:`ci` support.
.. note:: .. note::

View File

@@ -37,7 +37,7 @@ This command will create:
(``*.h, *.c, *.cpp, *.S, *.ino, etc.``) (``*.h, *.c, *.cpp, *.S, *.ino, etc.``)
* ``lib`` directory can be used for the project specific (private) libraries. * ``lib`` directory can be used for the project specific (private) libraries.
More details are located in ``lib/readme.txt`` file. More details are located in ``lib/readme.txt`` file.
* Miscellaneous files for CVS and :ref:`ci` support. * Miscellaneous files for VCS and :ref:`ci` support.
Options Options
------- -------

View File

@@ -50,7 +50,7 @@ class PlatformNotInstalledYet(PlatformioException):
class BoardNotDefined(PlatformioException): class BoardNotDefined(PlatformioException):
MESSAGE = "You need to specify board type using `-b` or `--board` "\ MESSAGE = "You need to specify board ID using `-b` or `--board` "\
"option. Supported boards list is available via "\ "option. Supported boards list is available via "\
" `platformio boards` command" " `platformio boards` command"