From 70785c75ab35086fbba7ce0b860ef71442cc8c36 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 29 Oct 2022 21:48:50 +0200 Subject: [PATCH] =?UTF-8?q?Migrate=20setup.cfg=20=E2=86=92=20pyproject.tom?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See PEP 621 and PEP 518. --- .github/workflows/python-test.yml | 2 +- pyproject.toml | 14 +++++++++----- setup.cfg | 2 -- 3 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 setup.cfg diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index f3f6542..205d358 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -29,4 +29,4 @@ jobs: python -m pip install --upgrade pip - name: Run tests run: | - python setup.py test + python test_suite.py diff --git a/pyproject.toml b/pyproject.toml index 88dbae1..53e1745 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,7 @@ [build-system] -requires = ["setuptools>=64.0.0", "setuptools-scm"] +requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" - [project] name = "py-cpuinfo" version = "9.0.0" @@ -11,7 +10,7 @@ license = {text = "MIT"} authors = [ {name = "Matthew Brennan Jones", email = "matthew.brennan.jones@gmail.com"} ] -readme = "README.rst" +readme = "README.md" requires-python = ">=3" classifiers=[ "Development Status :: 5 - Production/Stable", @@ -22,8 +21,13 @@ classifiers=[ packages=["cpuinfo"] [project.urls] -homepage = "https://github.com/workhorsy/py-cpuinfo" -repository = "https://github.com/workhorsy/py-cpuinfo.git" +Homepage = "https://github.com/workhorsy/py-cpuinfo" +Repository = "https://github.com/workhorsy/py-cpuinfo.git" +Issues = "https://github.com/workhorsy/py-cpuinfo/issues" +Changelog = "https://github.com/workhorsy/py-cpuinfo/blob/master/ChangeLog" [project.scripts] cpuinfo = "cpuinfo:main" + +[tool.distutils.bdist_wheel] +universal = false diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 526aeb2..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = 0