Skip to content

Commit

Permalink
add unique oa filters to works
Browse files Browse the repository at this point in the history
add unique oa filters to works
  • Loading branch information
smierz authored Jun 7, 2022
2 parents 53fa77e + 3f3fe88 commit 50372b3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: upload Python Package to PyPI on release

on:
release:
types: [published]

jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Build distributions
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 3 additions & 1 deletion diophila/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ class Works(_Endpoint):
"from_publication_date",
"from_updated_date",
"has_doi",
"has_oa_accepted_or_published_version",
"has_oa_submitted_version",
"host_venue.id",
"host_venue.issn",
"host_venue.publisher",
Expand All @@ -322,9 +324,9 @@ class Works(_Endpoint):
"is_retracted",
"journal.id",
"oa_status",
"openalex_id",
"open_access.is_oa",
"open_access.oa_status",
"openalex_id",
"publication_date",
"publication_year",
"raw_affiliation_string.search",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name="diophila",
packages=["diophila"],
version="0.2.0",
version="0.3.0",
author="Sandra Mierz",
description="Python API Wrapper for OpenAlex",
long_description=long_description,
Expand Down

0 comments on commit 50372b3

Please sign in to comment.