Skip to content

Commit

Permalink
Fix setup script (#163)
Browse files Browse the repository at this point in the history
* Crash fix.
* Impacted areas: `./first-time-setup.sh`
* Details:
- Remove mention of .flake8 which crashes setup script when not present

- - - -

These changes :

- Fix or improve an already existing calculation --> setup script.
  • Loading branch information
benjello authored Jan 9, 2025
2 parents 5c33a5c + 65740c3 commit a8628c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

### 7.1.9 [#163](https://github.com/openfisca/country-template/pull/163)

* Crash fix
* Impacted areas: `first-time-setup.sh`
* Details:
- Trying to adapt file `.flake8` would crash setup script when file is not present
- This changeset fixes that problem

### 7.1.8 [#159](https://github.com/openfisca/country-template/pull/159)

* Crash fix
Expand Down
2 changes: 1 addition & 1 deletion first-time-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ all_module_files=`find openfisca_country_template -type f ! -name "*.DS_Store"`
echo -e "${PURPLE}* ${PURPLE}Replace default country_template references\033[0m"
# Use intermediate backup files (`-i`) with a weird syntax due to lack of portable 'no backup' option. See https://stackoverflow.com/q/5694228/594053.
sed -i.template "s|openfisca-country_template|openfisca-$NO_SPACES_JURISDICTION_LABEL|g" README.md Makefile pyproject.toml CONTRIBUTING.md
sed -i.template "s|country_template|$SNAKE_CASE_JURISDICTION|g" README.md pyproject.toml .flake8 Makefile MANIFEST.in $all_module_files
sed -i.template "s|country_template|$SNAKE_CASE_JURISDICTION|g" README.md pyproject.toml Makefile MANIFEST.in $all_module_files
sed -i.template "s|Country-Template|$JURISDICTION_NAME|g" README.md pyproject.toml .github/PULL_REQUEST_TEMPLATE.md CONTRIBUTING.md

echo -e "${PURPLE}* ${PURPLE}Remove bootstrap instructions\033[0m"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = [ "setuptools>=61" ]

[project]
name = "openfisca-country_template"
version = "7.1.8"
version = "7.1.9"
description = "OpenFisca Rules as Code model for Country-Template."
readme = "README.md"
keywords = [ "benefit", "microsimulation", "rac", "rules-as-code", "tax" ]
Expand Down

0 comments on commit a8628c5

Please sign in to comment.