Skip to content

Commit 83e8269

Browse files
Remove directly call to setup.py (#300)
## πŸ“ Description Calling `setup.py` is deprecated. https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
1 parent 7e82020 commit 83e8269

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

β€ŽMakefileβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ clean:
2020

2121
@PHONEY: build
2222
build: clean
23-
$(PYTHON) setup.py sdist
24-
$(PYTHON) setup.py bdist_wheel
23+
$(PYTHON) -m build --wheel --sdist
2524

2625

2726
@PHONEY: release
@@ -30,7 +29,7 @@ release: build
3029

3130

3231
install: clean
33-
python3 setup.py install
32+
python3 -m pip install .
3433

3534

3635
requirements:

β€ŽREADME.rstβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Building from Source
2727
To build and install this package:
2828

2929
- Clone this repository
30-
- ``./setup.py install``
30+
- ``python3 -m pip install .``
3131

3232
Usage
3333
=====

β€Ždocs/guides/getting_started.rstβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you prefer, you can clone the package from github_ and install it from source
1818
1919
git clone [email protected]:Linode/linode_api4-python
2020
cd linode_api4
21-
python setup.py install
21+
python -m pip install .
2222
2323
Authentication
2424
--------------

β€Ždocs/index.rstβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To install from source::
1919

2020
git clone https://github.com/linode/linode_api4-python
2121
cd linode_api4
22-
python setup.py install
22+
python -m pip install .
2323

2424
For more information, see our :doc:`Getting Started<guides/getting_started>`
2525
guide.

β€Žtox.iniβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deps =
1010
pylint
1111
httpretty
1212
commands =
13-
python setup.py install
13+
python -m pip install .
1414
coverage run --source linode_api4 -m pytest test/unit
1515
coverage report
1616
pylint linode_api4

0 commit comments

Comments
Β (0)