diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8cd705f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,96 +0,0 @@ -# CircleCI 2.0 configuration file. See . -version: 2 -jobs: - build: - docker: - - image: python:3.7 - - steps: - - checkout - - - restore_cache: - key: v1-py3-deps-{{ checksum "setup.py" }} - - - run: - name: Create a virtualenv - command: | - mkdir -p /tmp/venv/france-pension - python -m venv /tmp/venv/france-pension - echo "source /tmp/venv/france-pension/bin/activate" >> $BASH_ENV - - - run: - name: Install dependencies - command: | - make build - # pip install --editable git+https://github.com/openfisca/openfisca-core.git@BRANCH#egg=OpenFisca-Core[web-api] # use a specific branch of OpenFisca-Core - - - save_cache: - key: v1-py3-deps-{{ checksum "setup.py" }} - paths: - - /tmp/venv/france-pension - - - save_cache: - key: v1-py3-build-{{ .Revision }} - paths: - - dist - - - run: - name: Run tests - command: make test - - check_version: - docker: - - image: python:3.7 - - steps: - - checkout - - - run: - name: Check version number has been properly updated - command: | - git fetch - .circleci/is-version-number-acceptable.sh - - deploy: - docker: - - image: python:3.7 - environment: - PYPI_USERNAME: openfisca-bot # Edit this value to replace it by your Pypi username - # PYPI_PASSWORD: this value is set in CircleCI's web interface; do not set it here, it is a secret! - - steps: - - checkout - - - restore_cache: - key: v1-py3-deps-{{ checksum "setup.py" }} - - - restore_cache: - key: v1-py3-build-{{ .Revision }} - - - run: - name: Check for functional changes - command: if ! .circleci/has-functional-changes.sh ; then circleci step halt ; fi - - - run: - name: Upload a Python package to Pypi - command: | - source /tmp/venv/france-pension/bin/activate - twine upload dist/* --username $PYPI_USERNAME --password $PYPI_PASSWORD - - - run: - name: Publish a git tag - command: .circleci/publish-git-tag.sh - -workflows: - version: 2 - build_and_deploy: - jobs: - - build - - check_version - - deploy: - requires: - - build - - check_version - filters: - branches: - only: master diff --git a/.circleci/has-functional-changes.sh b/.circleci/has-functional-changes.sh deleted file mode 100755 index b787de9..0000000 --- a/.circleci/has-functional-changes.sh +++ /dev/null @@ -1,12 +0,0 @@ -#! /usr/bin/env bash - -IGNORE_DIFF_ON="README.md CONTRIBUTING.md Makefile .gitignore .circleci/* .github/*" - -last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't follow tags not published in master through an unlikely intermediary merge commit - -if git diff-index --name-only --exit-code $last_tagged_commit -- . `echo " $IGNORE_DIFF_ON" | sed 's/ / :(exclude)/g'` # Check if any file that has not be listed in IGNORE_DIFF_ON has changed since the last tag was published. -then - echo "No functional changes detected." - exit 1 -else echo "The functional files above were changed." -fi diff --git a/.circleci/is-version-number-acceptable.sh b/.circleci/is-version-number-acceptable.sh deleted file mode 100755 index ae370e2..0000000 --- a/.circleci/is-version-number-acceptable.sh +++ /dev/null @@ -1,33 +0,0 @@ -#! /usr/bin/env bash - -if [[ $CIRCLE_BRANCH == master ]] -then - echo "No need for a version check on master." - exit 0 -fi - -if ! $(dirname "$BASH_SOURCE")/has-functional-changes.sh -then - echo "No need for a version update." - exit 0 -fi - -current_version=`python setup.py --version` - -if git rev-parse --verify --quiet $current_version -then - echo "Version $current_version already exists in commit:" - git --no-pager log -1 $current_version - echo - echo "Update the version number in setup.py before merging this branch into master." - echo "Look at the CONTRIBUTING.md file to learn how the version number should be updated." - exit 1 -fi - -if ! $(dirname "$BASH_SOURCE")/has-functional-changes.sh | grep --quiet CHANGELOG.md -then - echo "CHANGELOG.md has not been modified, while functional changes were made." - echo "Explain what you changed before merging this branch into master." - echo "Look at the CONTRIBUTING.md file to learn how to write the changelog." - exit 2 -fi diff --git a/.circleci/publish-git-tag.sh b/.circleci/publish-git-tag.sh deleted file mode 100755 index 4450357..0000000 --- a/.circleci/publish-git-tag.sh +++ /dev/null @@ -1,4 +0,0 @@ -#! /usr/bin/env bash - -git tag `python setup.py --version` -git push --tags # update the repository version diff --git a/CHANGELOG.md b/CHANGELOG.md index de69082..b539e9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,17 @@ # Changelog +## 0.0.3 [6](https://github.com/openfisca/openfisca-france-pension/pull/6) + +* Amélioration technique. +* Détails : + - Utilisation de la nouvelle version de openfisca-core intégrant les as-of-date parameters. + ## 0.0.2 [5](https://github.com/openfisca/openfisca-france-pension/pull/5) * Amélioration technique. * Détails : - Configuration de l'intégration continue - ## 0.0.1 -First Draft +First draft diff --git a/setup.py b/setup.py index 002c8ff..4c1a209 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name = "OpenFisca-France-Pension", python_requires='>=3.9', - version = "0.0.2", + version = "0.0.3", author = "OpenFisca Team", author_email = "contact@openfisca.org", classifiers=[ @@ -20,7 +20,7 @@ description = "OpenFisca tax and benefit system for France-Pension", keywords = "benefit microsimulation social tax", license ="http://www.fsf.org/licensing/licenses/agpl-3.0.html", - # url = "https://github.com/openfisca/country-template", + url = "https://github.com/openfisca/openfisca-france-pension", include_package_data = True, # Will read MANIFEST.in data_files = [ ( @@ -30,8 +30,7 @@ ], install_requires = [ "bottleneck >=1.3.2,<=2.0.0", - "OpenFisca-Core @ git+https://github.com/openfisca/openfisca-core@pension-rebased#egg=openfisca-core", - # "OpenFisca-Core >= 41.1,<42", + "OpenFisca-Core >= 41.5.0,<42", "numba>=0.54,<1.0.0", "pandas>=2.0,<3.0", ],