Skip to content

Commit eba51ef

Browse files
committed
commented out testpypi configurations
1 parent 949ea82 commit eba51ef

File tree

5 files changed

+62
-64
lines changed

5 files changed

+62
-64
lines changed

.github/workflows/testpypi.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
name: CD - Publish to TestPyPI
2-
3-
on:
4-
workflow_run:
5-
workflows: ["CI - Run Tox Tests"]
6-
types:
7-
- completed
8-
9-
jobs:
10-
build:
11-
name: Build distribution
12-
runs-on: ubuntu-latest
13-
14-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
15-
16-
strategy:
17-
matrix:
18-
python-version: ["3.10", "3.11", "3.12"]
19-
20-
steps:
21-
- uses: actions/checkout@v4
22-
- name: Set up Python
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.python-version }}
26-
- name: Install pypa/build
27-
run: python3 -m pip install build --user
28-
- name: Build a binary wheel and a source tarball
29-
run: python3 -m build
30-
- name: Upload the distribution packages
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: dist-${{ matrix.python-version }}
34-
path: dist
35-
36-
publish-to-testpypi:
37-
name: Publish Python distribution to TestPyPI
38-
needs: build
39-
runs-on: ubuntu-latest
40-
41-
environment:
42-
name: testpypi
43-
url: https://test.pypi.org/p/fakernaija
44-
45-
permissions:
46-
id-token: write # Required for OIDC authentication
47-
48-
steps:
49-
- name: Download the distribution packages
50-
uses: actions/download-artifact@v4
51-
with:
52-
pattern: dist-*
53-
merge-multiple: true
54-
path: dist
55-
- name: Publish distribution to TestPyPI
56-
uses: pypa/gh-action-pypi-publish@release/v1
57-
with:
58-
repository-url: https://test.pypi.org/legacy/
1+
# name: CD - Publish to TestPyPI
2+
3+
# on:
4+
# workflow_run:
5+
# workflows: ["CI - Run Tox Tests"]
6+
# types:
7+
# - completed
8+
9+
# jobs:
10+
# build:
11+
# name: Build distribution
12+
# runs-on: ubuntu-latest
13+
14+
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
15+
16+
# strategy:
17+
# matrix:
18+
# python-version: ["3.10", "3.11", "3.12"]
19+
20+
# steps:
21+
# - uses: actions/checkout@v4
22+
# - name: Set up Python
23+
# uses: actions/setup-python@v5
24+
# with:
25+
# python-version: ${{ matrix.python-version }}
26+
# - name: Install pypa/build
27+
# run: python3 -m pip install build --user
28+
# - name: Build a binary wheel and a source tarball
29+
# run: python3 -m build
30+
# - name: Upload the distribution packages
31+
# uses: actions/upload-artifact@v4
32+
# with:
33+
# name: dist-${{ matrix.python-version }}
34+
# path: dist
35+
36+
# publish-to-testpypi:
37+
# name: Publish Python distribution to TestPyPI
38+
# needs: build
39+
# runs-on: ubuntu-latest
40+
41+
# environment:
42+
# name: testpypi
43+
# url: https://test.pypi.org/p/fakernaija
44+
45+
# permissions:
46+
# id-token: write # Required for OIDC authentication
47+
48+
# steps:
49+
# - name: Download the distribution packages
50+
# uses: actions/download-artifact@v4
51+
# with:
52+
# pattern: dist-*
53+
# merge-multiple: true
54+
# path: dist
55+
# - name: Publish distribution to TestPyPI
56+
# uses: pypa/gh-action-pypi-publish@release/v1
57+
# with:
58+
# repository-url: https://test.pypi.org/legacy/

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
furo==2024.8.6
22
myst-parser==4.0.0
3-
Sphinx==8.0.2
3+
Sphinx==8.1.3
44
sphinx-copybutton==0.5.2
55
sphinx-notfound-page==1.0.4

fakernaija/data/schools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@
609609
"ownership": "State"
610610
},
611611
{
612-
"name": "JamaAtu College of Education",
612+
"name": "Jama'Atu College of Education",
613613
"acronym": "JACE",
614614
"state": "Kaduna",
615615
"type": "College",

fakernaija/mixins/marital_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def marital_status(self) -> str:
2626
2727
>>> marital_status = naija.marital_status()
2828
>>> print(f"Random marital status: {marital_status}")
29-
Random marital_status: Separated
29+
Random marital status: Separated
3030
3131
>>> for _ in range(3):
3232
... print(naija.marital_status())

fakernaija/mixins/state.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ def state_lga(self, state: str | None = None) -> str:
211211
state_lgas = self.state_provider.get_state_lgas(state)
212212
else:
213213
state_lgas = self.state_provider.get_lgas()
214-
state_lga = get_unique_value(state_lgas, self._used_state_lgas)
215-
self._used_state_lgas.add(state_lga)
216-
return state_lga
214+
return random.choice(state_lgas)
217215

218216
def state_postal_code(self, state: str | None = None) -> str:
219217
"""Get a random state postal code.

0 commit comments

Comments
 (0)