mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
Updated documentation (#826)
* updated documentation * updated changelog
This commit is contained in:
parent
ca73420248
commit
eab3c37b89
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
* Changed URI handling in `client.Spotify._get_id()` to remove qureies if provided by error.
|
* Changed URI handling in `client.Spotify._get_id()` to remove qureies if provided by error.
|
||||||
* Added a new parameter to `RedisCacheHandler` to allow custom keys (instead of the default `token_info` key)
|
* Added a new parameter to `RedisCacheHandler` to allow custom keys (instead of the default `token_info` key)
|
||||||
* Simplify check for existing token in `RedisCacheHandler`
|
* Simplify check for existing token in `RedisCacheHandler`
|
||||||
|
* Expanded contribution and license sections of the documentation.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Removed Python 3.5 and added Python 3.9 in Github Action
|
* Removed Python 3.5 and added Python 3.9 in Github Action
|
||||||
|
|||||||
109
docs/index.rst
109
docs/index.rst
@ -292,31 +292,96 @@ Contribute
|
|||||||
|
|
||||||
Spotipy authored by Paul Lamere (plamere) with contributions by:
|
Spotipy authored by Paul Lamere (plamere) with contributions by:
|
||||||
|
|
||||||
- Daniel Beaudry // danbeaudry
|
- Daniel Beaudry (`danbeaudry on Github <https://github.com/danbeaudry>`_)
|
||||||
- Faruk Emre Sahin // fsahin
|
- Faruk Emre Sahin (`fsahin on Github <https://github.com/fsahin>`_)
|
||||||
- George // rogueleaderr
|
- George (`rogueleaderr on Github <https://github.com/rogueleaderr>`_)
|
||||||
- Henry Greville // sethaurus
|
- Henry Greville (`sethaurus on Github <https://github.com/sethaurus>`_)
|
||||||
- Hugo // hugovk
|
- Hugo van Kemanade (`hugovk on Github <https://github.com/hugovk>`_)
|
||||||
- José Manuel Pérez // JMPerez
|
- José Manuel Pérez (`JMPerez on Github <https://github.com/JMPerez>`_)
|
||||||
- Lucas Nunno // lnunno
|
- Lucas Nunno (`lnunno on Github <https://github.com/lnunno>`_)
|
||||||
- Lynn Root // econchick
|
- Lynn Root (`econchick on Github <https://github.com/econchick>`_)
|
||||||
- Matt Dennewitz // mattdennewitz
|
- Matt Dennewitz (`mattdennewitz on Github <https://github.com/mattdennewitz>`_)
|
||||||
- Matthew Duck // mattduck
|
- Matthew Duck (`mattduck on Github <https://github.com/mattduck>`_)
|
||||||
- Michael Thelin // thelinmichael
|
- Michael Thelin (`thelinmichael on Github <https://github.com/thelinmichael>`_)
|
||||||
- Ryan Choi // ryankicks
|
- Ryan Choi (`ryankicks on Github <https://github.com/ryankicks>`_)
|
||||||
- Simon Metson // drsm79
|
- Simon Metson (`drsm79 on Github <https://github.com/drsm79>`_)
|
||||||
- Steve Winton // swinton
|
- Steve Winton (`swinton on Github <https://github.com/swinton>`_)
|
||||||
- Tim Balzer // timbalzer
|
- Tim Balzer (`timbalzer on Github <https://github.com/timbalzer>`_)
|
||||||
- corycorycory // corycorycory
|
- `corycorycory on Github <https://github.com/corycorycory>`_
|
||||||
- Nathan Coleman // nathancoleman
|
- Nathan Coleman (`nathancoleman on Github <https://github.com/nathancoleman>`_)
|
||||||
- Michael Birtwell // mbirtwell
|
- Michael Birtwell (`mbirtwell on Github <https://github.com/mbirtwell>`_)
|
||||||
- Harrison Hayes // Harrison97
|
- Harrison Hayes (`Harrison97 on Github <https://github.com/Harrison97>`_)
|
||||||
- Stephane Bruckert // stephanebruckert
|
- Stephane Bruckert (`stephanebruckert on Github <https://github.com/stephanebruckert>`_)
|
||||||
- Ritiek Malhotra // ritiek
|
- Ritiek Malhotra (`ritiek on Github <https://github.com/ritiek>`_)
|
||||||
|
|
||||||
|
If you are a developer with Python experience, and you would like to contribute to Spotipy, please
|
||||||
|
be sure to follow the guidelines listed below:
|
||||||
|
|
||||||
|
Export the needed Environment variables:::
|
||||||
|
export SPOTIPY_CLIENT_ID=client_id_here
|
||||||
|
export SPOTIPY_CLIENT_SECRET=client_secret_here
|
||||||
|
export SPOTIPY_CLIENT_USERNAME=client_username_here # This is actually an id not spotify display name
|
||||||
|
export SPOTIPY_REDIRECT_URI=http://localhost:8080 # Make url is set in app you created to get your ID and SECRET
|
||||||
|
|
||||||
|
Create virtual environment, install dependencies, run tests:::
|
||||||
|
$ virtualenv --python=python3.7 env
|
||||||
|
(env) $ pip install --user -e .
|
||||||
|
(env) $ python -m unittest discover -v tests
|
||||||
|
|
||||||
|
**Lint**
|
||||||
|
|
||||||
|
To automatically fix the code style:::
|
||||||
|
pip install autopep8
|
||||||
|
autopep8 --in-place --aggressive --recursive .
|
||||||
|
|
||||||
|
To verify the code style:::
|
||||||
|
pip install flake8
|
||||||
|
flake8 .
|
||||||
|
|
||||||
|
To make sure if the import lists are stored correctly:::
|
||||||
|
pip install isort
|
||||||
|
isort . -c -v
|
||||||
|
|
||||||
|
**Publishing (by maintainer)**
|
||||||
|
|
||||||
|
- Bump version in setup.py
|
||||||
|
- Bump and date changelog
|
||||||
|
- Add to changelog:
|
||||||
|
::
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
// Add your changes here and then delete this line
|
||||||
|
- Commit changes
|
||||||
|
- Package to pypi:
|
||||||
|
::
|
||||||
|
python setup.py sdist bdist_wheel
|
||||||
|
python3 setup.py sdist bdist_wheel
|
||||||
|
twine check dist/*
|
||||||
|
twine upload --repository-url https://upload.pypi.org/legacy/ --skip-existing dist/*.(whl|gz|zip)~dist/*linux*.whl
|
||||||
|
- Create github release https://github.com/plamere/spotipy/releases with the changelog content for the version and a short name that describes the main addition
|
||||||
|
- Build the documentation again to ensure it's on the latest version
|
||||||
|
|
||||||
|
**Changelog**
|
||||||
|
|
||||||
|
Don't forget to add a short description of your change in the `CHANGELOG <https://github.com/plamere/spotipy/blob/master/CHANGELOG.md>`_!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
License
|
License
|
||||||
=======
|
=======
|
||||||
https://github.com/plamere/spotipy/blob/master/LICENSE.md
|
(Taken from https://github.com/plamere/spotipy/blob/master/LICENSE.md)::
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
Copyright (c) 2021 Paul Lamere
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
|
||||||
|
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
|
||||||
|
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
||||||
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user