diff --git a/.gitignore b/.gitignore index 17a8d54..18b8150 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build *.pyc *.bak +dist/ \ No newline at end of file diff --git a/Readme.md b/README.md similarity index 95% rename from Readme.md rename to README.md index 982776c..5d8787a 100644 --- a/Readme.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dd83505 --- /dev/null +++ b/pyproject.toml @@ -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 "] +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" diff --git a/setup.py b/setup.py index b2f6273..1abbd06 100644 --- a/setup.py +++ b/setup.py @@ -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()