mawaqit-py 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mawaqit_py-0.1.0/.github/FUNDING.yml +1 -0
- mawaqit_py-0.1.0/.github/workflows/publish.yml +46 -0
- mawaqit_py-0.1.0/.gitignore +11 -0
- mawaqit_py-0.1.0/LICENSE +661 -0
- mawaqit_py-0.1.0/PKG-INFO +125 -0
- mawaqit_py-0.1.0/README.md +93 -0
- mawaqit_py-0.1.0/examples/announcements.py +34 -0
- mawaqit_py-0.1.0/examples/nearest_mosques.py +34 -0
- mawaqit_py-0.1.0/examples/search_city.py +34 -0
- mawaqit_py-0.1.0/examples/year_calendar.py +54 -0
- mawaqit_py-0.1.0/pymawaqit/__init__.py +52 -0
- mawaqit_py-0.1.0/pymawaqit/_parse_helpers.py +129 -0
- mawaqit_py-0.1.0/pymawaqit/_transport.py +110 -0
- mawaqit_py-0.1.0/pymawaqit/constants.py +26 -0
- mawaqit_py-0.1.0/pymawaqit/exceptions.py +17 -0
- mawaqit_py-0.1.0/pymawaqit/headers.py +22 -0
- mawaqit_py-0.1.0/pymawaqit/mawaqit.py +194 -0
- mawaqit_py-0.1.0/pymawaqit/models.py +30 -0
- mawaqit_py-0.1.0/pymawaqit/mosque.py +189 -0
- mawaqit_py-0.1.0/pymawaqit/parsing.py +151 -0
- mawaqit_py-0.1.0/pymawaqit/py.typed +0 -0
- mawaqit_py-0.1.0/pyproject.toml +69 -0
- mawaqit_py-0.1.0/tests/__init__.py +0 -0
- mawaqit_py-0.1.0/tests/test_client.py +71 -0
- mawaqit_py-0.1.0/tests/test_live.py +42 -0
- mawaqit_py-0.1.0/tests/test_models.py +67 -0
- mawaqit_py-0.1.0/tests/test_parsing.py +96 -0
- mawaqit_py-0.1.0/uv.lock +190 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
github: 0xMH
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
paths: [pyproject.toml]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Install uv
|
|
17
|
+
uses: astral-sh/setup-uv@v4
|
|
18
|
+
|
|
19
|
+
- name: Get version
|
|
20
|
+
id: version
|
|
21
|
+
run: echo "version=$(grep '^version' pyproject.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
|
|
22
|
+
|
|
23
|
+
- name: Check if release exists
|
|
24
|
+
id: check
|
|
25
|
+
run: |
|
|
26
|
+
if gh release view "v${{ steps.version.outputs.version }}" &>/dev/null; then
|
|
27
|
+
echo "exists=true" >> $GITHUB_OUTPUT
|
|
28
|
+
else
|
|
29
|
+
echo "exists=false" >> $GITHUB_OUTPUT
|
|
30
|
+
fi
|
|
31
|
+
env:
|
|
32
|
+
GH_TOKEN: ${{ github.token }}
|
|
33
|
+
|
|
34
|
+
- name: Build
|
|
35
|
+
if: steps.check.outputs.exists == 'false'
|
|
36
|
+
run: uv build
|
|
37
|
+
|
|
38
|
+
- name: Publish to PyPI
|
|
39
|
+
if: steps.check.outputs.exists == 'false'
|
|
40
|
+
run: uv publish --token ${{ secrets.PYPI_TOKEN }}
|
|
41
|
+
|
|
42
|
+
- name: Create GitHub Release
|
|
43
|
+
if: steps.check.outputs.exists == 'false'
|
|
44
|
+
run: gh release create "v${{ steps.version.outputs.version }}" --title "v${{ steps.version.outputs.version }}" --generate-notes
|
|
45
|
+
env:
|
|
46
|
+
GH_TOKEN: ${{ github.token }}
|