From cf404ffe95ccf321b3915ac78837bdd9a37edb86 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 5 Aug 2025 21:12:33 +0000 Subject: [PATCH 1/4] Initial plan From 64c3b6c63338d9efeb8e16a58d5d0bb1290e09ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 5 Aug 2025 21:36:45 +0000 Subject: [PATCH 2/4] Add pyproject.toml with modern Python packaging configuration Co-authored-by: paulbkoch <46825734+paulbkoch@users.noreply.github.com> --- pyproject.toml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ade6da6 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[build-system] +requires = ["setuptools>=45", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "slicer" +version = "0.0.8" +description = "A small package for big slicing." +readme = "README.md" +requires-python = ">=3.6" +license = {text = "MIT"} +authors = [ + {name = "InterpretML", email = "interpret@microsoft.com"} +] +classifiers = [ + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +Homepage = "https://github.com/interpretml/slicer" + +[tool.setuptools] +packages = ["slicer"] \ No newline at end of file From 312381d76535bceefb645fd9a15d18e55298bf18 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 5 Aug 2025 21:39:05 +0000 Subject: [PATCH 3/4] Remove obsolete setup.py file after successful pyproject.toml migration Co-authored-by: paulbkoch <46825734+paulbkoch@users.noreply.github.com> --- setup.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 setup.py diff --git a/setup.py b/setup.py deleted file mode 100644 index 72b3ec9..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -import setuptools - -with open("README.md", "r") as fh: - long_description = fh.read() - -setuptools.setup( - name="slicer", - version="0.0.8", - author="InterpretML", - author_email="interpret@microsoft.com", - description="A small package for big slicing.", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/interpretml/slicer", - packages=setuptools.find_packages(), - classifiers=[ - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Development Status :: 3 - Alpha", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], - python_requires='>=3.6', -) From a383e2d2e11bd2a7302f45e84c803456cd471d99 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 5 Aug 2025 21:52:26 +0000 Subject: [PATCH 4/4] Remove obsolete azure-pipelines.yml file Co-authored-by: paulbkoch <46825734+paulbkoch@users.noreply.github.com> --- azure-pipelines.yml | 67 --------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index fa2a99c..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,67 +0,0 @@ -jobs: -- job: 'Test' - strategy: - matrix: - LinuxPython36: - python.version: '3.6' - image.name: 'ubuntu-18.04' - LinuxPython37: - python.version: '3.7' - image.name: 'ubuntu-18.04' - LinuxPython38: - python.version: '3.8' - image.name: 'ubuntu-18.04' - WindowsPython36: - python.version: '3.6' - image.name: 'windows-2019' - WindowsPython37: - python.version: '3.7' - image.name: 'windows-2019' - WindowsPython38: - python.version: '3.8' - image.name: 'windows-2019' - MacPython36: - python.version: '3.6' - image.name: 'macOS-10.14' - MacPython37: - python.version: '3.7' - image.name: 'macOS-10.14' - MacPython38: - python.version: '3.8' - image.name: 'macOS-10.14' - maxParallel: 9 - pool: - vmImage: '$(image.name)' - steps: - - task: UsePythonVersion@0 - condition: succeeded() - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - script: python -m pip install --upgrade pip setuptools wheel - condition: succeeded() - displayName: 'Install tools' - - script: python -m pip install pytest pytest-cov numpy pandas scipy - condition: succeeded() - displayName: 'Install test requirements' - - script: python -m pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html - condition: or(startsWith(variables['image.name'], 'windows'), startsWith(variables['image.name'], 'ubuntu')) - displayName: 'Install pytorch (windows/linux)' - - script: python -m pip install torch - condition: startsWith(variables['image.name'], 'macOS') - displayName: 'Install pytorch (mac)' - - script: | - python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=slicer --cov-report=xml --cov-report=html - displayName: 'Run pytest' - - task: PublishTestResults@2 - condition: succeededOrFailed() - inputs: - testResultsFiles: '**/test-*.xml' - testRunTitle: 'Publish test results for Python $(python.version) at $(image.name)' - displayName: 'Publish test results' - - task: PublishCodeCoverageResults@1 - inputs: - codeCoverageTool: Cobertura - summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' - reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' - displayName: 'Publish test coverage results'