Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arelle: 2017-06-01 -> 2017-08-24 #29435

Merged
merged 1 commit into from Sep 16, 2017
Merged

arelle: 2017-06-01 -> 2017-08-24 #29435

merged 1 commit into from Sep 16, 2017

Conversation

disassembler
Copy link
Member

@disassembler disassembler commented Sep 15, 2017

Motivation for this change

fixes tests for python 3.6.

Remove \m from regex (not supported anymore)

Also, implicitly specify from arelle import in Cntlr in CntlrProfiler.py

arelle released a new release for RedHat on 2017-08-24, so I'm considering code from that date a stable release.

tests break on headless expecting tkinter library, so tests are only ran on when gui == true.

related to #28643

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@disassembler disassembler changed the title arelle: fix tests for python 3.6 arelle: 2017-06-01 -> 2017-08-24 Sep 15, 2017
@disassembler
Copy link
Member Author

@roberth can I get a review since your the maintainer?

CDATApattern = re.compile(r"<!\[CDATA\[(.+)\]\]")
#EFM table 5-1 and all &xxx; patterns
-docCheckPattern = re.compile(r"&\w+;|[^0-9A-Za-z`~!@#$%&\*\(\)\.\-+ \[\]\{\}\|\\:;\"'<>,_?/=\t\n\r\m\f]") # won't match &#nnn;
+docCheckPattern = re.compile(r"&\w+;|[^0-9A-Za-z`~!@#$%&\*\(\)\.\-+ \[\]\{\}\|\\:;\"'<>,_?/=\t\n\r\f]") # won't match &#nnn;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to look this up. The table mentioned in the comment ( EFM table 5-1 in https://www.sec.gov/info/edgar/edgarfm-vol2-v25.pdf ) does not seem to include anything that warrants the \m. Also it's hard to find a meaning for \m in a python regex. Probably ok. I'll check with the author asynchronously.

@roberth
Copy link
Member

roberth commented Sep 15, 2017

@disassembler, thank you for looking into this. Removing the \m seems to be the right thing to do. I'll check with the author to be sure, but the spec seems to suggest it is ok. Looks good to me, but I can't merge it because github doesn't know I'm the maintainer. Calling @chaoflow

@@ -46,6 +49,8 @@ buildPythonPackage {
(cd apidocs && make html && cp -r _build $doc)
'';

doCheck = if gui then true else false;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think python2 is no longer supported. ./bin/arelle is python3-only and https://github.com/Arelle/Arelle/blob/master/setup.py#L424 only lists python3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants