-
Notifications
You must be signed in to change notification settings - Fork 4
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
RD-1601 py2 py3 setup #48
base: master
Are you sure you want to change the base?
Conversation
8fa46af
to
825829a
Compare
b95669a
to
50d1d39
Compare
import sys | ||
import time | ||
import signal | ||
import strato.common.log.morelevels # relies on side effects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://peps.python.org/pep-0008/#imports
usually the import order is
- standard libraries
- 3rd part libraries
- package related libraries
fix encoding issues semver support skipperize remove upseto
@@ -0,0 +1,4 @@ | |||
python-setuptools-plugins==0.0.2+g865898c | |||
pyyaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not frozen
f = sys._getframe(3) | ||
def _findCallerPyAgnostic(*args, **kwargs): | ||
FILE_BLACKLIST = ['logging/__init__.py', 'common/log/morelevels.py', 'configurelogging.py'] | ||
f = logging.currentframe() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is f
return (filename, f.f_lineno, co.co_name) | ||
return ("(unknown file)", 0, "(unknown function)") | ||
if sys.version_info[0] == 2: | ||
return (filename, f.f_lineno, co.co_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is co? I know some were already this way, but I really can't understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved by mistake
pep-440 versioning
upseto remove (but support paths)
fixed encoding
http://strato-pypi.dc1.strato:5002/strato/staging/strato-common-log/0.0.1.dev0+g825829a
http://jenkins.dc1.strato:8080/job/Clean-Build-NextGen/381/console
http://jenkins.dc1.strato:8080/job/monkey-ci/view/change-requests/job/PR-6100/18/console
TODO:
build
python-setuptools-plugins
wheel