Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatologist committed Mar 17, 2022
2 parents 7a4d073 + d565999 commit eaa3c28
Show file tree
Hide file tree
Showing 14 changed files with 58 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6
ARG VARIANT=3.7
ARG VARIANT=3.8
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}

# [Option] Install Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout Latest Commit
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate and puplish gh-pages
name: Generate and publish gh-pages
# https://docs.github.com/en/actions/guides/building-and-testing-python
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
on:
Expand All @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
Expand All @@ -23,7 +23,7 @@ jobs:
run: |
make -C docs/ html
- name: Deploy Docs 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/_build/html # The folder the action should deploy.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
python-version: [3.8]

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -30,4 +30,4 @@ jobs:
pip install -r dev-requirements.txt -r requirements.txt
- name: Test with pytest
run: |
pytest
pytest
4 changes: 2 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
python-version: [3.8]

steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## [Unreleased](https://github.com/dermatologist/fhiry/tree/HEAD)

[Full Changelog](https://github.com/dermatologist/fhiry/compare/1.0.0...HEAD)

**Closed issues:**

- Import directly \(no need for conditional\) when `python_requires = >= 3.8` [\#10](https://github.com/dermatologist/fhiry/issues/10)
- ", [\#9](https://github.com/dermatologist/fhiry/issues/9)

## [1.0.0](https://github.com/dermatologist/fhiry/tree/1.0.0) (2021-09-17)

[Full Changelog](https://github.com/dermatologist/fhiry/compare/0.5.0...1.0.0)

**Merged pull requests:**

- Feature/pyscaffold-1 [\#8](https://github.com/dermatologist/fhiry/pull/8) ([dermatologist](https://github.com/dermatologist))
- Bump pytest from 6.2.4 to 6.2.5 [\#7](https://github.com/dermatologist/fhiry/pull/7) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump pytest from 5.4.3 to 6.2.4 [\#6](https://github.com/dermatologist/fhiry/pull/6) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump pandas from 1.1.4 to 1.1.5 [\#5](https://github.com/dermatologist/fhiry/pull/5) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump autopep8 from 1.5.4 to 1.5.7 [\#4](https://github.com/dermatologist/fhiry/pull/4) ([dependabot[bot]](https://github.com/apps/dependabot))
- Bump abatilo/actions-poetry from 2.0.0 to 2.1.2 [\#3](https://github.com/dermatologist/fhiry/pull/3) ([dependabot[bot]](https://github.com/apps/dependabot))

## [0.5.0](https://github.com/dermatologist/fhiry/tree/0.5.0) (2020-12-26)

[Full Changelog](https://github.com/dermatologist/fhiry/compare/0.3.0...0.5.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource.gender
...
```

### [Modules](https://dermatologist.github.io/fhiry/build/html/modules.html)
### [Documentation](https://dermatologist.github.io/fhiry/)
## Contributors

* [Bell Eapen](https://nuchange.ca) | [![Twitter Follow](https://img.shields.io/twitter/follow/beapen?style=social)](https://twitter.com/beapen)
Expand Down
25 changes: 13 additions & 12 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ attrs==21.2.0
# via pytest
babel==2.9.1
# via sphinx
backports.entry-points-selectable==1.1.0
backports-entry-points-selectable==1.1.0
# via virtualenv
certifi==2021.5.30
# via requests
charset-normalizer==2.0.5
# via requests
commonmark==0.9.1
# via recommonmark
coverage==5.5
coverage[toml]==5.5
# via pytest-cov
distlib==0.3.2
# via virtualenv
Expand Down Expand Up @@ -60,21 +60,21 @@ pygments==2.10.0
# via sphinx
pyparsing==2.4.7
# via packaging
pytest==6.2.5
pytest==7.1.0
# via
# -r dev-requirements.in
# pytest-cov
pytest-cov==2.12.1
pytest-cov==3.0.0
# via -r dev-requirements.in
pytz==2021.1
pytz==2021.3
# via
# -c requirements.txt
# babel
recommonmark==0.7.1
# via -r dev-requirements.in
requests==2.26.0
# via sphinx
setuptools-scm==6.3.2
setuptools-scm==6.4.2
# via -r dev-requirements.in
six==1.16.0
# via
Expand All @@ -83,7 +83,7 @@ six==1.16.0
# virtualenv
snowballstemmer==2.1.0
# via sphinx
sphinx==4.2.0
sphinx==4.4.0
# via
# -r dev-requirements.in
# recommonmark
Expand All @@ -101,18 +101,19 @@ sphinxcontrib-serializinghtml==1.1.5
# via sphinx
toml==0.10.2
# via
# pytest
# pytest-cov
# coverage
# tox
tomli==1.2.1
# via setuptools-scm
tox==3.24.4
# via
# pytest
# setuptools-scm
tox==3.24.5
# via -r dev-requirements.in
urllib3==1.26.6
# via requests
virtualenv==20.8.0
# via tox
wheel==0.37.0
wheel==0.37.1
# via -r dev-requirements.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
2 changes: 1 addition & 1 deletion notes/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
pandas = "1.1.5"


Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#
# pip-compile
#
numpy==1.21.2
numpy==1.22.3
# via pandas
pandas==1.3.3
pandas==1.4.1
# via fhiry (setup.py)
python-dateutil==2.8.2
# via pandas
pytz==2021.1
pytz==2021.3
# via pandas
six==1.16.0
# via python-dateutil
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers =
Development Status :: 4 - Beta
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Scientific/Engineering :: Information Analysis


Expand Down
3 changes: 2 additions & 1 deletion src/fhiry/fhiry.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def read_bundle_from_file(self, filename):
return pd.json_normalize(json_in['entry'])

def delete_unwanted_cols(self):
del self._df['resource.text.div']
if 'resource.text.div' in self._df.columns:
del self._df['resource.text.div']

def process_df(self):
"""Read a single JSON resource or a directory full of JSON resources
Expand Down
2 changes: 1 addition & 1 deletion src/fhiry/parallel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.fhiry import Fhiry, Fhirndjson
from . import Fhiry, Fhirndjson
import os
import multiprocessing as mp
import pandas as pd
Expand Down

0 comments on commit eaa3c28

Please sign in to comment.