Skip to content

Commit

Permalink
Add support py310 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillianFuks authored Dec 20, 2022
1 parent 8e3794c commit edc2840
Show file tree
Hide file tree
Showing 8 changed files with 215 additions and 203 deletions.
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.9
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: '3.10'

- 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,16 +6,20 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.7, 3.8, 3.9]
python: [3.7, 3.8, 3.9, '3.10']
exclude:
- os: macos-latest
python: 3.7
- os: macos-latest
python: 3.8
- os: macos-latest
python: 3.9
- os: windows-latest
python: 3.7
- os: windows-latest
python: 3.8
- os: windows-latest
python: 3.9
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -43,20 +47,20 @@ jobs:
TOX_SKIP_ENV: coverage,GHA-coverage

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

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


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

- name: Upload Coveralls
if: ${{ matrix.python == '3.9' && runner.os == 'Linux'}}
if: ${{ matrix.python == '3.10' && runner.os == 'Linux'}}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ celerybeat.pid

# Environments
.env
.env*
.venv
env/
venv/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Please refer to this medium [post](https://towardsdatascience.com/implementing-c

## Requirements

- python{3.7, 3.8, 3.9}
- python{3.7, 3.8, 3.9, 3.10}
- matplotlib
- jinja2
- tensorflow>=2.10.0
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.12'
__version__ = '0.0.13'
385 changes: 195 additions & 190 deletions notebooks/getting_started.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,13 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
],
project_urls={
'Source': 'https://github.com/WillianFuks/tfcausalimpact'
},
python_requires='>=3, <3.10',
python_requires='>=3, <3.11',
test_suite='tests'
)
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
envlist =
py{37, 38, 39}-{linux,macos,windows}
py{37, 38, 39, 310}-{linux,macos,windows}
gh-actions-coveralls

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39, lint, isort-check, coverage
3.9: py39
3.10: py310, lint, isort-check, coverage

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

[testenv:lint]
basepython =
python3.9
python3.10
deps =
flake8
commands =
Expand Down

0 comments on commit edc2840

Please sign in to comment.