Commit Graph

263 Commits

Author SHA1 Message Date
Tony Breeds cc61daab59 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I93df05c945c631944a3d8e255f6a170d7084ceac
2017-09-12 16:18:19 -06:00
Xavier Hardy fafc9a17be Make the CLI YAQL engine entirely configurable
Change-Id: I982ec52f8f8046d1fb4e1a430a02b9e3631d3a8b
2017-06-27 08:47:24 +02:00
Georgy Kibardin 0c758a0e37 Get rid of Babel dependency since it is not needed
Change-Id: I805dc387ec3a40024d12583165918b92fad0cb76
2017-03-02 21:05:32 +00:00
Tony Breeds fe128f0672 Use modern PBR and hacking packages
The 2.0.0 is breaking in that it removes the use of warnerrors in
build_sphinux.

YAQL isn't using that feature, so it shoudln't break.

The cap on pbr is preventing other OpenStack projects that would like to
use pbr 2.0.0 (and sphinx 1.5.1) from doing so as it breaks
co-installability with yaql

Also hacking <0.11 had a similar issue so use a newer version of that also

Change-Id: I23e1d7aa715003250131bf5c88a438f278e4d4da
Related-Bug: 1668848
2017-03-01 16:33:56 +11:00
Jenkins 2d08340e69 Merge "Added engine options to disable input/output data conversion" 2017-02-22 17:58:19 +00:00
Jenkins 3802aa58e4 Merge "Improvements to yaql CLI" 2017-02-22 17:56:05 +00:00
Stan Lagun 38aa2c946d Improvements to yaql CLI
* now it is possible to pass one or more YAQL expressions in command line.
  This also disables interactive mode
* input file name can be specified as "-" to read from stdin
* added option to treat input as a string rather than JSON
* added option to treat input as an array (strings or JSONs)
* added option to output result in Python format rather than JSON
* removed redundant code that left from yaql v0.2
* print error messages to stderr rather than stdout

Change-Id: Ieb1037bc2ba59c2d2360edc4ac9b414e62a0cc79
2017-02-20 21:11:15 -05:00
Stan Lagun 67d58bc17f Added engine options to disable input/output data conversion
'yaql.convertInputData' and 'yaql.convertOutputData' engine
options were added.  By setting them to false one can suppress
input or output data conversion. For the input data this will prevent
yaql from converting mutable data structures (lists, dicts, sets) to
their immutable versions, which will break some of the constructs that
require hashable structures (for example set of lists, or list as a
dictionary key), for the output it will not expand produced iterators
and not convert tuples to lists. However this can greatly improve
performance in some cases

Change-Id: I240ce6646fe7dbc9522624739600b6c364bb9618
2017-02-20 19:13:32 -05:00
Jenkins acb3ef7196 Merge "Changed the home-page link" 2017-02-21 00:00:49 +00:00
Georgy Kibardin e7a7f60631 Pass re.VERBOSE explicitly
ply doesn't add re.VERBOSE flag by default anymore, so we need to pass it
explicitly.

Change-Id: I42b0830b7f30806ddbe42f57f54cc050a262e2e2
2017-02-03 08:19:16 +03:00
Jenkins 57cc3de6fc Merge "Customizing and extending yaql documentation" 2017-01-09 19:47:26 +00:00
Jenkins 6757922ce7 Merge "YAQL syntax documentation" 2017-01-09 19:47:20 +00:00
Stan Lagun 5f2675c6ef Customizing and extending yaql documentation
Change-Id: I11ac45341a109d8d4cd65ab67a6b162a9202d783
2016-12-13 15:16:45 -08:00
nizam 7091aed731 Changed the home-page link
Set the correct link for home-page.

Change-Id: I5607dbebebeb7da27f6e8160a6286ba842a78731
2016-12-12 15:58:10 +00:00
Dougal Matthews 59aa918b49 Use six.moves.input for Python 3 compatability
Currently, without this, the YAQL repl will error under Python 3.

