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

Installing h3 and ratelimit dependencies locally #51

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
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
Loading