Skip to content

Commit e68e927

Browse files
committed
Prepare to release
1 parent f6d4ffc commit e68e927

File tree

4 files changed

+91
-4
lines changed

4 files changed

+91
-4
lines changed

.github/workflows/octocheese.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
4+
name: "GitHub Releases"
5+
on:
6+
schedule:
7+
- cron: 0 12 * * *
8+
9+
jobs:
10+
Run:
11+
permissions:
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: domdfcoding/octocheese@master
16+
with:
17+
pypi_name: "flake8-unused-fstrings"
18+
env:
19+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
if: startsWith(github.ref, 'refs/tags/') != true

.github/workflows/python_ci_linux.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,49 @@ jobs:
128128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129129
run: |
130130
coveralls --service=github
131+
132+
Deploy:
133+
needs: tests
134+
permissions:
135+
actions: write
136+
issues: write
137+
contents: read
138+
runs-on: "ubuntu-22.04"
139+
steps:
140+
- name: Checkout 🛎️
141+
uses: "actions/checkout@v4"
142+
if: startsWith(github.ref, 'refs/tags/')
143+
144+
- name: Setup Python 🐍
145+
uses: "actions/setup-python@v5"
146+
if: startsWith(github.ref, 'refs/tags/')
147+
with:
148+
python-version: 3.8
149+
150+
- name: Install dependencies 🔧
151+
if: startsWith(github.ref, 'refs/tags/')
152+
run: |
153+
python -m pip install --upgrade pip setuptools wheel
154+
python -m pip install --upgrade tox~=3.0
155+
156+
- name: Build distributions 📦
157+
if: startsWith(github.ref, 'refs/tags/')
158+
run: |
159+
tox -e build
160+
161+
162+
- name: Upload distribution to PyPI 🚀
163+
if: startsWith(github.ref, 'refs/tags/')
164+
uses: pypa/gh-action-pypi-publish@v1.13.0
165+
with:
166+
user: __token__
167+
password: ${{ secrets.PYPI_TOKEN }}
168+
skip-existing: true
169+
170+
- name: Close milestone 🚪
171+
if: startsWith(github.ref, 'refs/tags/')
172+
run: |
173+
python -m pip install --upgrade github3.py packaging
174+
python .github/milestones.py
175+
env:
176+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.rst

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ flake8-unused-fstrings
1717

1818
* - Tests
1919
- |actions_linux| |actions_windows| |actions_macos| |coveralls|
20+
* - PyPI
21+
- |pypi-version| |supported-versions| |supported-implementations| |wheel|
2022
* - Activity
21-
- |commits-latest| |commits-since| |maintained|
23+
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
2224
* - QA
2325
- |codefactor| |actions_flake8| |actions_mypy|
2426
* - Other
@@ -56,6 +58,22 @@ flake8-unused-fstrings
5658
:target: https://www.codefactor.io/repository/github/python-formate/flake8-unused-fstrings
5759
:alt: CodeFactor Grade
5860

61+
.. |pypi-version| image:: https://img.shields.io/pypi/v/flake8-unused-fstrings
62+
:target: https://pypi.org/project/flake8-unused-fstrings/
63+
:alt: PyPI - Package Version
64+
65+
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/flake8-unused-fstrings?logo=python&logoColor=white
66+
:target: https://pypi.org/project/flake8-unused-fstrings/
67+
:alt: PyPI - Supported Python Versions
68+
69+
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/flake8-unused-fstrings
70+
:target: https://pypi.org/project/flake8-unused-fstrings/
71+
:alt: PyPI - Supported Implementations
72+
73+
.. |wheel| image:: https://img.shields.io/pypi/wheel/flake8-unused-fstrings
74+
:target: https://pypi.org/project/flake8-unused-fstrings/
75+
:alt: PyPI - Wheel
76+
5977
.. |license| image:: https://img.shields.io/github/license/python-formate/flake8-unused-fstrings
6078
:target: https://github.com/python-formate/flake8-unused-fstrings/blob/master/LICENSE
6179
:alt: License
@@ -74,20 +92,24 @@ flake8-unused-fstrings
7492
.. |maintained| image:: https://img.shields.io/maintenance/yes/2026
7593
:alt: Maintenance
7694

95+
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/flake8-unused-fstrings
96+
:target: https://pypi.org/project/flake8-unused-fstrings/
97+
:alt: PyPI - Downloads
98+
7799
.. end shields
78100
79101
Installation
80102
--------------
81103

82104
.. start installation
83105
84-
``flake8-unused-fstrings`` can be installed from GitHub.
106+
``flake8-unused-fstrings`` can be installed from PyPI.
85107

86108
To install with ``pip``:
87109

88110
.. code-block:: bash
89111
90-
$ python -m pip install git+https://github.com/python-formate/flake8-unused-fstrings
112+
$ python -m pip install flake8-unused-fstrings
91113
92114
.. end installation
93115

repo_helper.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ short_desc: 'Flake8 plugin to catch f-strings with no fields. '
1212

1313
enable_conda: false
1414
enable_docs: false
15-
on_pypi: false
1615

1716
python_versions:
1817
- 3.8

0 commit comments

Comments
 (0)