Skip to content

Commit

Permalink
Use non-deprecated form of installation with setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
boxydog committed Jan 16, 2024
1 parent a4261bd commit 9e28b94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools-rust
python setup.py install
# replacement for "python setup.py install"
# See also https://packaging.python.org/en/latest/discussions/setup-py-deprecated/#setup-py-deprecated
python -m pip install .
pip install -r requirements-tests.txt
cat askbot_setup_test_inputs.txt | askbot-setup
- name: Run tests
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ Branch `0.7.x` - is the latest version supporting Django 1.5

## Installation

Installation was tested with Python 3.7 with the following commands:

pip install --upgrade pip
pip install setuptools-rust
python setup.py install
askbot-setup # answer the questions or use parameters to askbot-setup
cd <root_dir> # substitute <root_dir> with the actual directory, default is `askbot_site`
python manage.py migrate # assumes that the database specified by askbot-setup is available
Install as follows:

```
pip install --upgrade pip
pip install setuptools-rust
python -m pip install .
askbot-setup # answer the questions or use parameters to askbot-setup
cd <root_dir> # substitute <root_dir> with the actual directory, default is `askbot_site`
python manage.py migrate # assumes that the database specified by askbot-setup is available
```

The last command above will create a working Django project in the project root
directory that you specify with the `askbot-setup` script.
Expand Down

0 comments on commit 9e28b94

Please sign in to comment.