Skip to content
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
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements-dev.txt
Expand All @@ -26,21 +26,21 @@ jobs:
- name: MyPy
run: mypy src/

py310:
name: Test (Python 3.10)
python-tests:
name: Test (Python 3.11)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
- name: Run tox job
run: |
pip install tox
tox -e py310
tox -e py311
- name: Submit code coverage data
run: |
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
Expand All @@ -58,10 +58,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
cache: 'pip'
- name: Run tox job
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tagged-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: Install build dependencies
run: python -m pip install --upgrade build
Expand Down
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,10 @@ For example, you can run:

* `tox -e lint` to lint

* `tox -e py310 -- -k utils` to only run tests with "utils" somewhere in the name, on Python 3.10
* `tox -e py311 -- -k utils` to only run tests with "utils" somewhere in the name, on Python 3.11

* `tox tests/test_utils.py` to run tests in a specific file

### With the CircleCI utilities

To test/debug this package locally, you can run exactly the job that
CircleCI runs for continuous integration by
[installing the CircleCI local CLI](https://circleci.com/docs/2.0/local-cli/#installing-the-circleci-local-cli-on-macos-and-linux-distros)
and invoking:

```bash
circleci build --job py310
```

See [.circleci/config.yml](https://github.com/mozilla/mozanalysis/blob/main/.circleci/config.yml)
for the other configured job names (for running tests on different python versions).

## Deploying a new release

Releasing mozanalysis happens by tagging a CalVer based Git tag with the
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "mozanalysis"
dynamic = ["version"]
authors = [{ name = "Mozilla Corporation", email = "fx-data-dev@mozilla.org" }]
description = "A library for Mozilla experiments analysis"
requires-python = ">=3.10,<=3.11"
requires-python = ">=3.11"
dependencies = [
"attrs",
"formulaic",
Expand Down Expand Up @@ -49,7 +49,7 @@ dev = ["build", "mozanalysis[testing]", "pip-tools", "tox", "twine"]
[tool.ruff]
line-length = 88
exclude = [".git", "__pycache__"]
target-version = "py310"
target-version = "py311"

[tool.ruff.lint]
ignore = ["E741", "RUF005"]
Expand Down
50 changes: 18 additions & 32 deletions requirements-dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ attrs==25.4.0
# referencing
backports-tarfile==1.2.0
# via jaraco-context
build==1.3.0
build==1.4.0
# via
# mozanalysis
# pip-tools
Expand Down Expand Up @@ -49,7 +49,7 @@ click==8.3.1
# pip-tools
colorama==0.4.6
# via tox
contourpy==1.3.2
contourpy==1.3.3
# via
# -c requirements.txt
# matplotlib
Expand All @@ -69,16 +69,11 @@ distlib==0.4.0
# via virtualenv
docutils==0.22.4
# via readme-renderer
exceptiongroup==1.3.1
# via
# -c requirements.txt
# cattrs
# pytest
faker==40.1.0
# via
# -c requirements.txt
# polyfactory
filelock==3.20.2
filelock==3.20.3
# via
# tox
# virtualenv
Expand All @@ -99,7 +94,7 @@ gitpython==3.1.46
# via
# -c requirements.txt
# mozilla-metric-config-parser
google-api-core[grpc]==2.28.1
google-api-core[grpc]==2.29.0
# via
# -c requirements.txt
# google-cloud-bigquery
Expand Down Expand Up @@ -225,8 +220,7 @@ more-itertools==10.8.0
# via
# jaraco-classes
# jaraco-functools
# via -r -
mozilla-metric-config-parser==2025.12.1
mozilla-metric-config-parser==2026.1.1
# via
# -c requirements.txt
# mozanalysis
Expand All @@ -249,7 +243,7 @@ narwhals==2.15.0
# marginaleffects
nh3==0.3.2
# via readme-renderer
numpy==2.2.6
numpy==2.3.5
# via
# -c requirements.txt
# contourpy
Expand All @@ -258,13 +252,19 @@ numpy==2.2.6
# matplotlib
# mizani
# mozanalysis
# numpy-typing-compat
# optype
# pandas
# pandas-stubs
# patsy
# plotnine
# scipy
# statsmodels
optype==0.9.3
numpy-typing-compat==20251206.2.3
# via
# -c requirements.txt
# optype
optype[numpy]==0.15.0
# via
# -c requirements.txt
# scipy-stubs
Expand All @@ -291,7 +291,7 @@ pandas-stubs==2.3.3.251219
# via
# -c requirements.txt
# mozanalysis
pathspec==1.0.2
pathspec==1.0.3
# via
# -c requirements.txt
# mypy
Expand Down Expand Up @@ -449,12 +449,12 @@ rsa==4.9.1
# via
# -c requirements.txt
# google-auth
ruff==0.14.10
ruff==0.14.11
# via
# -c requirements.txt
# mozanalysis
# pytest-ruff
scipy==1.15.3
scipy==1.16.3
# via
# -c requirements.txt
# formulaic
Expand All @@ -463,7 +463,7 @@ scipy==1.15.3
# mozanalysis
# plotnine
# statsmodels
scipy-stubs==1.15.3.0
scipy-stubs==1.17.0.0
# via
# -c requirements.txt
# mozanalysis
Expand All @@ -489,17 +489,7 @@ toml==0.10.2
# via
# -c requirements.txt
# mozilla-metric-config-parser
tomli==2.3.0
# via
# -c requirements.txt
# build
# coverage
# mypy
# pip-tools
# pyproject-api
# pytest
# tox
tox==4.33.0
tox==4.34.1
# via mozanalysis
twine==6.2.0
# via mozanalysis
Expand All @@ -511,8 +501,6 @@ typing-extensions==4.15.0
# via
# -c requirements.txt
# cattrs
# cryptography
# exceptiongroup
# formulaic
# grpcio
# mozilla-nimbus-schemas
Expand All @@ -522,9 +510,7 @@ typing-extensions==4.15.0
# pydantic
# pydantic-core
# referencing
# tox
# typing-inspection
# virtualenv
typing-inspection==0.4.2
# via
# -c requirements.txt
Expand Down
Loading