Skip to content

Test on Python 3.12 #3266

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Test on Python 3.12 #3266

wants to merge 2 commits into from

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented Jan 28, 2025

Depends on #2850

@hmpf hmpf added the django label Jan 28, 2025
Copy link

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.15%. Comparing base (35b0f71) to head (75cfbb3).
Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (35b0f71) and HEAD (75cfbb3). Click for more details.

HEAD has 38 uploads less than BASE
Flag BASE (35b0f71) HEAD (75cfbb3)
39 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3266       +/-   ##
===========================================
- Coverage   60.58%   35.15%   -25.43%     
===========================================
  Files         606      606               
  Lines       43733    43722       -11     
  Branches       48       48               
===========================================
- Hits        26494    15372    -11122     
- Misses      17227    28338    +11111     
  Partials       12       12               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lunkwill42
Copy link
Member

I guess this needs a rebase, as #2850 was modified and merged..

@hmpf hmpf force-pushed the test/python3.12 branch from 75cfbb3 to e99dae0 Compare May 9, 2025 06:51
@hmpf
Copy link
Contributor Author

hmpf commented May 9, 2025

Python 3.12 needs an lxml that is newer than or equal to 5.0.

@hmpf
Copy link
Contributor Author

hmpf commented May 9, 2025

Warnings:

python/nav/django/settings.py:73
UserWarning: Could not get connection parameters from db.conf: [Errno 2] No such file or directory: 'db.conf'
    warnings.warn(f"Could not get connection parameters from db.conf: {e}")

VENV/lib/python3.12/site-packages/django/conf/__init__.py:241
RemovedInDjango50Warning: The default value of USE_TZ will change from False to True in Django 5.0. Set USE_TZ to False in your project settings if you want to keep the current default behavior.
    warnings.warn(

python/nav/smidumps/DNOS-SWITCHING-MIB.py:10057
SyntaxWarning: invalid escape sequence '\c'
    """Transfer upload tftpfilename configures the file name for the file being

VENV/lib/python3.12/site-packages/napalm/__init__.py:1
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

VENV/lib/python3.12/site-packages/pkg_resources/__init__.py:3147
DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('jnpr')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

VENV/lib/python3.12/site-packages/napalm/ios/ios.py:22
DeprecationWarning: 'telnetlib' is deprecated and slated for removal in Python 3.13
    import telnetlib

@hmpf
Copy link
Contributor Author

hmpf commented May 9, 2025

Warnings during testing:

tests/unittests/web/webfront_test.py::test_tools_should_be_split_in_3_columns PASSED                                                                                                                  [100%]<unknown>:402: SyntaxWarning: invalid escape sequence '\['
<unknown>:404: SyntaxWarning: invalid escape sequence '\s'
VENV/python/nav/bin/radiusparser.py:402: SyntaxWarning: invalid escape sequence '\['
  '^(?P<time>.*) : (?P<type>Auth): (?P<message>(?P<status>.*?): \[(?P<user>.*?)\] \(from client (?P<client>[^ ]+) port (?P<port>[^ ]+)( cli (?P<cli>[^ ]+)|)\))\s*$'
VENV/python/nav/bin/radiusparser.py:404: SyntaxWarning: invalid escape sequence '\s'
  other_pattern = re.compile('^(?P<time>.*) : (?P<type>[^:]+): (?P<message>.*?)\s*$')

It is a dependency of napalm.
Copy link

sonarqubecloud bot commented May 9, 2025

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

Successfully merging this pull request may close these issues.

2 participants