Skip to content

Commit 4547137

Browse files
committed
Document upload process
1 parent be3fb7b commit 4547137

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

README.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ You can install it with pip::
4747
Or you can install it with conda::
4848

4949
conda install -c conda-forge python-mss
50+
51+
Maintenance
52+
-----------
53+
54+
For the maintainers, here are commands to upload a new release:
55+
56+
python -m build --sdist --wheel
57+
twine check dist/*
58+
twine upload dist/*

mss/tests/test_setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22
This is part of the MSS Python's module.
33
Source: https://github.com/BoboTiG/python-mss
44
"""
5-
from subprocess import STDOUT, check_output
5+
from subprocess import STDOUT, check_call, check_output
66

77
from mss import __version__
88

9-
CMD = "python setup.py sdist bdist_wheel".split()
9+
INSTALL = "python -m build --sdist --wheel".split()
10+
CHECK = "twine check dist/*".split()
1011

1112

1213
def test_wheel_python_3_only():
1314
"""Ensure the produced wheel is Python 3 only."""
14-
output = check_output(CMD, stderr=STDOUT, text=True)
15+
output = check_output(INSTALL, stderr=STDOUT, text=True)
1516
text = f"mss-{__version__}-py3-none-any.whl"
1617
assert text in output
1718

1819
print(output)
1920
assert "warning" not in output.lower()
21+
22+
check_call(CHECK)

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ envlist =
99
passenv = DISPLAY
1010
alwayscopy = True
1111
deps =
12+
build
1213
flaky
1314
pytest
1415
# Must pin that version to support PyPy3
1516
pypy3: numpy==1.15.4
1617
py3{11,10,9,8,7,6}: numpy
1718
pillow
19+
twine
1820
wheel
1921
commands =
2022
python -m pytest {posargs}

0 commit comments

Comments
 (0)