Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8362333
ci: test building debs
RhinosF1 Jun 18, 2024
862925d
Update python.yml
RhinosF1 Jun 18, 2024
163d370
Update python.yml
RhinosF1 Jun 18, 2024
34727d4
Update python.yml
RhinosF1 Jun 18, 2024
ab0c9aa
Update python.yml
RhinosF1 Jun 18, 2024
01687a5
Update python.yml
RhinosF1 Jun 18, 2024
3e7c5dc
Update python.yml
RhinosF1 Jun 18, 2024
522dd20
Update python.yml
RhinosF1 Jun 18, 2024
0f1fc5d
Update setup.cfg
RhinosF1 Jun 18, 2024
a54de93
Update python.yml
RhinosF1 Jun 18, 2024
b61f1c8
Update python.yml
RhinosF1 Jun 18, 2024
c1d3097
Merge branch 'master' into RhinosF1-patch-1
RhinosF1 Jun 18, 2024
beb7fb6
Update python.yml
RhinosF1 Jun 18, 2024
ac9ffdf
Update python.yml
RhinosF1 Jun 18, 2024
636fba9
Update python.yml
RhinosF1 Jun 18, 2024
532ddd8
Update python.yml
RhinosF1 Jun 18, 2024
1d41304
Update setup.cfg
RhinosF1 Jun 18, 2024
bae4804
Update python.yml
RhinosF1 Jun 18, 2024
191ce74
Update python.yml
RhinosF1 Jun 18, 2024
159aa65
Update python.yml
RhinosF1 Jun 18, 2024
96a3e48
requirements: trust system packages will work
RhinosF1 Jun 18, 2024
5c28780
Update pythonchecks.txt
RhinosF1 Jun 18, 2024
15b734b
Update python.yml
RhinosF1 Jun 18, 2024
adc8c6d
Update python.yml
RhinosF1 Jun 18, 2024
eb63220
Update python.yml
RhinosF1 Jun 18, 2024
b4e4e05
Update python.yml
RhinosF1 Jun 18, 2024
f528ecb
Update requirements.txt
RhinosF1 Jun 18, 2024
7550b52
Update python.yml
RhinosF1 Jun 18, 2024
d16cf42
Update requirements.txt
RhinosF1 Jun 18, 2024
615928a
Update python.yml
RhinosF1 Jun 18, 2024
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
6 changes: 6 additions & 0 deletions .github/pythonchecks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ flake8-noqa==1.3.2
coverage==7.3.2
setuptools==68.2.2; python_version == '3.12'
build==1.2.1
requests==2.28.1; python_version == '3.11'
requests==2.31.0; python_version >= '3.12'
filelock==3.9.0; python_version == '3.11'
filelock==3.14.0; python_version >= '3.12'
internetarchive==3.3.0; python_version == '3.11'
internetarchive==3.7.0; python_version >= '3.12'
33 changes: 31 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,35 @@ jobs:
flake8 --exclude=*/__init__.py,dist/*,build/* --ignore=E501,W503,SFS301,T003,PT009
coverage run --branch -m pytest tests
mypy miraheze --ignore-missing-imports

deb:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install requirements
run: |
sudo apt install -y python3-requests python3-filelock python3-internetarchive
sudo apt install -y python3-apt apt-file dpkg-dev fakeroot build-essential devscripts debhelper
sudo apt-file update
pip install build wheel2deb
- name: Build wheel
run: |
pyproject-build --wheel --outdir dist .
cd dist
pip wheel langcodes==3.3.0 --no-deps
- name: wheel2deb
run: |
cd dist
wheel2deb
- name: show off
run: |
cd dist
ls -l output/*.deb
sudo dpkg -i output/*.deb
apt show python3-miraheze-pyutils

deploy:
needs: deb
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -55,9 +82,11 @@ jobs:
- name: Publish to PyPi
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.9.0



notify-irc:
needs: build
needs: deb
runs-on: ubuntu-latest
if: ${{ always() && github.repository_owner == 'miraheze' && ( github.ref == 'refs/heads/master' || github.event_name == 'pull_request' ) }}
steps:
Expand Down
9 changes: 3 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
requests==2.28.1; python_version == '3.11'
requests==2.31.0; python_version >= '3.12'
filelock==3.9.0; python_version == '3.11'
filelock==3.14.0; python_version >= '3.12'
requests
filelock
langcodes==3.3.0
internetarchive==3.3.0; python_version == '3.11'
internetarchive==3.7.0; python_version >= '3.12'
internetarchive
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Expand All @@ -20,7 +21,7 @@ classifiers =
Topic :: System :: Systems Administration
Topic :: Utilities
[options]
python_requires = >=3.11
python_requires = >=3.10
[options.entry_points]
console_scripts =
partial-reset-wiki = miraheze.salt.mwcli.partial_reset_wiki:main
Expand Down