Project

General

Profile

Actions

Bug #20723

closed

Stop running setup.py in our build+test infrastructure (will be deprecated by Oct 31st 2025)

Added by Brett Smith over 2 years ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Target version:
-
Story points:
-
Release:
Release relationship:
Auto

Description

Doing so is deprecated and also the source of some messiness. See these warnings when you test the Python SDK:

WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
/home/brett/.cache/arvados-test/VENV3DIR/lib/python3.11/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.

Instead of setup.py test we can use tox, python3 -m unittest.main, etc.

Instead of setup.py build / setup.py sdist we can use python3 -m build, or there might be a direct setuptools invocation too (although it'll probably be deprecated soon if it's not already).

Instead of setup.py install we can use python3 -m pip install.

This might be an epic, it might make sense to break out separate stories for individual parts like updating test infrastructure, updating build infrastructure, …


Subtasks 1 (0 open1 closed)

Task #22882: ReviewClosedLucas Di Pentima07/02/2025Actions

Related issues 5 (0 open5 closed)

Related to Arvados - Idea #20311: Update Python packages to build with PEP 517/518ResolvedBrett Smith08/06/2025Actions
Related to Arvados - Idea #21207: Decide and implement a modern way to run Python testsResolvedBrett Smith05/10/2024Actions
Related to Arvados - Bug #21840: use twine instead of setup.py upload for PyPi uploadsResolvedBrett SmithActions
Related to Arvados - Support #22436: Remove `arvados-server install`, `arvados-package`ResolvedBrett SmithActions
Related to Arvados - Support #23012: Remove arvboxResolvedBrett SmithActions
Actions #1

Updated by Brett Smith over 2 years ago

  • Related to Idea #20311: Update Python packages to build with PEP 517/518 added
Actions #2

Updated by Brett Smith over 2 years ago

  • Related to Idea #21207: Decide and implement a modern way to run Python tests added
Actions #3

Updated by Brett Smith about 2 years ago

  • Description updated (diff)
Actions #4

Updated by Brett Smith almost 2 years ago

  • Related to Bug #21840: use twine instead of setup.py upload for PyPi uploads added
Actions #5

Updated by Lucas Di Pentima 11 months ago

  • Subject changed from Stop running setup.py in our build+test infrastructure to Stop running setup.py in our build+test infrastructure (will be deprecated by Oct 31st 2025)

Today I noticed this message while reviewing #21362, so we have a deadline:

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        By 2025-Oct-31, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************
Actions #6

Updated by Peter Amstutz 11 months ago

  • Target version changed from Future to Development 2025-05-28
Actions #7

Updated by Peter Amstutz 11 months ago

  • Target version changed from Development 2025-05-28 to Development 2025-06-25
Actions #8

Updated by Peter Amstutz 11 months ago

  • Target version changed from Development 2025-06-25 to Development 2025-05-28
Actions #9

Updated by Peter Amstutz 11 months ago

  • Tracker changed from Idea to Bug
Actions #10

Updated by Peter Amstutz 10 months ago

  • Assigned To set to Brett Smith
Actions #11

Updated by Peter Amstutz 10 months ago

  • Subtask #22882 added
Actions #12

Updated by Peter Amstutz 10 months ago

  • Target version changed from Development 2025-05-28 to Development 2025-06-25
Actions #13

Updated by Brett Smith 9 months ago

  • Target version deleted (Development 2025-06-25)
  • Assigned To deleted (Brett Smith)
Actions #14

Updated by Brett Smith 9 months ago

  • Release set to 79
Actions #15

Updated by Brett Smith 9 months ago

  • Release changed from 79 to 28
  • Status changed from New to In Progress
  • Category deleted (SDKs)
  • Project changed from Arvados to Arvados Epics
Actions #16

Updated by Brett Smith 8 months ago

#20311 does the rest of the work in the main branch, except for a couple of components that are scheduled to be removed: #22436, #23012.

Actions #17

Updated by Brett Smith 8 months ago

  • Related to Support #22436: Remove `arvados-server install`, `arvados-package` added
Actions #18

Updated by Brett Smith 8 months ago

Actions #19

Updated by Brett Smith 5 months ago

  • Status changed from In Progress to Resolved

Brett Smith wrote in #note-16:

#20311 does the rest of the work in the main branch, except for a couple of components that are scheduled to be removed: #22436, #23012.

With those done, this is done. git grep '\bsetup\.py\b' returns no results in the arvados, arvados-dev, or ops repositories.

Actions

Also available in: Atom PDF