Skip to content

Commit

Permalink
Merge pull request #59 from rickecon/env
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Oct 9, 2023
2 parents 888da46 + 061a0c2 commit d2b8948
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build and test [Python 3.9]
name: Build and test [Python 3.10]
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9"]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10"]

steps:
- name: Checkout
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Install package
run: make install
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
miniforge-variant: Mambaforge
activate-environment: fiscalsim-us-dev
environment-file: environment.yml
python-version: "3.9"
python-version: "3.10"
auto-activate-base: false
- name: Install package and build documentation
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
miniforge-variant: Mambaforge
activate-environment: fiscalsim-us-dev
environment-file: environment.yml
python-version: "3.9"
python-version: "3.10"
auto-activate-base: false
- name: Install package and build documentation
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Build package
run: make pip-package
- name: Publish a Python distribution to PyPI
Expand Down
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2023-10-09 02:00:00

### Added

- Updates the Python version to 3.10 in `environment.yml`, `setup.py`, `README.md`, `build_and_test.yml`, `deploy_docs.yml`, `docs_check.yml`, and `publish_to_pypi.yml`.
- Adds back the Windows CI tests to `build_and_test.yml. See Issue #49.
- Updates to `numpy>=1.24,<1.24` and `policyengine-core>=2.8,<3` in `setup.py`. This change is what enabled the update to Python 3.10 and came from [PR #117](https://github.com/PolicyEngine/policyengine-core/pull/117) to `policyengine-core`.

## [0.1.5] - 2023-09-20 17:00:00

### Added
Expand Down Expand Up @@ -144,7 +152,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- First prototype version based off of openfisca-us and tax-calculator.



[0.2.0]: https://github.com/TheCGO/fiscalsim-us/compare/0.1.5...0.2.0
[0.1.5]: https://github.com/TheCGO/fiscalsim-us/compare/0.1.4...0.1.5
[0.1.4]: https://github.com/TheCGO/fiscalsim-us/compare/0.1.3...0.1.4
[0.1.3]: https://github.com/TheCGO/fiscalsim-us/compare/0.1.2...0.1.3
[0.1.2]: https://github.com/TheCGO/fiscalsim-us/compare/0.1.1...0.1.2
[0.1.1]: https://github.com/TheCGO/fiscalsim-us/compare/0.1.0...0.1.1
[0.1.0]: https://github.com/TheCGO/fiscalsim-us/compare/0.0.12...0.1.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| | |
| --- | --- |
| Org | [![CGO cataloged](https://img.shields.io/badge/CGO-catalogued-9cf)](https://github.com/TheCGO) [![OS License: AGPL-3.0](https://img.shields.io/badge/OS%20License-AGPL%203.0-yellow)](https://github.com/TheCGO/fiscalsim-us/blob/main/LICENSE) |
| Package | [![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-3916/) [![PyPI Latest Release](https://img.shields.io/pypi/v/fiscalsim-us.svg)](https://pypi.org/project/fiscalsim-us/) [![PyPI Downloads](https://img.shields.io/pypi/dm/fiscalsim-us.svg?label=PyPI%20downloads)](https://pypi.org/project/fiscalsim-us/) |
| Package | [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-31013/) [![PyPI Latest Release](https://img.shields.io/pypi/v/fiscalsim-us.svg)](https://pypi.org/project/fiscalsim-us/) [![PyPI Downloads](https://img.shields.io/pypi/dm/fiscalsim-us.svg?label=PyPI%20downloads)](https://pypi.org/project/fiscalsim-us/) |
| Testing | ![example event parameter](https://github.com/TheCGO/fiscalsim-us/actions/workflows/build_and_test.yml/badge.svg?branch=main) ![example event parameter](https://github.com/TheCGO/fiscalsim-us/actions/workflows/deploy_docs.yml/badge.svg?branch=main) ![example event parameter](https://github.com/TheCGO/fiscalsim-us/actions/workflows/check_format.yml/badge.svg?branch=main) [![Codecov](https://codecov.io/gh/TheCGO/fiscalsim-us/branch/main/graph/badge.svg)](https://codecov.io/gh/TheCGO/fiscalsim-us) |


Expand Down
5 changes: 5 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@
added:
- Updated `README.md` and its badges.
date: 2023-09-20 17:00:00
- bump: minor
changes:
added:
- Updated `README.md` and its badges.
date: 2023-10-09 02:00:00
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: fiscalsim-us-dev
dependencies:
- python=3.9
- python=3.10
- pip
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="fiscalsim-us",
version="0.1.5",
version="0.2.0",
author="Center for Growth and Opportunity at Utah State University (CGO)",
author_email="fiscalsim@thecgo.org",
long_description=readme,
Expand All @@ -17,7 +17,7 @@
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Information Analysis",
],
description="FiscalSim federal and state individual tax and benefit system for the US",
Expand All @@ -38,10 +38,10 @@
# NumPy v1.21.0 breaks matplotlib (see
# https://matplotlib.org/stable/devel/min_dep_policy.html#list-of-dependency-versions)
# But policyengine-core requires numpy<1.22 and >=1.21
"numpy>=1.21, <1.22",
"numpy>=1.24, <1.25",
"pandas",
"pathlib",
"policyengine-core>=2.1,<3",
"policyengine-core>=2.8,<3",
"pytest",
"pytest-dependency",
"pyyaml",
Expand Down Expand Up @@ -73,7 +73,7 @@
],
},
# Windows CI requires Python 3.9.
python_requires=">=3.7, <3.10",
python_requires=">=3.10, <3.12",
entry_points={
"console_scripts": [
"fiscalsim-us = fiscalsim_us.tools.cli:main",
Expand Down

0 comments on commit d2b8948

Please sign in to comment.