Skip to content

Commit 7e94d5e

Browse files
committed
new pipeline
1 parent 144424a commit 7e94d5e

File tree

5 files changed

+77
-64
lines changed

5 files changed

+77
-64
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Test & Release & Deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python (${{ matrix.python-version }})
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install beets numpy pandas termtables termplotlib
25+
pip install pytest nose coverage mock six pyyaml requests
26+
- name: Test
27+
run: |
28+
pytest
29+
release:
30+
name: Release
31+
runs-on: ubuntu-latest
32+
needs: ["test"]
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Create Release
36+
uses: ncipollo/release-action@v1
37+
# ref.: https://github.com/ncipollo/release-action
38+
with:
39+
name: ${{ github.ref_name }}
40+
draft: false
41+
generateReleaseNotes: true
42+
deploy:
43+
name: Deploy
44+
runs-on: ubuntu-latest
45+
needs: ["release"]
46+
steps:
47+
- uses: actions/checkout@v4
48+
- name: Set up Python
49+
uses: actions/setup-python@v5
50+
with:
51+
python-version: "3.12"
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install build twine
56+
- name: Build and publish
57+
env:
58+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
59+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
60+
run: |
61+
python -m build
62+
twine check dist/*
63+
twine upload dist/*

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1+
[![Test & Release & Deploy](https://github.com/adamjakab/BeetsPluginDescribe/actions/workflows/test_release_deploy.yml/badge.svg)](https://github.com/adamjakab/BeetsPluginDescribe/actions/workflows/test_release_deploy.yml)
12
[![Coverage Status](https://coveralls.io/repos/github/adamjakab/BeetsPluginDescribe/badge.svg?branch=master)](https://coveralls.io/github/adamjakab/BeetsPluginDescribe?branch=master)
23
[![PyPi](https://img.shields.io/pypi/v/beets-describe.svg)](https://pypi.org/project/beets-describe/)
34
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/beets-describe.svg)](https://pypi.org/project/beets-describe/)
45
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.txt)
56

6-
77
# Describe (Beets Plugin)
88

9-
The *beets-describe* plugin attempts to give you the full picture on a single attribute of your library item.
9+
The _beets-describe_ plugin attempts to give you the full picture on a single attribute of your library item.
1010

1111
**NOTE: Under heavy development but works!**
1212

13-
1413
## Installation:
1514

1615
```shell script
1716
$ pip install beets-describe
1817
```
1918

2019
and activate the plugin the usual way
20+
2121
```yaml
2222
plugins:
23-
- describe
23+
- describe
2424
```
2525
2626
## Usage:
@@ -78,7 +78,6 @@ Distribution(bins=10) histogram
7878
173.1 - 185.0 [ 24] ███▊
7979
```
8080

81-
8281
`beet describe genre`
8382

8483
```text
@@ -167,19 +166,19 @@ Speed Metal [ 1] ▎
167166
Gypsy Jazz [ 1] ▎
168167
```
169168

170-
171169
## Configuration
172-
There are no configuration options for this plugin.
173170

171+
There are no configuration options for this plugin.
174172

175173
## Issues
174+
176175
- If something is not working as expected please use the Issue tracker.
177176
- If the documentation is not clear please use the Issue tracker.
178177
- If you have a feature request please use the Issue tracker.
179178
- In any other situation please use the Issue tracker.
180179

181-
182180
## Other plugins by the same author
181+
183182
- [beets-goingrunning](https://github.com/adamjakab/BeetsPluginGoingRunning)
184183
- [beets-xtractor](https://github.com/adamjakab/BeetsPluginXtractor)
185184
- [beets-yearfixer](https://github.com/adamjakab/BeetsPluginYearFixer)
@@ -188,6 +187,6 @@ There are no configuration options for this plugin.
188187
- [beets-bpmanalyser](https://github.com/adamjakab/BeetsPluginBpmAnalyser)
189188
- [beets-template](https://github.com/adamjakab/BeetsPluginTemplate)
190189

191-
192190
## Final Remarks
191+
193192
Enjoy!

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
test_suite='test',
3737
packages=['beetsplug.describe'],
3838

39-
python_requires='>=3.6',
39+
python_requires='>=3.8',
4040

4141
install_requires=[
4242
'beets>=1.4.9',
@@ -48,7 +48,7 @@
4848

4949
tests_require=[
5050
'pytest', 'nose', 'coverage',
51-
'mock', 'six', 'yaml',
51+
'mock', 'six', 'pyyaml',
5252
],
5353

5454
# Extras needed during testing
@@ -61,8 +61,10 @@
6161
'License :: OSI Approved :: MIT License',
6262
'Environment :: Console',
6363
'Programming Language :: Python :: 3',
64-
'Programming Language :: Python :: 3.6',
65-
'Programming Language :: Python :: 3.7',
6664
'Programming Language :: Python :: 3.8',
65+
'Programming Language :: Python :: 3.9',
66+
'Programming Language :: Python :: 3.10',
67+
'Programming Language :: Python :: 3.11',
68+
'Programming Language :: Python :: 3.12',
6769
],
6870
)

tox.ini

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)