Merge pull request #378 from pylast/rm-3.6
This commit is contained in:
commit
2469a6ea47
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
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]
|
os: [ubuntu-20.04]
|
||||||
include:
|
include:
|
||||||
# Include new variables for Codecov
|
# Include new variables for Codecov
|
||||||
|
|
|
@ -3,22 +3,19 @@ repos:
|
||||||
rev: v2.31.0
|
rev: v2.31.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: ["--py36-plus"]
|
args: [--py37-plus]
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 21.12b0
|
rev: 21.12b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: ["--target-version", "py36"]
|
args: [--target-version=py37]
|
||||||
# override until resolved: https://github.com/psf/black/issues/402
|
|
||||||
files: \.pyi?$
|
|
||||||
types: []
|
|
||||||
|
|
||||||
- repo: https://github.com/asottile/blacken-docs
|
- repo: https://github.com/asottile/blacken-docs
|
||||||
rev: v1.12.0
|
rev: v1.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: blacken-docs
|
- id: blacken-docs
|
||||||
args: ["--target-version", "py36"]
|
args: [--target-version=py37]
|
||||||
additional_dependencies: [black==21.11b1]
|
additional_dependencies: [black==21.11b1]
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
|
21
README.md
21
README.md
|
@ -1,5 +1,4 @@
|
||||||
pyLast
|
# pyLast
|
||||||
======
|
|
||||||
|
|
||||||
[](https://pypi.org/project/pylast/)
|
[](https://pypi.org/project/pylast/)
|
||||||
[](https://pypi.org/project/pylast/)
|
[](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.
|
Use the pydoc utility for help on usage or see [tests/](tests/) for examples.
|
||||||
|
|
||||||
Installation
|
## Installation
|
||||||
------------
|
|
||||||
|
|
||||||
Install via pip:
|
Install via pip:
|
||||||
|
|
||||||
|
@ -32,11 +30,12 @@ python3 -m pip install -U git+https://github.com/pylast/pylast
|
||||||
Or from requirements.txt:
|
Or from requirements.txt:
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
-e git://github.com/pylast/pylast.git#egg=pylast
|
-e https://github.com/pylast/pylast.git#egg=pylast
|
||||||
```
|
```
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
|
* pyLast 5.0+ supports Python 3.7-3.10.
|
||||||
* pyLast 4.3+ supports Python 3.6-3.10.
|
* pyLast 4.3+ supports Python 3.6-3.10.
|
||||||
* pyLast 4.0 - 4.2 supports Python 3.6-3.9.
|
* pyLast 4.0 - 4.2 supports Python 3.6-3.9.
|
||||||
* pyLast 3.2 - 3.3 supports Python 3.5-3.8.
|
* 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, 3.
|
||||||
* pyLast < 0.5 supports Python 2.
|
* pyLast < 0.5 supports Python 2.
|
||||||
|
|
||||||
Features
|
## Features
|
||||||
--------
|
|
||||||
|
|
||||||
* Simple public interface.
|
* Simple public interface.
|
||||||
* Access to all the data exposed by the Last.fm web services.
|
* 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.
|
* 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
|
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
|
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
|
<a href="https://github.com/hugovk/lastfm-tools">hugovk/lastfm-tools</a> and
|
||||||
[tests/](https://github.com/pylast/pylast/tree/main/tests).
|
[tests/](https://github.com/pylast/pylast/tree/main/tests).
|
||||||
|
|
||||||
Testing
|
## Testing
|
||||||
-------
|
|
||||||
|
|
||||||
The [tests/](https://github.com/pylast/pylast/tree/main/tests) directory contains
|
The [tests/](https://github.com/pylast/pylast/tree/main/tests) directory contains
|
||||||
integration and unit tests with Last.fm, and plenty of code examples.
|
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
|
open htmlcov/index.html
|
||||||
```
|
```
|
||||||
|
|
||||||
Logging
|
## Logging
|
||||||
-------
|
|
||||||
|
|
||||||
To enable from your own code:
|
To enable from your own code:
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ classifiers =
|
||||||
License :: OSI Approved :: Apache Software License
|
License :: OSI Approved :: Apache Software License
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3 :: Only
|
Programming Language :: Python :: 3 :: Only
|
||||||
Programming Language :: Python :: 3.6
|
|
||||||
Programming Language :: Python :: 3.7
|
Programming Language :: Python :: 3.7
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
Programming Language :: Python :: 3.9
|
Programming Language :: Python :: 3.9
|
||||||
|
@ -34,7 +33,7 @@ keywords =
|
||||||
packages = find:
|
packages = find:
|
||||||
install_requires =
|
install_requires =
|
||||||
importlib-metadata;python_version < '3.8'
|
importlib-metadata;python_version < '3.8'
|
||||||
python_requires = >=3.6
|
python_requires = >=3.7
|
||||||
package_dir = =src
|
package_dir = =src
|
||||||
setup_requires =
|
setup_requires =
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
|
|
Loading…
Reference in a new issue