Skip to content

Commit

Permalink
Version bump to 4.2.0, airtable release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Paige Gulley committed Nov 1, 2024
1 parent 1b95ff3 commit b86da17
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,23 @@ jobs:
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
- name: Install mc-manage package
run: |
pip install git+https://github.com/mediacloud/[email protected]
- name: Get tag name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Record successful release
run: |
python -m mc-manage.airtable-release-update --name api-client --version ${{ env.TAG_NAME }}
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
MEAG_BASE_ID: ${{ secrets.MEAG_BASE_ID }}


publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Version History
Version 4
---------

### v4.2.0
* added new endpoint to retrieve individual collections and sources

### v4.1.3
* fix indexed date parsing to ignore millies, which might be there or not

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
MediaCloud Python API Client
============================

🚧 Under construction 🚧

This is a python client for accessing the MediaCloud API v4. This allows you to perform cross-platform searches and
also browse our collection/source/feed directory.
Expand Down Expand Up @@ -96,5 +95,5 @@ If you are interested in adding code to this module, first clone [the GitHub rep
1. Run `pytest` to make sure all the test pass
2. Update the version number in `pyproject.toml`
3. Make a brief note in the `CHANGELOG.md` about what changes
4. Run `flit build` to create an install package
5. Run `flit publish` to upload it to PyPI
4. Commit changes, and tag comimt with version number
5. Push to main
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "mediacloud"
version = "4.1.4"
version = "4.2.0"
authors = [
{name = "Rahul Bhargava", email = "[email protected]"},
]
Expand Down

0 comments on commit b86da17

Please sign in to comment.