diff options
author | Leonard Richardson <leonardr@segfault.org> | 2023-03-20 09:14:01 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2023-03-20 09:14:01 -0400 |
commit | aa9fd36703b500a14d024c2d0c63444668c0a411 (patch) | |
tree | 91b1ff0de3dfd6ff46b08a2d1b09267586977d90 /prepare-release.sh | |
parent | 49a5fe0ade3c99ae516a7894c45279af0644a7f3 (diff) | |
parent | d0878350d3313909ba08eab73e4caeb96dbb1209 (diff) |
Merge branch 'master' into fuzz
Diffstat (limited to 'prepare-release.sh')
-rw-r--r-- | prepare-release.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/prepare-release.sh b/prepare-release.sh index fd6c80b..599e92b 100644 --- a/prepare-release.sh +++ b/prepare-release.sh @@ -14,7 +14,7 @@ # doc/source/index.rst # Make sure tests pass -./test-all-versions +python -m pytest bs4 rm -rf build dist beautifulsoup4.egg-info @@ -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>' |