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

RD-1601 py2 py3 setup #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

RD-1601 py2 py3 setup #48

wants to merge 1 commit into from

Conversation

IliaFeldgun
Copy link

@IliaFeldgun IliaFeldgun commented Nov 8, 2023

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:

  • check if works on mac
  • make ubuntu-dev-base-py2 with build python-setuptools-plugins wheel

@IliaFeldgun IliaFeldgun force-pushed the PEP-440 branch 5 times, most recently from 8fa46af to 825829a Compare June 17, 2024 19:40
@IliaFeldgun IliaFeldgun force-pushed the PEP-440 branch 2 times, most recently from b95669a to 50d1d39 Compare June 17, 2024 21:45
@IliaFeldgun IliaFeldgun changed the title Setup.py added py2 py3 setup Jun 17, 2024
import sys
import time
import signal
import strato.common.log.morelevels # relies on side effects

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

  1. standard libraries
  2. 3rd part libraries
  3. package related libraries

fix encoding issues
semver support
skipperize
remove upseto
@IliaFeldgun IliaFeldgun changed the title py2 py3 setup RD-1601 py2 py3 setup Jul 23, 2024
@@ -0,0 +1,4 @@
python-setuptools-plugins==0.0.2+g865898c
pyyaml

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()

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)

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.

Copy link

@roeigo-stratoscale roeigo-stratoscale left a comment

Choose a reason for hiding this comment

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

approved by mistake

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.

4 participants