Commit Graph

325 Commits

Author SHA1 Message Date
openharmony_ci
5f145feb65
!6 版本回退到5.4.1挑单3.1release
Merge pull request !6 from honghecun/cherry-pick-1647422469
2022-03-16 13:30:12 +00:00
xuyong
021666c4c2 fixed 3b30a99 from https://gitee.com/honghecun/third_party_pyyaml/pulls/5
backup pyyaml from 6.0 to 5.4.1

Signed-off-by: xuyong <xuyong59@huawei.com>
2022-03-16 09:21:10 +00:00
openharmony_sig_ci
34effd7fdd
!4 Update OAT.xml
Merge pull request !4 from honghecun/master
2022-01-13 11:16:41 +00:00
xuyong
a5fe34d135 Update the file named OAT.xml
Signed-off-by: xuyong <xuyong59@huawei.com>
2022-01-13 19:06:03 +08:00
openharmony_sig_ci
2eb53d493c
!3 使用原生的README.md文件
Merge pull request !3 from honghecun/master
2022-01-11 03:29:17 +00:00
xuyong
c71388b242 使用源生README
Signed-off-by: xuyong <xuyong59@huawei.com>
2022-01-11 11:28:07 +08:00
openharmony_sig_ci
a8999d76ce
!2 modify spelling error
Merge pull request !2 from honghecun/master
2022-01-05 07:21:06 +00:00
xuyong
f3cee100d0 modify spelling error
Signed-off-by: xuyong <xuyong59@huawei.com>
2022-01-05 15:18:31 +08:00
openharmony_sig_ci
7e579f0fc8
!1 add README and some other configuration files.
Merge pull request !1 from honghecun/master
2022-01-05 07:14:37 +00:00
xuyong
a7d5773cd0 Add readme file and some other configuration files.
Signed-off-by: xuyong <xuyong59@huawei.com>
2022-01-05 14:38:04 +08:00
xuyong
77bf0a8aaa Add readme file and some other configuration files.
Signed-off-by: xuyong <xuyong59@huawei.com>
2022-01-05 14:34:01 +08:00
Matt Davis
8cdff2c805 6.0 release 2021-10-13 12:12:51 -07:00
Matt Davis
a4fb55e943 Update Python 3.10 versions for Windows build 2021-10-13 12:12:44 -07:00
Matt Davis
e45b9643de Add Python 3.10 to tox.ini 2021-10-13 11:57:52 -07:00
Matt Davis
4808fba18e 6.0b1 release 2021-10-04 15:11:05 -04:00
Matt Davis
d5aba406ed Omnibus CI/artifact build update
* Adds support for private GHA runner to build for MacOS/arm64
* Split CI/artifact build workflows (hopefully temporarily) since GHA can't do dynamic/conditional matrix
* Moves Windows builds to GHA
2021-09-29 13:53:30 -07:00
Matt Davis
a6d384c52e Various setup fixes
* enable use of setuptools-embedded distutils
* list 3.10 support
* remove setup.cfg (and deprecated metadata in it)
* run tests on ephemeral copy of intermediate build bits
2021-09-23 15:34:34 -07:00
Ingy döt Net
8f3f9795b4 No longer using appveyor 2021-09-23 14:44:20 -07:00
Ingy döt Net
c2743653bc The yaml.load{,_all} functions require Loader= now 2021-09-23 14:43:55 -07:00
Ingy döt Net
2f87ac4838 Add a basic test file for yaml.load and yaml.dump 2021-09-23 14:43:02 -07:00
Ingy döt Net
7bd92df543 Makefile tweaks 2021-09-23 14:42:00 -07:00
Tina Müller
8f27932796 Fix float resolver for '.' and '._'
A single dot matches the official YAML 1.1 int regex.
This was probably unintended. The regex now requires at least
a digit before or after the dot.
2021-09-23 14:42:00 -07:00
Thom Smith
575d2f46db Use with statements to eliminate ResourceWarnings 2021-09-23 14:42:00 -07:00
Pantelis Antoniou
779bdb129e Use python3 in the Makefile
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2021-09-23 14:42:00 -07:00
Pantelis Antoniou
a31a4fb189 Remove Python 2 support and simplify
It's time to stop pretending this is anymore compatible to version 2
by using macros to hide the fact that on 3 objects are bytes and not
string.

