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

Fix fides --version showing dirty in releases #962

Merged
merged 20 commits into from
Aug 8, 2022
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
2 changes: 0 additions & 2 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Code Checks

on:
pull_request:
branches:
- main
paths-ignore:
- "**.md"

Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/frontend_pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Frontend PR Checks

on:
pull_request:
branches:
- main
paths:
- "clients/**"
- ".github/workflows/frontend_pr_checks.yml"
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/publish_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ jobs:
- name: Install Twine and wheel
run: pip install twine wheel

- name: Build the package
run: python setup.py sdist bdist_wheel
# The git reset is required here because the build modifies
# egg-info and the wheel becomes a dirty version
- name: Build the sdist
run: |
python setup.py sdist
git reset --hard

- name: Build the wheel
run: python setup.py bdist_wheel

- name: Upload to test pypi
run: twine upload --repository testpypi dist/*
Expand All @@ -53,7 +60,6 @@ jobs:
if [[ ${{ github.event.ref }} =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo ::set-output name=match::true
fi

- name: Upload to pypi
if: steps.check-tag.outputs.match == 'true'
run: twine upload dist/*
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
docs/fides/docs/api/openapi.json
docs/fides/docs/schemas/config_schema.json
# frontend
ui-build/

## generic files to ignore
Expand All @@ -20,6 +19,8 @@ tmp/*

# docs
docs/fides/site/
docs/fides/docs/api/openapi.json
docs/fides/docs/schemas/config_schema.json

# python specific
*.pyc
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ The types of changes are:
### Fixed

* Deprecated config options will continue to be respected when set via environment variables [#965](https://github.com/ethyca/fides/pull/965)
* The git cache is rebuilt within the Docker container [#962](https://github.com/ethyca/fides/pull/962)
* The `wheel` pypi build no longer has a dirty version tag [#962](https://github.com/ethyca/fides/pull/962)

## [1.8.0](https://github.com/ethyca/fides/compare/1.7.1...1.8.0) - 2022-08-04

Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ RUN pip install -r optional-requirements.txt
COPY . /fides
WORKDIR /fides

# Reset the busted git cache
RUN git rm --cached -r .
RUN git reset --hard

# Immediately flush to stdout, globally
ENV PYTHONUNBUFFERED=TRUE

Expand All @@ -99,7 +103,7 @@ CMD ["fidesctl", "webserver"]
FROM builder as dev

# Install fidesctl as a symlink
RUN pip install -e ".[all,mssql]"
RUN pip install --no-deps -e ".[all,mssql]"

##################################
## Production Application Setup ##
Expand All @@ -112,4 +116,4 @@ COPY --from=frontend /fides/clients/admin-ui/out/ /fides/src/fidesctl/ui-build/s

# Install without a symlink
RUN python setup.py bdist_wheel
RUN pip install dist/fidesctl-*.whl
RUN pip install --no-deps dist/fidesctl-*.whl