-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
There are no version number or constraint changes - only ordering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The large number of added files is due mostly to the new __init__.py
files that were previously missing, and the files added by versioneer
.
on: | ||
push: | ||
tags: | ||
- "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be a better trigger for this workflow based on the preferred release process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PSalant726 check fidesctl we do it in a smarter way for the docs -> https://github.com/ethyca/fides/blob/main/.github/workflows/publish_docs.yaml#L7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. @seanpreston does this now align with the current release process?
8e1740e
to
24264d4
Compare
24264d4
to
22a31f3
Compare
To automate version numbers
These errors are being surfaced due to the new `__init__.py` files.
22a31f3
to
84bd6b3
Compare
I highly highly strongly recommend adopting the |
in fidesctl we use multi-stage builds for our dockerfile. This means that when we run our tests we use a production image with This is definitely for another issue, but is a best practice that should be done in a follow-up to this one |
Hey @PSalant726 — thanks for being thorough, I worry that this PR is a little bloated as you seem to have changed a lot more than is required just to publish the project to PyPi? |
I can create another issue to address this.
the linter error fixes were required to get the tests passing once the new
Let me know if you prefer I do that. |
@@ -39,7 +46,7 @@ def get_strategy( | |||
Returns the strategy given the name and configuration. | |||
Raises NoSuchStrategyException if the strategy does not exist | |||
""" | |||
if strategy_name not in SupportedPaginationStrategies.__members__: | |||
if not SupportedPaginationStrategies.__contains__(strategy_name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the rationale for moving away from x in y
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous pattern was throwing a linter error because .__members__
is not a literal property of Enum
s (they don't implicitly inherit from dict
, nor should they). Inclusion checks in Enum
s need to be implemented as custom functions.
errors = do_setup() | ||
errors += scan_setup_py() | ||
if errors: | ||
sys.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does Versioneer need to be included like this vs. being a pip import itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
versioneer
was added as an import:
Line 36 in f9cf2f0
versioneer==0.19 |
This script is the result of installing it with versioneer install
. See https://github.com/python-versioneer/python-versioneer#theory-of-operation for more info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @PSalant726
* Add missing `__init__.py` files * Publish to PyPI on new tag creation * Alphabetize `requirements.txt` There are no version number or constraint changes - only ordering. * Add `versioneer` To automate version numbers * Fix a metric ton of linter errors These errors are being surfaced due to the new `__init__.py` files. * Publish to PyPI on published releases * Test that the `request_id` param actually filters * Update references to the `id` query param to `request_id` * Test publishes to PyPI * Publish to testpypi prior to production
* Add missing `__init__.py` files * Publish to PyPI on new tag creation * Alphabetize `requirements.txt` There are no version number or constraint changes - only ordering. * Add `versioneer` To automate version numbers * Fix a metric ton of linter errors These errors are being surfaced due to the new `__init__.py` files. * Publish to PyPI on published releases * Test that the `request_id` param actually filters * Update references to the `id` query param to `request_id` * Test publishes to PyPI * Publish to testpypi prior to production
Purpose
Fidesops is not currently published to PyPI. This makes it difficult to install and use fidesops as a package in other Python projects. As work proceeds on https://github.com/ethyca/fidesops-plus, installing fidesops via git becomes cumbersome, as the enterprise team would like to maintain feature parity by pinning the imported version of fidesops.
Changes
__init__.py
files (12 total)PYPI_TOKEN
secret needs to be configured on this repositoryrequirements.txt
versioneer
dependencyversioneer
setup.py
Checklist
Run Unsafe PR Checks
label has been applied, and checks have passed, if this PR touches any external servicesTicket
Fixes #481