Skip to content

Commit

Permalink
Update build for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tora-kozic committed Nov 30, 2023
1 parent a4177fe commit cc8f18a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand All @@ -25,7 +25,9 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install tox
run: pip install tox==3.17.1
run: |
pip install tox==3.17.1
pip install .
- name: Run Unit tests
run: cd code42cli; tox -e py # Run tox using the version of Python in `PATH`
- name: Submit coverage report
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
with:
python-version: '3.x'
- name: Install tox
run: pip install tox==3.17.1
run: |
pip install tox==3.17.1
pip install .
- name: Build docs
run: tox -e docs
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
with:
python-version: '3.x'
- name: Install tox
run: pip install tox==3.17.1
run: |
pip install tox==3.17.1
pip install .
- name: Run style checks
run: tox -e style
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
"click>=7.1.1",
"click_plugins>=1.1.1",
"colorama>=0.4.3",
"keyring==18.0.1",
"keyrings.alt==3.2.0",
"keyring>=18.0.1",
"keyrings.alt>=3.2.0",
"ipython>=7.16.3;python_version<'3.8'",
"ipython>=8.10.0;python_version>='3.8'",
"pandas>=1.1.3",
"py42>=1.26.0",
"setuptools>=69.0.0"
],
extras_require={
"dev": [
Expand Down
2 changes: 1 addition & 1 deletion src/code42cli/output_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _iter_table(self, dfs, columns=None, **kwargs):
if df.empty:
return
# convert everything to strings so we can left-justify format
df = df.fillna("").applymap(str)
df = df.fillna("").map(str)
# set overrideable default kwargs
kwargs = {
"index": False,
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{311,310,39,38,37}
py{312,311,310,39,38,37}
docs
style
skip_missing_interpreters = true
Expand All @@ -11,7 +11,8 @@ deps =
pytest-mock == 3.10.0
pytest-cov == 4.0.0
pandas >= 1.1.3
pexpect == 4.8.0
pexpect == 4.8.0
setuptools >= 69.0.0

commands =
# -v: verbose
Expand Down

0 comments on commit cc8f18a

Please sign in to comment.