forked from ethyca/fidesops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish fidesops to PyPI (ethyca#491)
* 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
- Loading branch information
1 parent
4403761
commit 636ddab
Showing
61 changed files
with
2,787 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/fidesops/_version.py export-subst |
2 changes: 1 addition & 1 deletion
2
.github/workflows/publish.yml → .github/workflows/publish_to_dockerhub.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish | ||
name: Publish to DockerHub | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
TWINE_USERNAME: __token__ | ||
|
||
jobs: | ||
publish_to_pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Twine | ||
run: pip install twine | ||
|
||
- name: Create Source Distribution | ||
run: python setup.py sdist | ||
|
||
- name: Test Twine Upload | ||
run: twine upload --repository testpypi dist/* | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} | ||
|
||
- name: Production Twine Upload | ||
run: twine upload dist/* | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ jobs: | |
|
||
- name: Integration Tests | ||
run: make pytest-integration | ||
timeout-minutes: 20 | ||
timeout-minutes: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include LICENSE | ||
include README.md | ||
include requirements.txt | ||
include dev-requirements.txt | ||
include versioneer.py | ||
include src/fidesops/alembic.ini | ||
include src/fidesops/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
alembic==1.6.5 | ||
APScheduler==3.8.0 | ||
bcrypt~=3.2.0 | ||
boto3~=1.18.14 | ||
click==7.1.2 | ||
cryptography~=3.4.8 | ||
dask==2021.10.0 | ||
email-validator | ||
emails | ||
fastapi-caching[redis] | ||
fastapi-pagination[sqlalchemy]~= 0.8.3 | ||
fastapi[all]==0.68.1 | ||
sqlalchemy==1.4.14 | ||
alembic==1.6.5 | ||
fidesctl==0.9.8.4 | ||
python-jose[cryptography]==3.3.0 | ||
multidimensional_urlencode==0.0.4 | ||
pandas==1.3.3 | ||
passlib[bcrypt]==1.7.2 | ||
psycopg2-binary==2.9.1 | ||
email-validator | ||
emails | ||
fastapi-caching[redis] | ||
sqlalchemy-stubs==0.4 | ||
SQLAlchemy-Utils==0.37.8 | ||
redis==3.5.3 | ||
pydantic~=1.8.2 | ||
starlette~=0.14.2 | ||
python-dotenv~=0.19.0 | ||
bcrypt~=3.2.0 | ||
Unidecode==1.2.0 | ||
uvicorn~=0.13.4 | ||
pydash==5.0.2 | ||
boto3~=1.18.14 | ||
cryptography~=3.4.8 | ||
fastapi-pagination[sqlalchemy]~= 0.8.3 | ||
dask==2021.10.0 | ||
requests~=2.25.0 | ||
pyjwt | ||
pymongo==3.12.0 | ||
pandas==1.3.3 | ||
click==7.1.2 | ||
PyMySQL==1.0.2 | ||
sqlalchemy-redshift==0.8.8 | ||
python-dotenv~=0.19.0 | ||
python-jose[cryptography]==3.3.0 | ||
redis==3.5.3 | ||
requests~=2.25.0 | ||
snowflake-sqlalchemy==1.3.2 | ||
sqlalchemy-bigquery==1.3.0 | ||
multidimensional_urlencode==0.0.4 | ||
pyjwt | ||
sqlalchemy-redshift==0.8.8 | ||
sqlalchemy-stubs==0.4 | ||
SQLAlchemy-Utils==0.37.8 | ||
sqlalchemy==1.4.14 | ||
starlette~=0.14.2 | ||
Unidecode==1.2.0 | ||
uvicorn~=0.13.4 | ||
versioneer==0.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[versioneer] | ||
VCS = git | ||
style = pep440 | ||
versionfile_source = src/fidesops/_version.py | ||
versionfile_build = fidesops/_version.py | ||
tag_prefix = | ||
parentdir_prefix = | ||
|
||
[mypy] | ||
[mypy-src.fidesops._version] | ||
ignore_errors = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import pathlib | ||
from setuptools import setup, find_packages | ||
|
||
from setuptools import find_packages, setup | ||
|
||
import versioneer | ||
|
||
here = pathlib.Path(__file__).parent.resolve() | ||
long_description = open("README.md").read() | ||
|
@@ -10,6 +13,8 @@ | |
|
||
setup( | ||
name="fidesops", | ||
version=versioneer.get_version(), | ||
cmdclass=versioneer.get_cmdclass(), | ||
description="Automation engine for privacy requests", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
|
@@ -18,6 +23,7 @@ | |
python_requires=">=3.7, <4", | ||
package_dir={"": "src"}, | ||
packages=find_packages(where="src"), | ||
package_data={"fidesops": ["alembic.ini"]}, | ||
include_package_data=True, | ||
author="Ethyca, Inc.", | ||
author_email="[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from ._version import get_versions | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions |
Oops, something went wrong.