Skip to content

Commit

Permalink
Merge pull request #4 from PolicyEngine/chore/continue_migrate
Browse files Browse the repository at this point in the history
Update links to re-enable changelog creation
  • Loading branch information
anth-volk authored Dec 18, 2023
2 parents 68fe528 + 792b201 commit 6bfa2dc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
project_id: policyengine-api
project_id: policyengine-api-light
service_account_key: ${{ secrets.GCP_SA_KEY }}
export_default_credentials: true
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
versioning:
name: Update versioning
if: |
(github.repository == 'PolicyEngine/policyengine-api')
(github.repository == 'PolicyEngine/policyengine-api-light')
&& !(github.event.head_commit.message == 'Update PolicyEngine API')
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
name: Deploy API
runs-on: ubuntu-latest
if: |
(github.repository == 'PolicyEngine/policyengine-api')
(github.repository == 'PolicyEngine/policyengine-api-light')
&& (github.event.head_commit.message == 'Update PolicyEngine API')
steps:
- name: Checkout repo
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ deploy:
python gcp/export.py
gcloud config set app/cloud_build_timeout 1800
cp gcp/policyengine_api_light/* .
y | gcloud app deploy --service-account=github-deployment@policyengine-api.iam.gserviceaccount.com
y | gcloud app deploy --service-account=github-deployment@policyengine-api-light.iam.gserviceaccount.com
rm app.yaml
rm Dockerfile
rm .gac.json
rm .dbpw

changelog:
build-changelog changelog.yaml --output changelog.yaml --update-last-date --start-from 0.1.0 --append-file changelog_entry.yaml
build-changelog changelog.yaml --org PolicyEngine --repo policyengine-api --output CHANGELOG.md --template .github/changelog_template.md
build-changelog changelog.yaml --org PolicyEngine --repo policyengine-api-light --output CHANGELOG.md --template .github/changelog_template.md
bump-version changelog.yaml setup.py policyengine_api_light/constants.py
rm changelog_entry.yaml || true
touch changelog_entry.yaml
2 changes: 1 addition & 1 deletion changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
added:
- Initial API.
date: 2023-12-14 00:00:00
version: 0.1.0
version: 0.1.0
5 changes: 2 additions & 3 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
- bump: minor
- bump: patch
changes:
changed:
- Migrated existing API into API-light folder
- Updated paths to match API name
- Change links to re-enable changelog building
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from policyengine_api_light.constants import __version__

setup(
name="policyengine-api",
name="policyengine-api-light",
version=__version__,
author="PolicyEngine",
author_email="[email protected]",
Expand Down Expand Up @@ -40,7 +40,7 @@
# script policyengine-api-setup -> policyengine_api_light.setup_data:setup_data
entry_points={
"console_scripts": [
"policyengine-api-setup=policyengine_api_light.setup_data:setup_data",
"policyengine-api-light-setup=policyengine_api_light.setup_data:setup_data",
],
},
)

0 comments on commit 6bfa2dc

Please sign in to comment.