Skip to content

Commit

Permalink
Jm/bug py36 (#21)
Browse files Browse the repository at this point in the history
* Setup updates, notebook fixes

* Add PR local wheel build/install step

* Typo fix

Co-authored-by: John Myers <john@gretel.ai>
  • Loading branch information
johntmyers and John Myers committed May 26, 2020
1 parent 484e411 commit 5edeff8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/localwheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: gretel-synthetics wheel build

on: [pull_request]

jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build wheel
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Install wheel
run: pip install dist/gretel_synthetics-*.whl

2 changes: 2 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Install wheel
run: pip install dist/gretel_synthetics-*.whl
- name: Publish to Test PyPi
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Documentation Status](https://readthedocs.org/projects/gretel-synthetics/badge/?version=stable)](https://gretel-synthetics.readthedocs.io/en/stable/?badge=stable)


This code has been developed and tested on Python 3.7. Python 3.8 is currently unsupported. While not developed on Python 3.6, this code will run in Google Colab, which currently uses 3.6. If you wish to use Python 3.6, out side of Google Colab, you may install with the `3.6` extras: `pip install gretel-synthetics[tf,3.6]`, for example.
This code has been developed and tested on Python 3.7. Python 3.8 is currently unsupported. While not developed on Python 3.6, this code will run in Google Colab, which currently uses 3.6. If you wish to use Python 3.6, out side of Google Colab, you may install with the `py36` extras: `pip install gretel-synthetics[tf,py36]`, for example.

This package allows developers to quickly get immersed with synthetic data generation through the use of neural networks. The more complex pieces of working with libraries like Tensorflow and differential privacy are bundled into friendly Python classes and functions.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1
0.9.2
4 changes: 2 additions & 2 deletions examples/research/heart_disease_uci.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@
" # if generated record passes validation, save it\n",
" if status:\n",
" print(f\"({synth_cnt}/{records_to_generate} : {status})\") \n",
" print(f\"{line.text}\")\n",
" data = line.values_as_list()\n",
" print(f\"{record.text}\")\n",
" data = record.values_as_list()\n",
" synth_df = synth_df.append({k:v for k,v in zip(df.columns, data)}, ignore_index=True)\n",
" "
]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
],
extras_require={
'tf': ['tensorflow==2.1.0'],
'3.6': ['dataclasses==0.7']
'py36': ['dataclasses==0.7']
}
)

0 comments on commit 5edeff8

Please sign in to comment.