mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-22 06:05:47 -06:00
deps(python): drop Python 3.6 support
This commit is contained in:
parent
970d515eaf
commit
b4ba75bd69
9 changed files with 23 additions and 24 deletions
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
- Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110]
|
||||
- Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0]
|
||||
- Python version: [e.g. `3.6.6` / `3.9.6`]
|
||||
- Python version: [e.g. `3.7.2` / `3.9.6`]
|
||||
- NVML version (driver version): [e.g. `460.84`]
|
||||
- `nvitop` version or commit: [e.g. `0.10.0` / `0.10.1.dev7+ga083321` / `main@75ae3c`]
|
||||
- `python-ml-py` version: [e.g. `11.450.51`]
|
||||
|
|
|
|||
14
.github/workflows/build.yaml
vendored
14
.github/workflows/build.yaml
vendored
|
|
@ -50,19 +50,19 @@ jobs:
|
|||
id: py
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.6 - 3.11"
|
||||
python-version: "3.7 - 3.11"
|
||||
update-environment: true
|
||||
|
||||
- name: Set up Python 3.6
|
||||
id: py36
|
||||
- name: Set up Python 3.7
|
||||
id: py37
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.6"
|
||||
python-version: "3.7"
|
||||
update-environment: false
|
||||
|
||||
- name: Check syntax (Python 3.6)
|
||||
- name: Check syntax (Python 3.7)
|
||||
run: |
|
||||
"${{ steps.py36.outputs.python-path }}" -m compileall nvitop
|
||||
"${{ steps.py37.outputs.python-path }}" -m compileall nvitop
|
||||
|
||||
- name: Upgrade build dependencies
|
||||
run: python -m pip install --upgrade pip setuptools wheel build
|
||||
|
|
@ -123,7 +123,7 @@ jobs:
|
|||
uses: actions/setup-python@v4
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
python-version: "3.6 - 3.11"
|
||||
python-version: "3.7 - 3.11"
|
||||
update-environment: true
|
||||
|
||||
- name: Set __release__
|
||||
|
|
|
|||
12
.github/workflows/lint.yaml
vendored
12
.github/workflows/lint.yaml
vendored
|
|
@ -27,19 +27,19 @@ jobs:
|
|||
id: py
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.6 - 3.11"
|
||||
python-version: "3.7 - 3.11"
|
||||
update-environment: true
|
||||
|
||||
- name: Set up Python 3.6
|
||||
id: py36
|
||||
- name: Set up Python 3.7
|
||||
id: py37
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.6"
|
||||
python-version: "3.7"
|
||||
update-environment: false
|
||||
|
||||
- name: Check syntax (Python 3.6)
|
||||
- name: Check syntax (Python 3.7)
|
||||
run: |
|
||||
"${{ steps.py36.outputs.python-path }}" -m compileall nvitop
|
||||
"${{ steps.py37.outputs.python-path }}" -m compileall nvitop
|
||||
|
||||
- name: Upgrade pip
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ repos:
|
|||
rev: v3.3.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py36-plus]
|
||||
args: [--py37-plus]
|
||||
stages: [commit, push, manual]
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 6.0.0
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ persistent=yes
|
|||
|
||||
# Minimum Python version to use for version dependent checks. Will default to
|
||||
# the version used to run pylint.
|
||||
py-version=3.6
|
||||
py-version=3.7
|
||||
|
||||
# Discover python modules and packages in the file system subtree.
|
||||
recursive=no
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<!-- markdownlint-disable html -->
|
||||
|
||||

|
||||

|
||||
[](https://pypi.org/project/nvitop)
|
||||
[](https://anaconda.org/conda-forge/nvitop)
|
||||
[](https://nvitop.readthedocs.io)
|
||||
|
|
@ -103,7 +103,7 @@ An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for G
|
|||
|
||||
## Requirements
|
||||
|
||||
- Python 3.6+
|
||||
- Python 3.7+
|
||||
- NVIDIA Management Library (NVML)
|
||||
- nvidia-ml-py
|
||||
- psutil
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for G
|
|||
.. |GitHub| image:: https://img.shields.io/badge/GitHub-Homepage-blue?logo=github
|
||||
.. _GitHub: https://github.com/XuehaiPan/nvitop
|
||||
|
||||
.. |Python Version| image:: https://img.shields.io/badge/Python-3.6%2B-brightgreen
|
||||
.. |Python Version| image:: https://img.shields.io/badge/Python-3.7%2B-brightgreen
|
||||
.. _Python Version: https://pypi.org/project/nvitop
|
||||
|
||||
.. |PyPI Package| image:: https://img.shields.io/pypi/v/nvitop?label=pypi&logo=pypi
|
||||
|
|
@ -56,7 +56,7 @@ Install from PyPI (|PyPI Package|_):
|
|||
|
||||
.. note::
|
||||
|
||||
Python 3.6+ is required, and Python versions lower than 3.6 is not supported.
|
||||
Python 3.7+ is required, and Python versions lower than 3.7 is not supported.
|
||||
|
||||
Install from conda-forge (|Conda-forge Package|_):
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ if not __release__:
|
|||
['git', 'describe', '--abbrev=7'],
|
||||
cwd=os.path.dirname(os.path.abspath(__file__)),
|
||||
stderr=subprocess.DEVNULL,
|
||||
universal_newlines=True,
|
||||
text=True,
|
||||
)
|
||||
.strip()
|
||||
.lstrip('v')
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|||
name = "nvitop"
|
||||
description = "An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for GPU process management."
|
||||
readme = "README.md"
|
||||
requires-python = ">= 3.6"
|
||||
requires-python = ">= 3.7"
|
||||
authors = [{ name = "Xuehai Pan", email = "XuehaiPan@pku.edu.cn" }]
|
||||
license = { text = "Apache License, Version 2.0 (Apache-2.0) & GNU General Public License, Version 3 (GPL-3.0)" }
|
||||
keywords = [
|
||||
|
|
@ -24,7 +24,6 @@ classifiers = [
|
|||
"License :: OSI Approved :: Apache Software License",
|
||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
|
|
@ -72,7 +71,7 @@ include = ["nvitop", "nvitop.*"]
|
|||
safe = true
|
||||
line-length = 100
|
||||
skip-string-normalization = true
|
||||
target-version = ["py36", "py37", "py38", "py39", "py310", "py311"]
|
||||
target-version = ["py37", "py38", "py39", "py310", "py311"]
|
||||
|
||||
[tool.isort]
|
||||
atomic = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue