Skip to content

Commit

Permalink
Move setup.yp to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed Jan 9, 2025
1 parent a4f8937 commit f270067
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 75 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pcloud-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r test_requirements.txt
pip install -e .
pip install -e ".[test]"
playwright install
- name: Lint with flake8
run: |
Expand Down
59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
package = "pcloud"

[project]
name = "pcloud"
version = "1.5.dev0"
description = "A client library for pCloud"
authors = [
{ name = "Tom Gross", email = "[email protected]" }
]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Environment :: Console",
"Environment :: Other Environment",
"Environment :: Web Environment",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
]

keywords = ["Python", "pCloud", "REST"]

dependencies = [
"requests",
"requests-toolbelt",
"setuptools>=75.6.0",
"wheel>=0.45.1",
]

[project.optional-dependencies]
# development dependency groups
test = [
"pytest==8.3.4",
"pytest-sugar==1.0.0",
"pytest-timeout==2.3.1",
"pytest-cov==6.0.0",
"pytest-rerunfailures==15.0",
"wheel==0.45.1",
"flake8==7.1.1",
"fs==2.4.16",
"playwright==1.49.1",
"multipart==1.2.1",
"zipp>=3.19.1"
]

pyfs = ['fs']

[project.entry-points."fs.opener"]
pcloud = "pcloud.pcloudfs:PCloudOpener"
"pcloud+eapi" = "pcloud.pcloudfs:PCloudOpener"

61 changes: 0 additions & 61 deletions setup.py

This file was deleted.

12 changes: 0 additions & 12 deletions test_requirements.txt

This file was deleted.

0 comments on commit f270067

Please sign in to comment.