Skip to content

Commit

Permalink
modernize project config, move to pyproject.toml (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Nov 30, 2024
1 parent d88708b commit 15f3e6d
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 98 deletions.
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
ignore =
# Whitespace before ':'
E203,
# Too many leading '#' for block comment
E266,
# Line break occurred before a binary operator
W503
max-line-length = 89
select = B,C,E,F,W,T4,B9
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,72 @@
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "PyDrive2"
description = "Google Drive API made easy. Maintained fork of PyDrive."
readme = "README.rst"
authors = [
{name = "JunYoung Gwak", email = "[email protected]"},
]
maintainers = [
{name = "DVC team", email = "[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.8"
dependencies = [
"google-api-python-client>=1.12.5",
"oauth2client>=4.0.0",
"PyYAML>=3.0",
# https://github.com/iterative/PyDrive2/issues/361
"cryptography<44",
"pyOpenSSL>=19.1.0,<=24.2.1",
]
license = {text = "Apache License 2.0"}
dynamic = ["version"]

[project.urls]
Documentation = "https://docs.iterative.ai/PyDrive2"
Source = "https://github.com/iterative/PyDrive2"
Changelog = "https://github.com/iterative/PyDrive2/releases"

[project.optional-dependencies]
fsspec = [
"fsspec>=2021.07.0",
"tqdm>=4.0.0",
"funcy>=1.14",
"appdirs>=1.4.3",
]
tests = [
"pytest>=4.6.0",
"timeout-decorator",
"funcy>=1.14",
"flake8",
"flake8-docstrings",
"pytest-mock",
"pyinstaller",
"importlib_resources<6; python_version < '3.10'",
"black==24.10.0",
]

[project.entry-points.pyinstaller40]
hook-dirs = "pydrive2.__pyinstaller:get_hook_dirs"
tests = "pydrive2.__pyinstaller:get_PyInstaller_tests"

[tool.setuptools]
packages=[
"pydrive2",
"pydrive2.test",
"pydrive2.fs",
"pydrive2.__pyinstaller",
]

[tool.setuptools_scm]

Expand All @@ -20,3 +87,8 @@ exclude = '''
| dist
)/
'''

[tool.pytest.ini_options]
markers = [
"manual: mark tests to be runnable only in local environment and require user manual actions.",
]
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

70 changes: 0 additions & 70 deletions setup.py

This file was deleted.

25 changes: 0 additions & 25 deletions tox.ini

This file was deleted.

0 comments on commit 15f3e6d

Please sign in to comment.