From f6f0047d51b60b893d0d8329f79898584ea50833 Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Fri, 1 Dec 2023 11:29:01 +0100 Subject: [PATCH] Remove setup.py This finalizes the switch from the deprecated setup.py to pyproject.toml. Setuptools is still used internally but not on the command line. Use pip to install khard or build the version.py file. See also pep 517 and 518 or https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html. --- .github/workflows/ci.yml | 6 +++--- .readthedocs.yml | 4 ---- setup.py | 10 ---------- 3 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 setup.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc11ec7..c006e8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,11 +46,11 @@ jobs: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v4 + with: + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install .[doc] - name: Build the documentation - run: | - python setup.py build - make -C doc html man + run: make -C doc html man diff --git a/.readthedocs.yml b/.readthedocs.yml index da16f14..9fb7c23 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,10 +13,6 @@ sphinx: python: install: - # Run setup.py first to generate the version.py file. For some reason it - # is not generated with `pip install .[doc]` - - method: setuptools - path: . - method: pip path: . extra_requirements: diff --git a/setup.py b/setup.py deleted file mode 100644 index 881d40c..0000000 --- a/setup.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- - -# tutorials: -# - https://packaging.python.org/en/latest/distributing.html -# - https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ -# - https://gehrcke.de/2014/02/distributing-a-python-command-line-application/ - -from setuptools import setup - -setup(test_suite="test")