Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PyPI Integrations for Release Upload #72

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
release:
name: release
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout commit and fetch tag history
uses: actions/checkout@v2
Expand All @@ -25,10 +27,10 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine

- name: Build and publish package
env:
TWINE_USERNAME: ${{ secrets.PYPI_AZAVEA_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_AZAVEA_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Build release package
run: python setup.py sdist bdist_wheel

- name: Upload release to TestPyPI
rajadain marked this conversation as resolved.
Show resolved Hide resolved
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
rajadain marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,7 @@ v6.2.0, 2024-01-22
previously would provide an internal Loc_name field in the response which
is no longer supplied, which broke the API. Making that field optional in
our code fixes this.

v6.2.1, 2024-04-15
------------------
* Update PyPI publishing integration
4 changes: 2 additions & 2 deletions omgeo/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_geocode_esri_wgs_senado_mx(self):
"""
candidates = self.g_esri_wgs.get_candidates(self.pq['senado_mx'])
self.assertOneCandidate(candidates)
search_text = 'Paseo de la Reforma 135'
search_text = 'Paseo de La Reforma 135'
self.assertEqual(search_text in candidates[0].match_addr, True,
'"%s" not found in match_addr. Got "%s".'
% (search_text, candidates[0].match_addr))
Expand All @@ -192,7 +192,7 @@ def test_geocode_structured_esri_wgs_senado_mx(self):
"""
candidates = self.g_esri_wgs.get_candidates(self.pq['senado_mx_struct'])
self.assertOneCandidate(candidates)
search_text = 'Paseo de la Reforma 135'
search_text = 'Paseo de La Reforma 135'
self.assertEqual(search_text in candidates[0].match_addr, True,
'"%s" not found in match_addr. Got "%s".'
% (search_text, candidates[0].match_addr))
Expand Down
Loading