Merge pull request #378 from pylast/rm-3.6

This commit is contained in:
Hugo van Kemenade 2022-01-11 15:35:19 +02:00 committed by GitHub
commit 2469a6ea47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 23 deletions

View file

@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["pypy-3.8", "3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["pypy-3.8", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-20.04]
include:
# Include new variables for Codecov

View file

@ -3,22 +3,19 @@ repos:
rev: v2.31.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: ["--target-version", "py36"]
# override until resolved: https://github.com/psf/black/issues/402
files: \.pyi?$
types: []
args: [--target-version=py37]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
hooks:
- id: blacken-docs
args: ["--target-version", "py36"]
args: [--target-version=py37]
additional_dependencies: [black==21.11b1]
- repo: https://github.com/PyCQA/isort

View file

@ -1,5 +1,4 @@
pyLast
======
# pyLast
[![PyPI version](https://img.shields.io/pypi/v/pylast.svg)](https://pypi.org/project/pylast/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/pylast.svg)](https://pypi.org/project/pylast/)
@ -14,8 +13,7 @@ such as [Libre.fm](https://libre.fm/).
Use the pydoc utility for help on usage or see [tests/](tests/) for examples.
Installation
------------
## Installation
Install via pip:
@ -32,11 +30,12 @@ python3 -m pip install -U git+https://github.com/pylast/pylast
Or from requirements.txt:
```txt
-e git://github.com/pylast/pylast.git#egg=pylast
-e https://github.com/pylast/pylast.git#egg=pylast
```
Note:
* pyLast 5.0+ supports Python 3.7-3.10.
* pyLast 4.3+ supports Python 3.6-3.10.
* pyLast 4.0 - 4.2 supports Python 3.6-3.9.
* pyLast 3.2 - 3.3 supports Python 3.5-3.8.
@ -48,8 +47,7 @@ Note:
* pyLast 0.5 supports Python 2, 3.
* pyLast < 0.5 supports Python 2.
Features
--------
## Features
* Simple public interface.
* Access to all the data exposed by the Last.fm web services.
@ -60,8 +58,7 @@ Features
* Support for other API-compatible networks like Libre.fm.
Getting started
---------------
## Getting started
Here's some simple code example to get you started. In order to create any object from
pyLast, you need a `Network` object which represents a social music network that is
@ -100,8 +97,7 @@ More examples in
<a href="https://github.com/hugovk/lastfm-tools">hugovk/lastfm-tools</a> and
[tests/](https://github.com/pylast/pylast/tree/main/tests).
Testing
-------
## Testing
The [tests/](https://github.com/pylast/pylast/tree/main/tests) directory contains
integration and unit tests with Last.fm, and plenty of code examples.
@ -140,8 +136,7 @@ coverage html # for HTML report
open htmlcov/index.html
```
Logging
-------
## Logging
To enable from your own code:

View file

@ -14,7 +14,6 @@ classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
@ -34,7 +33,7 @@ keywords =
packages = find:
install_requires =
importlib-metadata;python_version < '3.8'
python_requires = >=3.6
python_requires = >=3.7
package_dir = =src
setup_requires =
setuptools-scm

View file

@ -1,7 +1,7 @@
[tox]
envlist =
lint
py{py3, 310, 39, 38, 37, 36}
py{py3, 310, 39, 38, 37}
[testenv]
passenv =