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

Test on Python 3.12 #205

Merged
merged 13 commits into from
Sep 24, 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/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Package and Test Source Code [Python 3.9, 3.10, 3.11]
name: Build Package and Test Source Code [Python 3.10, 3.11, 3.12]

on: [push, pull_request]

Expand All @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check_jupyterbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@v4 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: taxbrain-dev
environment-file: environment.yml
python-version: "3.10"
python-version: "3.12"
auto-activate-base: false

- name: Build # Build Jupyter Book
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_jupyterbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: taxbrain-dev
environment-file: environment.yml
python-version: "3.10"
python-version: "3.12"
auto-activate-base: false

- name: Build # Build Jupyter Book
Expand All @@ -31,7 +31,7 @@ jobs:
jb build ./book

- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
Expand Down
38 changes: 23 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# Tax-Brain
| | |
| --- | --- |
| Org | [![PSL cataloged](https://img.shields.io/badge/PSL-cataloged-a0a0a0.svg)](https://www.PSLmodels.org) [![OS License: CCO-1.0](https://img.shields.io/badge/OS%20License-CCO%201.0-yellow)](https://github.com/PSLmodels/Tax-Brain/blob/master/LICENSE) [![Jupyter Book Badge](https://jupyterbook.org/badge.svg)](https://pslmodels.github.io/Tax-Brain/) |
| Package | [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3108/) [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3118/) [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3121/) [![PyPI Latest Release](https://img.shields.io/pypi/v/taxbrain.svg)](https://pypi.org/project/taxbrain/) [![PyPI Downloads](https://img.shields.io/pypi/dm/taxbrain.svg?label=PyPI%20downloads)](https://pypi.org/project/taxbrain/) [![Anaconda](https://img.shields.io/conda/dn/conda-forge/taxbrain?color=brightgreen&label=downloads&logo=conda-forge)](https://anaconda.org/conda-forge/taxbrain)|
| Testing | ![example event parameter](https://github.com/PSLmodels/Tax-Brain/actions/workflows/build_and_test.yml/badge.svg?branch=master) ![example event parameter](https://github.com/PSLmodels/Tax-Brain/actions/workflows/deploy_jupyterbook.yml/badge.svg?branch=master) [![Codecov](https://codecov.io/gh/PSLmodels/Tax-Brain/branch/master/graph/badge.svg)](https://codecov.io/gh/PSLmodels/Tax-Brain) |

Tax-Brain is a Python package that wraps multiple economic models in one easy
to use interface.
Tax-Brain
==============

Tax-Brain is a Python package that wraps two models, [Tax-Calculator](https://taxcalc.pslmodels.org) and [Behavioral Responses](https://github.com/PSLmodels/Behavioral-Responses), in one easy
to use interface for producing revenue estimates and distributional analysis of tax policy changes.

We are seeking contributors and maintainers. If you are interested in joining the project as a contributor or maintainer,
open a new [issue](https://github.com/PSLmodels/Tax-Calculator/issues) and ping [@jdebacker](https://github.com/jdebacker/) -- or just jump right in.

Complete documentation is available at
[`taxbrain.pslmodels.org`](http://taxbrain.pslmodels.org/content/intro.html).

## Overview

Expand All @@ -24,13 +37,13 @@ they are using when reporting their results.

## Installing Tax-Brain

You can install the latest official release from Conda using this command:
`conda install -c pslmodels taxbrain`.
You can install the latest official release from PyPI using this command:
`pip taxbrain`.

Similarly, you can update to the latest release of Tax-Brain using
`conda update -c pslmodels taxbrain`.
`pip install -U taxbrain`.

Tax-Brain is currently not available on PyPI.
Tax-Brain is no longer maintained on Conda.

## Using Tax-Brain

Expand All @@ -47,10 +60,10 @@ you describe your input data and note the versions of the underlying models.

## Tax-Brain Interface

In addition to its Python API, Tax-Brain also powers a web application on
[Compute Studio](https://compute.studio/). That application can be found
In addition to its Python API, Tax-Brain has also been used to power web applications on
[Compute Studio](https://compute.studio/) and other platforms. An application used to be available at
[here](https://compute.studio/PSLmodels/Tax-Brain/). The code behind the
GUI can be found in this repository in the [cs-config](https://github.com/PSLmodels/Tax-Brain/tree/master/cs-config)
GUI web application can be found in this repository in the [cs-config](https://github.com/PSLmodels/Tax-Brain/tree/master/cs-config)
directory.

## Additional Information
Expand All @@ -60,8 +73,3 @@ directory.
* [Contributors](https://github.com/PSLmodels/Tax-Brain/graphs/contributors)
* [Release History](https://github.com/PSLmodels/Tax-Brain/blob/master/RELEASES.md)

## Releasing New Versions of Tax-Brain

To release new versions of Tax-Brain, use the [Package-Builder](https://github.com/PSLmodels/Package-Builder)
tool. Before using the tool, be sure to add the conda-forge channel to your
conda config by using `conda config --add channels conda-forge`.
8 changes: 8 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Tax-Brain Release History

## 2024-09-23 Release 2.7.2

Last Merged Pull Request: [#205](https://github.com/PSLmodels/Tax-Brain/pull/205)

Changes in this release:

* Minor updates to the documentation: [#204](https://github.com/PSLmodels/Tax-Brain/pull/204) and [#205](https://github.com/PSLmodels/Tax-Brain/pull/205)
* Testing on Python 3.12: [#205](https://github.com/PSLmodels/Tax-Brain/pull/205)

## 2024-06-10 Release 2.7.1

Expand Down
7 changes: 4 additions & 3 deletions docs/book/_config.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
####################################################
# Book settings
title : Tax-Brain
author : Anderson Frailey
author : Jason DeBacker and Anderson Frailey
copyright : '2024'
logo : '../taxbrain.png'

####################################################
# Execution settings
execute:
execute_notebooks : cache
timeout : 300
execute_notebooks : force


####################################################
# HTML-specific settings
Expand All @@ -34,6 +34,7 @@ binder:

launch_buttons:
notebook_interface : 'classic' # The interface interactive links will activate ["classic", "jupyterlab"]
colab_url : "https://colab.research.google.com"
# binderhub_url : https://mybinder.org # The URL of the BinderHub (e.g., https://mybinder.org)
# jupyterhub_url : "" # The URL of the JupyterHub (e.g., https://datahub.berkeley.edu)
# thebelab : false # Add a thebelab button to pages (requires the repository to run on Binder)
Expand Down
1 change: 1 addition & 0 deletions docs/book/content/api/public_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ There is also a link to the source code for each documented member.
:maxdepth: 1

cli
corporate_incidence
report
report_utils
taxbrain
Expand Down
Loading
Loading