Change-Id: I5c53f83a0cb069127e33ab629255b0178f272e62
2016-12-07 11:32:57 +00:00
Stan Lagun 7790de30c9 YAQL syntax documentation
Change-Id: I411ecffd0ab4f26041c626fcce2351983b9507e0
2016-12-06 21:17:27 -08:00
Jenkins c9206c9c54 Merge "Use __slots__ for yaqltypes" 2016-12-01 01:22:19 +00:00
Jenkins b4a4ffe814 Merge "Use __slots__ for Parameter/Function definition" 2016-12-01 01:21:25 +00:00
Jenkins 09f8b85ec2 Merge "Drop MANIFEST.in - it's not needed by pbr" 2016-11-30 22:40:21 +00:00
Jenkins 7e89e13f7a Merge "Don't include openstack/common in flake8 exclude list" 2016-11-30 22:40:14 +00:00
Stan Lagun ba434c2f22 Remove oslosphinx from sphinx extensions
Change-Id: I29a3b379761cc85ea4d78d60cebf6a985e8cde0f
2016-11-10 15:12:11 -08:00
Stan Lagun 81ad11b60e Merge of documenter and sphinx extension
- documenter script functionality was merged
   into sphinx extension
- heavy refactoring of the documenter code
- grouping of overload methods in documentation
- several minor fixes in doc strings

Change-Id: I9bccd6b1ff1750d966d8c39558d204fcaa4ad185
2016-11-10 00:35:49 -08:00
Stan Lagun fa798e1e15 Auto building of std library docs
- Sphinx extension to generate YAQL autodoc was written
- Added option not to generate package header for the
   YAQL doc-strings -> RST generator

Change-Id: I63020ea1fc2cb10f18d7d6bbc6ad33a62b846f6c
2016-11-07 21:42:16 -08:00
Zane Bitter e693e6ecef Use __slots__ for yaqltypes
Collectively, these types are fairly common in the context (about 400 in
the default context). Defining __slots__ for them so that they don't
need a __dict__ object to store attributes results in a fairly
inconsequential saving of memory with the default context, but likely
could result in significant savings depending on the amount of data yaql
is operating on.

Change-Id: Iaae6b48672a3293f3920125347835a100883ea76
2016-11-03 16:19:40 -04:00
Zane Bitter 42fed1a86d Use __slots__ for Parameter/Function definition
These are the two most common types of object in a yaql context (about
800 exist in the default context).  Defining __slots__ for them so that
they don't need a __dict__ object to store attributes results in a
modest saving of memory (around 10% of the default context).

Change-Id: I5c7027bcd48a1f2282a369c1469107d2ab9c5083
2016-11-03 16:18:56 -04:00
nizam 16cd8ade86 Don't include openstack/common in flake8 exclude list
The directory openstack/common was used to keep codes from oslo-incubator,
we have retired oslo-incubator,so don't use this directory any more

Change-Id: Ib222cf20945f473d628c1b25b8276ddf307b69a1
2016-10-21 23:31:14 +05:30
nizam 994b7bcb68 Drop MANIFEST.in - it's not needed by pbr
yaql already uses PBR:-
setuptools.setup(
    setup_requires=['pbr'],
    pbr=True)

This patch removes `MANIFEST.in` file as pbr generates a
sensible manifest from git files and some standard files
and it removes the need for an explicit `MANIFEST.in` file.

Change-Id: I92c00f0068de48b8d33307367e260e583e27a4f1
Closes-Bug:#1608980
2016-10-20 21:10:38 +05:30
Jenkins c9d1f7bf75 Merge "[docs] Docstrings for queries YAQL functions" 2016-10-13 14:29:41 +00:00
Jenkins cfa457797b Merge "[docs] Docstrings for legacy YAQL functions" 2016-10-13 14:20:46 +00:00
Jenkins 5072b14c14 Merge "[docs] Docstrings for collections YAQL functions" 2016-10-13 14:19:03 +00:00
Omar Shykhkerimov 24b8e2bdb8 [docs] Docstrings for queries YAQL functions
Documented functions:
* join
* repeat
* cycle
* takeWhile
* skipWhile
* indexOf
* lastIndexOf
* indexWhere
* lastIndexWhere
* slice
* splitWhere
* sliceWhere
* splitAt
* aggregate
* reverse
* mergeWith
* isIterable
* accumulate
* generate
* generateMany
* defaultIfEmpty

