-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate with Conda and a publish through CI (#249)
* Create metadata file to integrate with conda * Add github action for publishing to conda * Attempt to install Conda manually * Install conda-build with conda * Install anaconda manually again as miniconda is not enough * Install anaconda client as part of workflow * Test if conda activate makes anaconda available * Run conda init as well * Trying some changes out to fix upload action * Add anaconda to PATH * Testing anaconda bin output * Enable auto activation * Remove ls * Test with setup-miniconda again * Fix syntax erorrs in workflow * Use bash as workflow shell * Confirm fix by using shell * Only push to conda on tag releases * Explicitly add optional dependencies for conda compatibility * Add documentation for working with conda * Small grammar fix * docs nits, merge pypi/conda publish workflows Co-authored-by: Eduardo Armendariz <[email protected]> Co-authored-by: Thomas La Piana <[email protected]>
- Loading branch information
1 parent
629b102
commit a9f7d2e
Showing
13 changed files
with
123 additions
and
95 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,42 @@ | ||
name: Publish fidesctl | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
upload_to_pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Twine | ||
run: pip install twine | ||
|
||
- name: Twine Upload | ||
run: | | ||
cd fidesctl/ | ||
python setup.py sdist | ||
twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
|
||
upload_to_conda: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Anaconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-activate-base: true | ||
activate-environment: "" | ||
- name: Conda Upload | ||
shell: bash -l {0} | ||
run: | | ||
conda install conda-build | ||
conda install anaconda-client | ||
conda install conda-verify | ||
conda build --output-folder ./conda-out/ ./fidesctl/conda/ -c plotly -c conda-forge | ||
anaconda -t "${{ secrets.CONDA_TOKEN }}" upload -u ethyca ./conda-out/noarch/fidesctl*.bz2 |
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
# Meet Fidesctl: Privacy Policies as Code | ||
|
||
[![Latest Version][pypi-image]][pypi-url] | ||
[![Latest Release Version][release-image]][release-url] | ||
[![License][license-image]][license-url] | ||
[![Code style: black][black-image]][black-url] | ||
[![Checked with mypy][mypy-image]][mypy-url] | ||
|
@@ -223,12 +223,12 @@ Read about the [Fides community](https://ethyca.github.io/fides/community/hints_ | |
## :balance_scale: License | ||
The Fides ecosystem of tools ([Fidesops](https://github.com/ethyca/fidesops) and [Fidesctl](https://github.com/ethyca/fides)) are licensed under the [Apache Software License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0). | ||
Fides tools are built on [Fideslang](https://github.com/ethyca/privacy-taxonomy), the Fides language specification, which is licensed under [CC by 4](https://github.com/ethyca/privacy-taxonomy/blob/main/LICENSE). | ||
Fides tools are built on [Fideslang](https://github.com/ethyca/privacy-taxonomy), the Fides language specification, which is licensed under [CC by 4](https://github.com/ethyca/privacy-taxonomy/blob/main/LICENSE). | ||
Fides is created and sponsored by Ethyca: a developer tools company building the trust infrastructure of the internet. If you have questions or need assistance getting started, let us know at [email protected]! | ||
[pypi-image]: https://img.shields.io/pypi/v/fidesctl.svg | ||
[pypi-url]: https://pypi.python.org/pypi/fidesctl/ | ||
[release-image]: https://img.shields.io/github/release/ethyca/fides.svg | ||
[release-url]: https://github.com/ethyca/fides/releases | ||
[license-image]: https://img.shields.io/:license-Apache%202-blue.svg | ||
[license-url]: https://www.apache.org/licenses/LICENSE-2.0.txt | ||
[black-image]: https://img.shields.io/badge/code%20style-black-000000.svg | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Installation from Conda | ||
|
||
This page describes installations using the `fidesctl` package [published on Conda](https://anaconda.org/ethyca/fidesctl). | ||
|
||
## Installation | ||
|
||
To install fidesctl, first create an environment with the fidesctl package and necessary channels: | ||
|
||
```bash | ||
conda create --name fidesctl-environment fidesctl \ | ||
--channel ethyca \ | ||
--channel plotly \ | ||
--channel conda-forge | ||
``` | ||
|
||
Then activate your environment to begin using the `fidesctl` cli: | ||
`conda activate fidesctl-environment` |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% set data = load_setup_py_data(setup_file='../setup.py', from_recipe_dir=True) %} | ||
|
||
package: | ||
name: "{{ data.get('name')|lower }}" | ||
version: "{{ data.get('version') }}" | ||
|
||
source: | ||
path: "../.." | ||
|
||
build: | ||
number: 0 | ||
entry_points: | ||
- fidesctl=fidesctl.cli:cli | ||
script: | | ||
cd fidesctl | ||
{{ PYTHON }} -m pip install . -vv | ||
noarch: python | ||
|
||
requirements: | ||
host: | ||
- pip | ||
- python >=3.7, <4 | ||
run: | ||
- python >=3.7, <4 | ||
{% for package in data.get('install_requires') %} | ||
- {{ package }} | ||
{% endfor %} | ||
{% for package in data.get('extras_require')['all'] %} | ||
- {{ package }} | ||
{% endfor %} | ||
|
||
test: | ||
imports: | ||
- fidesctl | ||
commands: | ||
- fidesctl --help | ||
|
||
about: | ||
home: "{{ data.get('url') }}" | ||
license: "{{ data.get('license') }}" | ||
license_family: APACHE | ||
license_file: LICENSE | ||
summary: "{{ data.get('description') }}" | ||
description: "{{ data.get('long_description') }}" | ||
doc_url: "https://ethyca.github.io/fides/" |
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