Skip to content

Commit

Permalink
Merge pull request spacetelescope#2473 from pllim/py312-devdeps
Browse files Browse the repository at this point in the history
TST: Python 3.12
  • Loading branch information
pllim authored Sep 29, 2023
2 parents 8bb2bd4 + 7314179 commit 4653883
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
toxenv: securityaudit
allow_failure: false

- name: Python 3.10 with coverage checking, all deps, and remote data
- name: Python 3.11 with coverage checking, all deps, and remote data
os: ubuntu-latest
python: '3.10'
toxenv: py310-test-alldeps-cov
python: '3.11'
toxenv: py311-test-alldeps-cov
toxposargs: --remote-data
allow_failure: false

Expand All @@ -57,18 +57,18 @@ jobs:
toxenv: py39-test
allow_failure: false

- name: Windows - Python 3.9
- name: Windows - Python 3.10
os: windows-latest
python: 3.9
toxenv: py39-test
python: '3.10'
toxenv: py310-test
allow_failure: false

# This also runs on cron but we want to make sure new changes
# won't break this job at the PR stage.
- name: Python 3.11 with latest dev versions of key dependencies, and remote data
- name: Python 3.12 with latest dev versions of key dependencies, and remote data
os: ubuntu-latest
python: '3.11'
toxenv: py311-test-devdeps
python: '3.12-dev'
toxenv: py312-test-devdeps
toxposargs: --remote-data --run-slow
allow_failure: true

Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ Specviz
Specviz2d
^^^^^^^^^

Other Changes and Additions
---------------------------

- Compatibility with Python 3.12. [#2473]

3.7 (2023-09-21)
================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import warnings
from datetime import datetime
from datetime import datetime, timezone

import astropy
import numpy as np
Expand Down Expand Up @@ -312,7 +312,7 @@ def vue_do_aper_phot(self, *args, **kwargs):
phot_table.add_columns(
[xcenter * u.pix, ycenter * u.pix, sky_center,
bg, pixarea_fac, sum_ct, sum_ct_err, ctfac, sum_mag, flux_scale, data.label,
reg.meta.get('label', ''), Time(datetime.utcnow())],
reg.meta.get('label', ''), Time(datetime.now(tz=timezone.utc))],
names=['xcenter', 'ycenter', 'sky_center', 'background', 'pixarea_tot',
'aperture_sum_counts', 'aperture_sum_counts_err', 'counts_fac',
'aperture_sum_mag', 'flux_scaling',
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ filterwarnings = [
"ignore:The unit 'Angstrom' has been deprecated in the VOUnit standard\\. Suggested.* 0\\.1nm\\.",
"ignore:specutils uses the deprecated entry point asdf_extensions",
"ignore:((.|\n)*)Sentinel is not a public part of the traitlets API((.|\n)*)",
"ignore:datetime\\.datetime\\.utcfromtimestamp:DeprecationWarning", # asdf + dateutil<=2.8.2 + Python 3.12
"ignore::DeprecationWarning:glue",
"ignore::DeprecationWarning:bqplot",
"ignore::DeprecationWarning:bqplot_image_gl",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311}-test{,-alldeps,-devdeps,-predeps}{-romandeps}{,-cov}
py{38,39,310,311,312}-test{,-alldeps,-devdeps,-predeps}{-romandeps}{,-cov}
linkcheck
codestyle
pep517
Expand Down

0 comments on commit 4653883

Please sign in to comment.