Skip to content

[FIX] Iso format for v3 is called twice#49

Closed
flachica wants to merge 3 commits into
blockchain-certificates:masterfrom
flachica:master
Closed

[FIX] Iso format for v3 is called twice#49
flachica wants to merge 3 commits into
blockchain-certificates:masterfrom
flachica:master

Conversation

@flachica

Copy link
Copy Markdown

No description provided.

Comment thread .travis.yml
language: python
python:
- "2.7"
- "3.6"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why removing the 2.7 version?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

To be able to pass the tests

Comment thread cert_tools/helpers.py
def create_iso8601_tz():
ret = datetime.now(timezone.utc).isoformat()[:-13]+'Z'
return ret.isoformat() No newline at end of file
return datetime.now(timezone.utc).isoformat()[:-13]+'Z' No newline at end of file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

that looks good, now that I look at the other code, it was indeed a strange setup.

@lemoustachiste lemoustachiste left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lparkerlm can you weigh in on the removal of python 2.7?

@lemoustachiste lemoustachiste left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@flachica we had a discussion with @lparkerlm and as it stands, removing python 2.7 cannot be accepted as part of this PR. We need more time to flesh out the issue with this version, and decide if we maintain or remove support.

In my opinion your code looks ok, and if it works with Python 3, then I think it's good enough for the current purpose. Python 2.7 issue has been lingering for a while, so we would need to take a proper look at it.

@flachica flachica requested a review from lemoustachiste May 7, 2021 18:14
antonellopasella-kedos added a commit to antonellopasella-kedos/cert-tools that referenced this pull request Jul 21, 2021
As of this issue blockchain-certificates#48
and the PR blockchain-certificates#49 (paused for Python3 concerns)

I proposte this PR to only put the correct datetime format without any Python3  upgrade
@antonellopasella

Copy link
Copy Markdown

Updated without Python3 removal in #51

@flachica flachica closed this Jul 24, 2021
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.

3 participants