Commit Graph

33 Commits

Author SHA1 Message Date
Davide Brunato 72a99dc39f Adapt XPathContext to typed iterations
renamed:    tests/test_context.py -> tests/test_xpath_context.py
2019-09-30 11:17:04 +02:00
Davide Brunato 04258f5c43 Fix '//' operator and text() function
- '//' without a left token has to start from the document root,
    like an absolute path.
2019-09-09 07:16:00 +02:00
Davide Brunato 0e4f050abb Add hashing methods to XSD datatypes classes 2019-08-28 07:07:30 +02:00
Davide Brunato aeba3aab05 Split xpath_helpers module in two parts
- Datatype conversion helpers moved fo token class
  - Node helpers moved to a new module
  - Kept boolean_value() for backward compatibility
2019-08-03 22:53:37 +02:00
Davide Brunato bb7f000fec Update development requirements (xmlschema~=1.0.13) 2019-08-03 12:30:59 +02:00
Davide Brunato fea7c0d7b5 Add tests for XPathContext to increase coverage
- Removed circularity checks that not works with ElementTree and
    is not necessary for lxml.etree
2019-05-22 19:11:47 +02:00
Davide Brunato c97acb9eb8 Added a script for testing XPathContext class 2019-05-21 07:17:58 +02:00
Davide Brunato 1d23f5b13f Update to release v1.1.8
- Added coverage and flake8 to testing
  - Removed py34 from tox.ini
  - Added py38 with a limited testing
  - ElementPathMissingContextError renamed to MissingContextError
  - Added exceptions to API docs
2019-05-20 23:22:14 +02:00
Davide Brunato 12b71ba5ee Fix spacing errors
- Added is_spaced() to TODP Parser base class
  - Remove '/' from next_is_path_step_token() methods
  - Increase release and update API documentation
2019-03-30 10:59:23 +01:00
Davide Brunato a8a431627e Add a test for child axis with an element reference 2019-03-13 11:22:23 +01:00
Davide Brunato 75101d530a Change default year from 1900 to 2000
- 2000 is a leap year, that is needed by gMonthDay value '--02-29'
  - Start new release v1.1.6
2019-03-05 18:19:42 +01:00
Davide Brunato 36fcdba9e6 Update release and add get_primitive_type() to docs 2019-02-22 09:35:59 +01:00
Davide Brunato b392d7534e Realize a full static analysis 2019-02-15 14:00:49 +01:00
Davide Brunato 3df7a9712f New release v1.1.3 2019-02-03 20:45:46 +01:00
Davide Brunato bb8ebe2cb7 Bugfix release v1.1.2
- Fix equality operators for AbstractDateTime
2019-01-21 08:31:42 +01:00
Davide Brunato c03e88906f Update tests and docs
- Add 2019 to copyright information
  - Update Shphinx docs about XPath 2 status
  - Tests splitted into several modules (all tests are runned as before
    by the script test_elementpath.py or by "python -m unitest")
2019-01-12 10:28:44 +01:00
Davide Brunato d94824167f Rewrite AbstractDateTime for supporting years > 9999 2019-01-04 19:08:55 +01:00
Davide Brunato 6286b948f0 Add resolve-QName function to XPath2Parser 2018-11-15 15:45:22 +01:00
Davide Brunato 31408ba696 Start next release development
- Update docstrings for test helper methods
  - Increase release version
2018-10-10 19:34:56 +02:00
Davide Brunato 8c094eb348 Update to new release 1.0.12
- Added default_namespace property to XPath parser classes
  - XPath1Parser ignores the default namespace setting
  - Fixed the '(name)' token methods to use the default namespace
2018-09-01 18:04:13 +02:00
Davide Brunato 99cca5928e Update tox.ini and setup.py
- Remove Python 3.3 support
  - Move tox workdir to ~/.tox/elementpath
2018-07-23 15:42:48 +02:00
Davide Brunato bab5040927 Fix README and update to release 1.0.10 2018-06-15 18:21:17 +02:00
Davide Brunato f4c4894278 Update to version 1.0.9 2018-06-15 18:14:43 +02:00
Davide Brunato 5d10df1129 Fix pickling for Parser classes
- Token classes names now have the form _<symbol>_<label>_token
  - Modified the Token __repr__ method
  - Adapted check_token tests
2018-06-13 10:58:20 +02:00
Davide Brunato db170d5bca Fix a typo in XPath1Parser.end() class method 2018-05-04 13:28:30 +02:00
Davide Brunato d85a89dd40 Add Python 3.7 to setup.py's classifiers 2018-05-02 18:04:45 +02:00
Davide Brunato f7a1d3c934 Fix token items assignment using [:] 2018-04-19 22:30:44 +02:00
Davide Brunato 046e6d5c2f Fix README.rst headers and add 2 functions
- Substituted # with * in the main header of README.rst
  - Implemented 'codepoints-to-string' and 'string-to-codepoints'
2018-03-30 21:58:52 +02:00
Davide Brunato 677cfa7f53 Fix effective boolean value for [''] 2018-03-27 18:16:01 +02:00
Davide Brunato df8582f3a6 Add QName parsing extension enabled by an additional parser's argument 2018-03-27 17:19:28 +02:00
Davide Brunato 0025b2c5cd Remove sorting of attributes that could generates problems with XSD selectors 2018-03-27 09:08:45 +02:00
Davide Brunato 5cc221fa5d XPath 1.0 and packaging completed 2018-03-15 15:11:02 +01:00
Davide Brunato dde2acac06 First commit
Code derived from XPath the xpaty.py module of the xmlschema package
(v.0.9.21-dev). The code has been splitted into some modules, one for
the base TODP parser, one for the XPath 1.0 parser and one for XPath
2.0 parser. The tests are implemented by the script test_elemenpath.py.

Changes to be committed:
	new file:   .gitignore
	new file:   LICENSE
	new file:   MANIFEST.in
	new file:   README.rst
	new file:   elementpath/__init__.py
	new file:   elementpath/exceptions.py
	new file:   elementpath/todp_parser.py
	new file:   elementpath/xpath1.py
	new file:   elementpath/xpath2.py
	new file:   requirements-dev.txt
	new file:   setup.cfg
	new file:   setup.py
	new file:   test_elementpath.py
2018-02-11 10:56:19 +01:00