Skip to content

Commit

Permalink
python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
steuxyo authored and dyoussef committed Feb 7, 2025
1 parent 5677db5 commit c90aeac
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=fixme
disable=fixme, too-many-positional-arguments


# Enable the message, report, category or checker with the given id(s). You can
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export BROWSER_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"

# Python global variables definition
PYTHON_VERSION_MIN = 3.8
PYTHON_VERSION_MIN = 3.9


# Set PYTHON if not defined in command line
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<h4>Shareloc, a simple remote sensing geometric library</h4>

[![Python](https://img.shields.io/badge/python-v3.8+-blue.svg)](https://www.python.org/downloads/release/python-380/)
[![Python](https://img.shields.io/badge/python-v3.9+-blue.svg)](https://www.python.org/downloads/release/python-390/)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](CONTRIBUTING.md)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0/)
[![Documentation](https://readthedocs.org/projects/shareloc/badge/?version=latest)](https://shareloc.readthedocs.io/?badge=latest)
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ classifiers =
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9

[options]
python_requires = >=3.8
python_requires = >=3.9

setup_requires =
setuptools>=65.5
Expand Down
1 change: 0 additions & 1 deletion shareloc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# Standard imports
from importlib.metadata import version

# VERSION through setuptools_scm when python3 > 3.8
try:
__version__ = version("shareloc")
except Exception: # pylint: disable=broad-except
Expand Down
18 changes: 8 additions & 10 deletions tests/geofunctions/test_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,22 +540,20 @@ def test_sensor_loc_inv_vs_loc_rpc(lon, lat, alt):

@pytest.mark.parametrize(
"col_min_valid",
[([4.15161251e-02, 1.95057636e-01, 1.10977819e00, -8.35016563e-04, -3.50772271e-02, -9.46432481e-03])],
[[4.15161251e-02, 1.95057636e-01, 1.10977819e00, -8.35016563e-04, -3.50772271e-02, -9.46432481e-03]],
)
@pytest.mark.parametrize(
"row_min_valid", [([0.05440845, 1.26513831, -0.36737151, -0.00229532, -0.07459378, -0.02558954])]
"row_min_valid", [[0.05440845, 1.26513831, -0.36737151, -0.00229532, -0.07459378, -0.02558954]]
)
@pytest.mark.parametrize(
"col_max_valid",
[([1.76451389e-02, 2.05533045e-01, 1.11758291e00, -9.50086076e-04, -3.59923603e-02, -1.03291594e-02])],
[[1.76451389e-02, 2.05533045e-01, 1.11758291e00, -9.50086076e-04, -3.59923603e-02, -1.03291594e-02]],
)
@pytest.mark.parametrize(
"row_max_valid", [([0.07565692, 1.27499912, -0.36677813, -0.00252395, -0.07539624, -0.0270914])]
)
@pytest.mark.parametrize("valid_offset_lon", [([57.37295223744326, 0.15660032225072484])])
@pytest.mark.parametrize("valid_offset_lat", [([22.066877016445275, 0.14641205050748773])])
@pytest.mark.parametrize("valid_offset_row", [([24913.0, 24912.5])])
@pytest.mark.parametrize("valid_offset_col", [([19975.5, 19975.0])])
@pytest.mark.parametrize("row_max_valid", [[0.07565692, 1.27499912, -0.36677813, -0.00252395, -0.07539624, -0.0270914]])
@pytest.mark.parametrize("valid_offset_lon", [[57.37295223744326, 0.15660032225072484]])
@pytest.mark.parametrize("valid_offset_lat", [[22.066877016445275, 0.14641205050748773]])
@pytest.mark.parametrize("valid_offset_row", [[24913.0, 24912.5]])
@pytest.mark.parametrize("valid_offset_col", [[19975.5, 19975.0]])
@pytest.mark.unit_tests
def test_pred_loc_inv(
col_min_valid,
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tox]
# Environment list run by tox (-e to choose)
envlist = clean,py38,py39,py310,coverage
envlist = clean,py39,py310,coverage

[testenv]
# Main test environment configuration

# Configure
setenv =
py{38,39,310}: COVERAGE_FILE = .coverage.{envname}
py{39,310}: COVERAGE_FILE = .coverage.{envname}

# Main command for testing
# {posargs} can be used in tox cli see https://tox.wiki/en/latest/example/general.html
Expand All @@ -20,8 +20,8 @@ deps =

# Environment dependencies : run clean before py envs and coverage after
depends =
{py38,py39,py310}: clean
coverage: py38, py39, py310
{py39,py310}: clean
coverage: py39, py310

[testenv:coverage]
# Coverage environment definition
Expand Down

0 comments on commit c90aeac

Please sign in to comment.