Skip to content

Commit

Permalink
Update CI and version and ignore black diff (#141)
Browse files Browse the repository at this point in the history
Updates CI to use new action versions that are not deprecated. Bumps the
version of the package to reflect the latest changes and add
.git-blame-ignore-revs so the GitHub UI blame will ignore the black
formatting changes.
  • Loading branch information
jborean93 committed Jun 7, 2024
1 parent 986a8ad commit 717339f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .git-blame-ignore-revs
# Bulk black reformatting
986a8ad007d7621a464ddee681769fc186a4ed01
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:
- python-version: '3.9'
- python-version: '3.10'
- python-version: '3.11'
- python-version: '3.12'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Run tests
shell: bash
run: |
python -m pip install -U pip setuptools
python -m pip install .
python -m pip install -r requirements.txt
Expand All @@ -65,24 +65,21 @@ jobs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Installing baseline packages
run: |
echo "Installing baseline pip packages"
python -m pip install --upgrade pip setuptools wheel
- uses: actions/checkout@v4

- name: Build package
run: python setup.py sdist bdist_wheel
run: |
python -m pip install build
python -m build
- name: Capture Wheel and SDist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact
path: dist/*

- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.event.release.tag_name, 'v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ mypy == 1.10.0
pytest
pytest-cov
types-requests
wheel
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = requests_ntlm
version = 1.2.0
version = 1.3.0
url = https://github.com/requests/requests-ntlm
author = Ben Toews
author_email = mastahyeti@gmail.com
Expand All @@ -18,6 +18,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
License :: OSI Approved :: ISC License (ISCL)

[options]
Expand Down

0 comments on commit 717339f

Please sign in to comment.