Removing the support for version 2 makes things clearer.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2021-09-23 14:42:00 -07:00
Pantelis Antoniou
fecae105d7 Define PyString_GetExact as Bytes
Puzzling, but this is the expected behaviour

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2021-09-23 14:42:00 -07:00
Pantelis Antoniou
82db283558 Fix warning errors of the libyaml binding
Make the build work without any warnings.
The cython and C yaml types were differing in definition and that's
no good.

Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2021-09-23 14:42:00 -07:00
Tina Müller
b3d2d674b7 Add a test for the YAML 1.1 types 2021-09-23 14:42:00 -07:00
Thom Smith
961ce9dcf5 Fix issue with representing Enum types 2021-09-23 14:42:00 -07:00
Thom Smith
141afddd45 Correct spelling of “hexadecimal” 2021-09-22 10:30:55 -04:00
Thomas Smith
23120f886b Update tox.ini
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-09-22 15:52:05 +02:00
Thom Smith
28af8b24e6 Remove 3.5 from Appveyor 2021-09-22 15:52:05 +02:00
Thom Smith
00be495c78 Simplify python_requires 2021-09-22 15:52:05 +02:00
Thom Smith
f5bd5607ef Remove 2.7 from CI 2021-09-22 15:52:05 +02:00
Thom Smith
f20947ae25 Move code from lib3 to lib 2021-09-22 15:52:05 +02:00
Thom Smith
dc0c4c1441 Remove 2.7 support 2021-09-22 15:52:05 +02:00
Thom Smith
e5f6dadf86 Remove py35 from tox.ini 2021-09-22 15:52:05 +02:00
Matt Davis
7f35bb5bf2 Explode multiarch matrix for ML2014/aarch64/s390x 2021-09-22 15:52:05 +02:00
Ingy döt Net
702b1767bf Updated the content of the README.md file 2021-09-02 09:23:19 -07:00
Tim Hoffmann
99d27e78e8 Change README format to Markdown 2021-09-02 09:23:19 -07:00
Ingy döt Net
ee37f4653c 5.4.1 release 2021-01-20 16:40:50 -05:00
Matt Davis
2b37f155d4 Fix stub compat with older pyyaml versions that may unwittingly load it 2021-01-20 16:39:29 -05:00
Ingy döt Net
58d0cb7ee0 5.4 release 2021-01-19 14:07:59 -05:00
Anish Athalye
a60f7a19c0 Fix compatibility with Jython
This patch was taken from
https://github.com/yaml/pyyaml/issues/369#issuecomment-571596545,
authored by Pekka Klärck <peke@iki.fi>.

In short, Jython doesn't support lone surrogates, so importing yaml (and
in particular, loading `reader.py`) caused a UnicodeDecodeError. This
patch works around this through a clever use of `eval` to defer
evaluation of the string containing the lone surrogates, only doing it
on non-Jython platforms.

This is only done in `lib/yaml/reader.py` and not `lib3/yaml/reader.py`
because Jython does not support Python 3.

With this patch, Jython's behavior with respect to Unicode code points
over 0xFFFF becomes as it was before
0716ae21a1. It still does not pass all the
unit tests on Jython (passes 1275, fails 3, errors on 1); all the
failing tests are related to unicode. Still, this is better than simply
crashing upon `import yaml`.

With this patch, all tests continue to pass on Python 2 / Python 3.
2021-01-13 17:51:32 -05:00
Matt Davis
ee98abd7d7 Run CI on PR base branch changes 2021-01-13 16:58:40 -05:00
Ovv
ddf20330be constructor.timezone: __copy_ & __deepcopy__
close #387
2021-01-13 16:58:40 -05:00
Phil Sphicas
fc914d52c4 Avoid repeatedly appending to yaml_implicit_resolvers
Repeated calls to `resolve` can experience performance degredation, if
`add_implicit_resolver` has been called with `first=None` (to add an
implicit resolver with an unspecified first character).

For example, every time `foo` is encountered, the "wildcard implicit
resolvers" (with `first=None`) will be appended to the list of implicit
resolvers for strings starting with `f`, which will normally be the
resolver for booleans. The list `yaml_implicit_resolvers['f']` will keep
getting longer. The same behavior applies for any first-letter matches
with existing implicit resolvers.

This change avoids unintentionally mutating the lists in the class-level
dict `yaml_implicit_resolvers` by looping through a temporary copy.

Fixes: #439
2021-01-13 16:58:40 -05:00
Ingy döt Net
a001f27825 Fix for CVE-2020-14343
Per suggestion https://github.com/yaml/pyyaml/issues/420#issuecomment-663888344
move a few constructors from full_load to unsafe_load.
2021-01-13 16:58:40 -05:00
Ingy döt Net
fe15062414 Add 3.9 to appveyor file for completeness sake
Are we done with appveyor now?
Can we just remove this file?
2021-01-13 16:58:40 -05:00
Ingy döt Net
1e1c7fb7c0 Add a newline character to end of pyproject.toml
Is this TOML file actually needed?

I'd prefer to remove it since it does so little, and stands out so
prominiently.
2021-01-13 16:58:40 -05:00