Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
*.pyc
*.bak
dist/
6 changes: 3 additions & 3 deletions Readme.md → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ for sound in results:

## Installation
1) clone or download

2) run:
```
python setup.py install
```

Alternatively you should also be able to install directly from GitHub with:
Alternatively you can install with pip:
```
pip install git+https://github.com/MTG/freesound-python
pip install freesound-python
```

## Advanced usage
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tool.poetry]
name = "freesound-python"
version = "1.1.0"
description = "A Python client for the Freesound APIv2."
authors = ["Universitat Pompeu Fabra"]
maintainers = ["Frederic Font <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/MTG/freesound-python"
packages = [{include = "freesound.py"}]

[tool.poetry.dependencies]
python = "^3.6"
requests = "<3.0,>2.27"

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
11 changes: 3 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
from distutils.core import setup
import setuptools

setup(
name="freesound-python",
version="1.1",
py_modules=["freesound"],
install_requires=["requests<3.0,>2.27"],
python_requires=">=3.6",
)
if __name__ == "__main__":
setuptools.setup()