Changeset a05e4b1 in trunk


Ignore:
Timestamp:
2023-01-09T22:04:25Z (3 years ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
56b93ae, 7c50605, c211731, da8cc19
Parents:
3c3697d (diff), 046d9cf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Itamar Turner-Trauring <itamar@…> (2023-01-09 22:04:25)
git-committer:
GitHub <noreply@…> (2023-01-09 22:04:25)
Message:

Merge pull request #1246 from tahoe-lafs/3964-remove-3.7

Remove support for Python 3.7, Ubuntu 18.04, Debian 10 (oldstable)

Fixes ticket:3964

Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified .circleci/config.yml

    r3c3697d ra05e4b1  
    1616    jobs:
    1717      # Start with jobs testing various platforms.
    18       - "debian-10":
    19           {}
    2018      - "debian-11":
    2119          {}
     
    2321      - "ubuntu-20-04":
    2422          {}
    25       - "ubuntu-18-04":
    26           requires:
    27             - "ubuntu-20-04"
    2823
    2924      # Equivalent to RHEL 8; CentOS 8 is dead.
     
    8681      #
    8782      #  https://app.circleci.com/settings/organization/github/tahoe-lafs/contexts
    88       - "build-image-debian-10": &DOCKERHUB_CONTEXT
    89           context: "dockerhub-auth"
    90       - "build-image-debian-11":
    91           <<: *DOCKERHUB_CONTEXT
    92       - "build-image-ubuntu-18-04":
     83      - "build-image-debian-11": &DOCKERHUB_CONTEXT
    9384          <<: *DOCKERHUB_CONTEXT
    9485      - "build-image-ubuntu-20-04":
     
    168159            dist/Tahoe-LAFS/tahoe --version
    169160
    170   debian-10: &DEBIAN
    171     docker:
    172       - <<: *DOCKERHUB_AUTH
    173         image: "tahoelafsci/debian:10-py3.7"
    174         user: "nobody"
    175 
     161  debian-11: &DEBIAN
    176162    environment: &UTF_8_ENVIRONMENT
    177163      # In general, the test suite is not allowed to fail while the job
     
    185171      LANG: "en_US.UTF-8"
    186172      # Select a tox environment to run for this job.
    187       TAHOE_LAFS_TOX_ENVIRONMENT: "py37"
     173      TAHOE_LAFS_TOX_ENVIRONMENT: "py39"
    188174      # Additional arguments to pass to tox.
    189175      TAHOE_LAFS_TOX_ARGS: ""
     
    253239            fi
    254240
    255   debian-11:
    256     <<: *DEBIAN
    257241    docker:
    258242      - <<: *DOCKERHUB_AUTH
    259243        image: "tahoelafsci/debian:11-py3.9"
    260244        user: "nobody"
    261     environment:
    262       <<: *UTF_8_ENVIRONMENT
    263       TAHOE_LAFS_TOX_ENVIRONMENT: "py39"
     245
    264246
    265247  # Restore later using PyPy3.8
     
    312294      - run: *SETUP_VIRTUALENV
    313295      - run: *RUN_TESTS
    314 
    315   ubuntu-18-04: &UBUNTU_18_04
    316     <<: *DEBIAN
    317     docker:
    318       - <<: *DOCKERHUB_AUTH
    319         image: "tahoelafsci/ubuntu:18.04-py3.7"
    320         user: "nobody"
    321 
    322     environment:
    323       <<: *UTF_8_ENVIRONMENT
    324       # The default trial args include --rterrors which is incompatible with
    325       # this reporter on Python 3.  So drop that and just specify the
    326       # reporter.
    327       TAHOE_LAFS_TRIAL_ARGS: "--reporter=subunitv2-file"
    328       TAHOE_LAFS_TOX_ENVIRONMENT: "py37"
    329 
    330296
    331297  ubuntu-20-04:
     
    446412    docker:
    447413      - <<: *DOCKERHUB_AUTH
    448         image: "tahoelafsci/ubuntu:18.04-py3.7"
     414        image: "tahoelafsci/ubuntu:20.04-py3.9"
    449415
    450416    steps:
     
    458424    docker:
    459425      - <<: *DOCKERHUB_AUTH
    460         image: "tahoelafsci/ubuntu:18.04-py3.7"
     426        image: "tahoelafsci/ubuntu:20.04-py3.9"
    461427
    462428    steps:
     
    509475
    510476
    511   build-image-debian-10:
    512     <<: *BUILD_IMAGE
    513 
    514     environment:
    515       DISTRO: "debian"
    516       TAG: "10"
    517       PYTHON_VERSION: "3.7"
    518 
    519 
    520477  build-image-debian-11:
    521478    <<: *BUILD_IMAGE
     
    525482      TAG: "11"
    526483      PYTHON_VERSION: "3.9"
    527 
    528   build-image-ubuntu-18-04:
    529     <<: *BUILD_IMAGE
    530 
    531     environment:
    532       DISTRO: "ubuntu"
    533       TAG: "18.04"
    534       PYTHON_VERSION: "3.7"
    535484
    536485
  • TabularUnified .github/workflows/ci.yml

    r3c3697d ra05e4b1  
    4949          - ubuntu-latest
    5050        python-version:
    51           - "3.7"
    5251          - "3.8"
    5352          - "3.9"
    5453          - "3.10"
    5554        include:
    56           # On macOS don't bother with 3.7-3.8, just to get faster builds.
     55          # On macOS don't bother with 3.8, just to get faster builds.
    5756          - os: macos-latest
    5857            python-version: "3.9"
     
    6160          # We only support PyPy on Linux at the moment.
    6261          - os: ubuntu-latest
    63             python-version: "pypy-3.7"
     62            python-version: "pypy-3.8"
    6463          - os: ubuntu-latest
    65             python-version: "pypy-3.8"
     64            python-version: "pypy-3.9"
    6665
    6766    steps:
     
    164163          # https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3943
    165164          - os: ubuntu-20.04
    166             python-version: "3.7"
    167             force-foolscap: true
    168           - os: ubuntu-20.04
    169165            python-version: "3.9"
    170166            force-foolscap: false
  • TabularUnified README.rst

    r3c3697d ra05e4b1  
    5757-----------
    5858
    59 Python 3.7 or later is now required.
     59Python 3.8 or later is required.
    6060If you are still using Python 2.7, use Tahoe-LAFS version 1.17.1.
    6161
  • TabularUnified default.nix

    r3c3697d ra05e4b1  
    3030                                  # for dependency resolution
    3131
    32 , pythonVersion ? "python37" # a string choosing the python derivation from
     32, pythonVersion ? "python39" # a string choosing the python derivation from
    3333                             # nixpkgs to target
    3434
  • TabularUnified setup.py

    r3c3697d ra05e4b1  
    224224    try:
    225225        p = subprocess.Popen(args, stdout=subprocess.PIPE, cwd=cwd, shell=use_shell)
    226     except EnvironmentError as e:  # if this gives a SyntaxError, note that Tahoe-LAFS requires Python 3.7+
     226    except EnvironmentError as e:  # if this gives a SyntaxError, note that Tahoe-LAFS requires Python 3.8+
    227227        print("Warning: unable to run %r." % (" ".join(args),))
    228228        print(e)
     
    375375      packages=find_packages('src') + ['allmydata.test.plugins'],
    376376      classifiers=trove_classifiers,
    377       # We support Python 3.7 or later. 3.11 is not supported yet.
    378       python_requires=">=3.7, <3.11",
     377      # We support Python 3.8 or later. 3.11 is not supported yet.
     378      python_requires=">=3.8, <3.11",
    379379      install_requires=install_requires,
    380380      extras_require={
     
    389389          "test": [
    390390              "flake8",
    391               # On Python 3.7, importlib_metadata v5 breaks flake8.
    392               # https://github.com/python/importlib_metadata/issues/407
    393               "importlib_metadata<5; python_version < '3.8'",
    394391              # Pin a specific pyflakes so we don't have different folks
    395392              # disagreeing on what is or is not a lint issue.  We can bump
  • TabularUnified tests.nix

    r3c3697d ra05e4b1  
    66, pkgs ? import sources.${pkgsVersion} { }
    77, pypiData ? sources.pypi-deps-db
    8 , pythonVersion ? "python37"
     8, pythonVersion ? "python39"
    99, mach-nix ? import sources.mach-nix {
    1010    inherit pkgs pypiData;
     
    2222    lib = pkgs.lib;
    2323  };
    24   tests_require = (mach-lib.extract "python37" ./. "extras_require" ).extras_require.test;
     24  tests_require = (mach-lib.extract "python39" ./. "extras_require" ).extras_require.test;
    2525
    2626  # Get the Tahoe-LAFS package itself.  This does not include test
  • TabularUnified tox.ini

    r3c3697d ra05e4b1  
    88[gh-actions]
    99python =
    10     3.7: py37-coverage
    1110    3.8: py38-coverage
    1211    3.9: py39-coverage
    1312    3.10: py310-coverage
    14     pypy-3.7: pypy37
    1513    pypy-3.8: pypy38
    1614    pypy-3.9: pypy39
     
    2018
    2119[tox]
    22 envlist = typechecks,codechecks,py{37,38,39,310}-{coverage},pypy27,pypy37,pypy38,pypy39,integration
     20envlist = typechecks,codechecks,py{38,39,310}-{coverage},pypy27,pypy38,pypy39,integration
    2321minversion = 2.4
    2422
     
    5048     # suffering we're trying to avoid with the above pins.
    5149     certifi
    52      # VCS hooks support
    53      py37,!coverage: pre-commit
    5450
    5551# We add usedevelop=False because testing against a true installation gives
Note: See TracChangeset for help on using the changeset viewer.