Skip to content

Commit defebda

Browse files
committed
Fix setup info in docs
Fixes #244
1 parent e79f532 commit defebda

4 files changed

Lines changed: 23 additions & 9 deletions

File tree

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,24 @@ pip install beautifulsoup4
4444
```
4545

4646
In most cases, assuming you've installed version 4.7.0, that should be all you need to do, but if you've installed via
47-
some alternative method, and Soup Sieve is not automatically installed for your, you can install it directly:
47+
some alternative method, and Soup Sieve is not automatically installed, you can install it directly:
4848

4949
```
5050
pip install soupsieve
5151
```
5252

53-
If you want to manually install it from source, navigate to the root of the project and run
53+
If you want to manually install it from source, first ensure that [`build`](https://pypi.org/project/build/) is
54+
installed:
5455

5556
```
56-
python setup.py build
57-
python setup.py install
57+
pip install build
58+
```
59+
60+
Then navigate to the root of the project and build the wheel and install (replacing `<ver>` with the current version):
61+
62+
```
63+
python -m build -w
64+
pip install dist/soupsive-<ver>-py3-none-any.whl
5865
```
5966

6067
## Documentation

docs/src/markdown/.snippets/links.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[aspell]: https://github.com/GNUAspell/aspell
22
[bs4]: https://beautiful-soup-4.readthedocs.io/en/latest/#
3+
[build]: https://pypi.org/project/build/
34
[contains-draft]: https://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors
45
[cssom]: https://drafts.csswg.org/cssom/#common-serializing-idioms
56
[custom-extensions-1]: https://drafts.csswg.org/css-extensions-1/

docs/src/markdown/index.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,23 @@ pip install beautifulsoup4
3535
```
3636

3737
In most cases, assuming you've installed version 4.7.0, that should be all you need to do, but if you've installed via
38-
some alternative method, and Soup Sieve is not automatically installed for your, you can install it directly:
38+
some alternative method, and Soup Sieve is not automatically installed, you can install it directly:
3939

4040
```
4141
pip install soupsieve
4242
```
4343

44-
If you want to manually install it from source, navigate to the root of the project and run
44+
If you want to manually install it from source, first ensure that [`build`][build] is installed:
4545

4646
```
47-
python setup.py build
48-
python setup.py install
47+
pip install build
48+
```
49+
50+
Then navigate to the root of the project and build the wheel and install (replacing `<ver>` with the current version):
51+
52+
```
53+
python -m build -w
54+
pip install dist/soupsive-<ver>-py3-none-any.whl
4955
```
5056

5157
## Usage

soupsieve/__meta__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,5 @@ def parse_version(ver: str) -> Version:
192192
return Version(major, minor, micro, release, pre, post, dev)
193193

194194

195-
__version_info__ = Version(2, 3, 2, "final")
195+
__version_info__ = Version(2, 3, 2, "final", post=1)
196196
__version__ = __version_info__._get_canonical()

0 commit comments

Comments
 (0)