File tree 5 files changed +33
-23
lines changed
5 files changed +33
-23
lines changed Original file line number Diff line number Diff line change 45
45
- name : Lint
46
46
run : |
47
47
tox -e linting
48
+ deploy :
49
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
50
+ runs-on : ubuntu-latest
51
+ needs : [build, linting]
52
+ steps :
53
+ - uses : actions/checkout@v2
54
+ - name : Set up Python
55
+ uses : actions/setup-python@v2
56
+ with :
57
+ python-version : " 3.7"
58
+ - name : Install wheel
59
+ run : |
60
+ python -m pip install --upgrade pip setuptools
61
+ pip install wheel
62
+ - name : Build package
63
+ run : |
64
+ python setup.py sdist bdist_wheel
65
+ - name : Publish package to PyPI
66
+ uses : pypa/gh-action-pypi-publish@master
67
+ with :
68
+ user : __token__
69
+ password : ${{ secrets.pypi_token }}
Original file line number Diff line number Diff line change @@ -28,28 +28,12 @@ Steps
28
28
29
29
$ tox
30
30
31
- #. Install ``twine ``
32
-
33
- $ pip install twine
34
-
35
31
#. Commit and push the branch for review.
36
32
37
- #. Once PR is **green ** and **approved **, update `xprocess.__version__ `::
38
-
39
- #. Create source distribution and wheel
40
-
41
- $ python setup.py sdist bdist_wheel
42
-
43
- #. Check the created distribution files with twine
44
-
45
- $ twine check dist/*
46
-
47
- #. Release to test pypi to ensure everything is OK
48
-
49
- $ twine upload -r <testpypi> dist/*
50
-
51
- #. Finally, if everything looks fine on test pypi
33
+ #. Once PR is **green ** and **approved **, create and push a tag::
52
34
53
- $ twine upload -r pypi dist
35
+ $ export VERSION=X.Y.Z
36
+ $ git tag $VERSION release-$VERSION
37
+ $ git push [email protected] :pytest-dev/pytest-xprocess.git $VERSION
54
38
55
39
#. Merge ``release-X.Y.Z `` branch into master.
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [
3
+ " setuptools>=45.0" ,
4
+ " setuptools-scm[toml]>=6.2.3" ,
5
+ ]
6
+
7
+ [tool .setuptools_scm ]
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = pytest-xprocess
3
- version = attr: xprocess.__version__
4
3
author = Holger Krekel
5
4
6
5
license = MIT
Original file line number Diff line number Diff line change 9
9
"XProcessResources" ,
10
10
"XProcessInfo" ,
11
11
]
12
-
13
- __version__ = "0.22.0"
You can’t perform that action at this time.
0 commit comments