summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-03-20 08:26:58 -0400
committerLeonard Richardson <leonardr@segfault.org>2023-03-20 08:26:58 -0400
commitd0878350d3313909ba08eab73e4caeb96dbb1209 (patch)
tree55e8e73720a7c7654289fbd5586bf2c204593350
parent67a75a51d6433bdf9775e721e495ca2315513047 (diff)
Replace pytest with python -m pytest in the release preparation script.
-rw-r--r--doc/source/conf.py2
-rw-r--r--prepare-release.sh7
2 files changed, 4 insertions, 5 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index e32d6b8..15e258b 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -50,7 +50,7 @@ copyright = u'2004-2023, Leonard Richardson'
# The short X.Y version.
version = '4'
# The full version, including alpha/beta/rc tags.
-release = '4.9.0'
+release = '4.12.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff --git a/prepare-release.sh b/prepare-release.sh
index 972b396..599e92b 100644
--- a/prepare-release.sh
+++ b/prepare-release.sh
@@ -27,15 +27,13 @@ rm -rf ../py3-install-test-virtualenv
virtualenv -p /usr/bin/python3 ../py3-install-test-virtualenv
source ../py3-install-test-virtualenv/bin/activate
pip install dist/beautifulsoup4-*.whl pytest lxml html5lib soupsieve
-pytest ../py3-install-test-virtualenv/lib/python3.10/site-packages/bs4/tests/
+python -m pytest ../py3-install-test-virtualenv/lib/python3.10/site-packages/bs4/tests/
echo "EXPECT HTML ON LINE BELOW"
(cd .. && python -c "from bs4 import _s; print(_s('<a>foo', 'html.parser'))")
# That should print '<a>foo</a>'
deactivate
rm -rf ../py3-install-test-virtualenv
-#
-
# Upload to test
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
@@ -44,8 +42,9 @@ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
rm -rf ../py3-install-test-virtualenv
virtualenv -p /usr/bin/python3 ../py3-install-test-virtualenv
source ../py3-install-test-virtualenv/bin/activate
+pip install pytest lxml html5lib
pip install -i https://testpypi.python.org/pypi beautifulsoup4 --extra-index-url=https://pypi.python.org/pypi
-pytest ../py3-install-test-virtualenv/lib/python3.10/site-packages/bs4/tests/
+python -m pytest ../py3-install-test-virtualenv/lib/python3.10/site-packages/bs4/tests/
echo "EXPECT HTML ON LINE BELOW"
(cd .. && python -c "from bs4 import _s; print(_s('<a>foo', 'html.parser'))")
# That should print '<a>foo</a>'