Skip to content

Commit 353b4c0

Browse files
authored
Merge pull request #14 from MobSF/oidc
OIDC publish
2 parents 0455ce9 + b29c98d commit 353b4c0

4 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,26 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
711
jobs:
812
deploy:
913

1014
runs-on: ubuntu-latest
1115

1216
steps:
13-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1418
- name: Set up Python
15-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
1620
with:
1721
python-version: '3.x'
1822
- name: Install dependencies
1923
run: |
2024
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
22-
- name: Build and publish
23-
env:
24-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
25-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26-
run: |
27-
python setup.py sdist
28-
twine upload dist/*
25+
pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/python-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
python-version: ['3.12', '3.13']
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v1
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install httptools and dependencies

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def read(rel_path):
1717
'[mitmproxy](https://mitmproxy.org/)')
1818
setup(
1919
name='http-tools',
20-
version='6.0.0',
20+
version='6.0.1',
2121
description=description,
2222
author='Ajin Abraham',
2323
author_email='ajin25@gmail.com',
@@ -42,7 +42,7 @@ def read(rel_path):
4242
long_description=read('README.md'),
4343
long_description_content_type='text/markdown',
4444
install_requires=[
45-
'mitmproxy==12.1.2',
46-
'markupsafe>=3.0.2',
45+
'mitmproxy==12.2.1',
46+
'markupsafe>=3.0.3',
4747
],
4848
)

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[tox]
2-
envlist = py36, py37, py38
32
skipsdist = True
43

54
[testenv]
@@ -20,7 +19,6 @@ deps =
2019
flake8-docstrings
2120
flake8-eradicate
2221
flake8-import-order
23-
flake8-logging-format
2422
flake8-quotes
2523
flake8-self
2624
pep8-naming

0 commit comments

Comments
 (0)