File tree 5 files changed +62
-3
lines changed
5 files changed +62
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to PyPI
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+ workflow_dispatch :
8
+ inputs :
9
+ twine_verbose :
10
+ description : ' Enable Twine verbose mode'
11
+ required : true
12
+ type : boolean
13
+
14
+ jobs :
15
+ pypi-publish :
16
+ name : upload release to PyPI
17
+ runs-on : ubuntu-latest
18
+ environment :
19
+ name : pypi
20
+ url : https://pypi.org/p/pyftdi
21
+ permissions :
22
+ id-token : write
23
+ strategy :
24
+ matrix :
25
+ python-version : ['3.13']
26
+ steps :
27
+
28
+ - uses : actions/checkout@v4
29
+
30
+ - name : Set up Python ${{ matrix.python-version }}
31
+ uses : actions/setup-python@v5
32
+ with :
33
+ python-version : ${{ matrix.python-version }}
34
+
35
+ - name : Install dependencies
36
+ run : |
37
+ python -m pip install --upgrade pip
38
+ pip install setuptools wheel
39
+
40
+ - name : Build package
41
+ run : |
42
+ python setup.py bdist_wheel
43
+
44
+ - name : Publish package distributions to PyPI
45
+ uses : pypa/gh-action-pypi-publish@release/v1
46
+ with :
47
+ verbose : ${{ inputs.twine_verbose }}
Original file line number Diff line number Diff line change @@ -16,26 +16,31 @@ jobs:
16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
19
+
19
20
- name : Set up Python ${{ matrix.python-version }}
20
21
uses : actions/setup-python@v5
21
22
with :
22
23
python-version : ${{ matrix.python-version }}
24
+
23
25
- name : Install dependencies
24
26
run : |
25
27
python -m pip install --upgrade pip
26
28
pip install -r requirements.txt
27
29
pip install -r test-requirements.txt
30
+
28
31
- name : Check style
29
32
run : |
30
33
python setup.py check_style
34
+
31
35
- name : Linter
32
36
run : |
33
37
pylint --disable=fixme --disable=duplicate-code \
34
- pyftdi pyftdi/bin pyftdi/serialext \
35
- pyftdi/tests pyftdi/serialext/tests pyftdi/tests/backend
38
+ $(git ls-files '*.py')
39
+
36
40
- name : Install package
37
41
run : |
38
42
python setup.py install
43
+
39
44
- name : Run tests
40
45
run : |
41
46
python pyftdi/tests/toolsimport.py
Original file line number Diff line number Diff line change @@ -15,19 +15,23 @@ jobs:
15
15
16
16
steps :
17
17
- uses : actions/checkout@v4
18
+
18
19
- name : Set up Python ${{ matrix.python-version }}
19
20
uses : actions/setup-python@v5
20
21
with :
21
22
python-version : ${{ matrix.python-version }}
23
+
22
24
- name : Install dependencies
23
25
run : |
24
26
python -m pip install --upgrade pip
25
27
pip install -r requirements.txt
26
28
pip install setuptools wheel sphinx sphinx_rtd_theme sphinx_autodoc_typehints
29
+
27
30
- name : Build package
28
31
run : |
29
32
python setup.py bdist
30
33
python setup.py sdist bdist_wheel
34
+
31
35
- name : Build documentation
32
36
run : |
33
37
mkdir doc
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2010-2021 Emmanuel Blot <emmanuel.blot@free.fr>
1
+ # Copyright (c) 2010-2024 Emmanuel Blot <emmanuel.blot@free.fr>
2
2
# All rights reserved.
3
3
#
4
4
# SPDX-License-Identifier: BSD-3-Clause
5
5
6
+ # pylint: skip-file
7
+
6
8
import os
7
9
import re
8
10
import sys
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ def main():
171
171
maintainer_email = find_meta ('email' ),
172
172
keywords = KEYWORDS ,
173
173
long_description = read_desc ('pyftdi/doc/index.rst' ),
174
+ long_description_content_type = 'text/x-rst' ,
174
175
packages = PACKAGES ,
175
176
scripts = ['pyftdi/bin/i2cscan.py' ,
176
177
'pyftdi/bin/ftdi_urls.py' ,
You can’t perform that action at this time.
0 commit comments