Skip to content

Commit

Permalink
Remove setup.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lucc committed Dec 1, 2023
1 parent 369106c commit f6f0047
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 0 additions & 10 deletions setup.py

This file was deleted.

0 comments on commit f6f0047

Please sign in to comment.