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 3fd405b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,25 @@ 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
- uses: actions/checkout@v3
with:
path: code42cli
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Ensure latest pip
run: python -m pip install --upgrade pip

- 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
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
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 3fd405b

Please sign in to comment.