Skip to content

Commit

Permalink
Installing h3 and ratelimit dependencies locally (#51)
Browse files Browse the repository at this point in the history
* Installing h3 and ratelimit dependencies locally

* Just include it in requirements.txt
  • Loading branch information
sindhu-ranga authored Feb 7, 2025
1 parent 06b1ede commit de6eb8e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 34 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build-and-deploy-release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,41 +24,13 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel build twine
- name: Build wheels for selected dependencies
run: |
pip wheel -r requirements-build.txt -w dist
- name: Build distribution
run: |
python -m build --sdist
python -m build --wheel
- name: Check distribution
run: twine check dist/*

- name: Set up .pypirc
run: |
cat <<EOF > ~/.pypirc
[distutils]
index-servers =
pypi
placekey
testpypi
[pypi]
username = __token__
password = ${{ secrets.PYPI_API_TOKEN }}
[placekey]
repository = https://upload.pypi.org/legacy/
username = __token__
password = ${{ secrets.PYPI_API_TOKEN }}
[testpypi]
repository = https://test.pypi.org/legacy/
username = __token__
password = ${{ secrets.TEST_PYPI_API_TOKEN }}
EOF

- name: Upload to TestPyPI
env:
Expand Down
2 changes: 1 addition & 1 deletion placekey/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.27'
__version__ = '0.0.28'
1 change: 0 additions & 1 deletion placekey/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import backoff
import requests
from backoff import on_exception, fibo
from ratelimit import limits, RateLimitException

from .__version__ import __version__
Expand Down
2 changes: 0 additions & 2 deletions requirements-build.txt

This file was deleted.

4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
--index-url https://pypi.python.org/simple/
-e .
-e .
h3>=3.6.1,<4
ratelimit
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_version():
long_description_content_type="text/markdown",
url="https://github.com/Placekey/placekey-py",
packages=setuptools.find_packages(),
install_requires=['h3>=3.6.1,<4', 'shapely', 'requests', 'ratelimit', 'backoff', 'boto3'],
install_requires=['shapely', 'requests', 'backoff', 'boto3'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand Down

0 comments on commit de6eb8e

Please sign in to comment.