Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python version #106

Merged
merged 4 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: '3.11'
python-version: '3.12'

- name: Install dependencies
run: |
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/run-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.7, 3.8, 3.9, '3.10', '3.11']
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
exclude:
- os: macos-latest
python: 3.7
Expand All @@ -16,6 +16,8 @@ jobs:
python: 3.9
- os: macos-latest
python: '3.10'
- os: macos-latest
python: '3.11'
- os: windows-latest
python: 3.7
- os: windows-latest
Expand All @@ -24,6 +26,8 @@ jobs:
python: 3.9
- os: windows-latest
python: '3.10'
- os: windows-latest
python: '3.11'
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -51,20 +55,20 @@ jobs:
TOX_SKIP_ENV: coverage,GHA-coverage

- name: Lint
if: ${{ matrix.python == '3.11' && runner.os == 'Linux'}}
if: ${{ matrix.python == '3.12' && runner.os == 'Linux'}}
run: tox -e lint

- name: isort
if: ${{ matrix.python == '3.11' && runner.os == 'Linux'}}
if: ${{ matrix.python == '3.12' && runner.os == 'Linux'}}
run: tox -e isort-check


- name: Build Coverage
if: ${{ matrix.python == '3.11' && runner.os == 'Linux'}}
if: ${{ matrix.python == '3.12' && runner.os == 'Linux'}}
run: tox -e GHA-coverage

- name: Upload Coveralls
if: ${{ matrix.python == '3.11' && runner.os == 'Linux'}}
if: ${{ matrix.python == '3.12' && runner.os == 'Linux'}}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion causalimpact/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.


__version__ = '0.0.16'
__version__ = '0.0.17'
2 changes: 1 addition & 1 deletion causalimpact/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _check_component(component):
'points equal to pre_data and post_data points and '
'same number of covariates. Input design_matrix shape was '
f'{component.design_matrix.shape} and expected '
f'{(len(pre_data) + len(post_data), len(pre_data.columns) -1)} '
f'{(len(pre_data) + len(post_data), len(pre_data.columns) - 1)} '
'instead.'
)
assert component.design_matrix.dtype == tf.float32
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
],
project_urls={
'Source': 'https://github.com/WillianFuks/tfcausalimpact'
},
python_requires='>=3, <3.12',
python_requires='>=3, <3.13',
test_suite='tests'
)
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{37, 38, 39, 310, 311}-{linux,macos,windows}
py{37, 38, 39, 310, 311, 312}-{linux,macos,windows}
gh-actions-coveralls

[gh-actions]
Expand All @@ -9,7 +9,8 @@ python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint, isort-check, coverage
3.11: py311
3.12: py312, lint, isort-check, coverage

[gh-actions:env]
PLATFORM =
Expand Down Expand Up @@ -43,7 +44,7 @@ commands =

[testenv:lint]
basepython =
python3.11
python3.12
deps =
flake8
commands =
Expand Down
Loading