Change-Id: Id236fa9e9e86992a42aba65b2f8e123d207e3592
2016-10-11 14:54:49 +03:00
Omar Shykhkerimov b2cd595d2f Create child context in regex/search function
Change-Id: I1197e7a345109c5fb29e1bfc48df8f051b48bac9
Closes-bug: #1630682
2016-10-09 22:17:24 +03:00
Jenkins 43f28180e7 Merge "Add help info to CLI options" 2016-10-07 14:15:06 +00:00
Jenkins d733709bde Merge "Enable release notes translation" 2016-10-07 14:15:01 +00:00
Jenkins cc25089114 Merge "[docs] Docstrings for yaqlized YAQL functions" 2016-10-07 14:14:53 +00:00
Jenkins bd4de1dce6 Merge "[docs] Docstrings for system YAQL functions" 2016-10-07 14:14:48 +00:00
Jenkins 0bf109af3e Merge "[docs] Docstrings for regex YAQL functions" 2016-10-07 14:14:41 +00:00
Andreas Jaeger 0eb48cdb7c Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I65003afcbb81466e4aae96f3a74755068b472eaf
2016-10-06 20:56:59 +02:00
Omar Shykhkerimov 6b129fdf33 [docs] Docstrings for collections YAQL functions
Change-Id: I33202ddc502544fbbc54851201d29b00e14ade2e
2016-10-06 20:00:40 +03:00
Omar Shykhkerimov 245102b015 [docs] Docstrings for legacy YAQL functions
Change-Id: I7ca1905852f9084c19bdebc25f271a12815db6a9
2016-10-06 16:58:53 +00:00
Jenkins 65d1ac417f Merge "Update flake8 ignore list" 2016-10-05 21:03:56 +00:00
Jenkins e7d065fdda Merge "Remove discover from test-requirements" 2016-10-05 21:03:51 +00:00
Jenkins 3c16c1870e Merge "Add a test proving escaped back references work" 2016-10-05 21:02:58 +00:00
Omar Shykhkerimov fad65b35aa [docs] Docstrings for regex YAQL functions
Change-Id: I9ee189f0c53108e30d0d47f7bfc2aa1350527709
2016-10-05 20:20:09 +03:00
Omar Shykhkerimov 855b6839db [docs] Docstrings for system YAQL functions
Change-Id: Idb9036f2a5eed1a9c4960e84bfc92e4cb0573097
2016-10-05 13:45:04 +00:00
Omar Shykhkerimov 9a344902df [docs] Docstrings for yaqlized YAQL functions
Change-Id: I40857f5f4548866eb4c94cf056f7605e6f508e67
2016-10-05 16:34:59 +03:00
Jenkins a721de9b4a Merge "[docs] Docstrings for common YAQL functions" 2016-10-05 12:13:16 +00:00
Omar Shykhkerimov de3472da30 Add help info to CLI options
Change-Id: I268246f12040ca09047b9776dd4233c907743cb0
2016-10-05 14:42:59 +03:00
Omar Shykhkerimov 29b7589b94 [docs] Docstrings for common YAQL functions
Change-Id: I82747775ac194d0b56c7faf3abef46c3d0efe4d9
2016-10-04 01:04:54 +03:00
Omar Shykhkerimov b2ffd4845d [docs] Docstrings for queries YAQL functions
Documented functions:
* where
* select
* operator . (collection_attribution)
* skip
* limit
* append
* distinct
* enumerate
* any
* all
* concat
* len
* count
* memorize
* sum
* max
* min
* first
* single
* last
* selectMany
* range
* sequence
* orderBy
* orderByDescending
* thenBy
* thenByDescending
* groupBy
* zip
* zipLongest


Change-Id: Id8290e90033483c123cd3b3ee38e8bb8db6bc002
2016-10-04 00:02:33 +03:00