Skip to content

Commit

Permalink
move to pyproject.toml (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- authored Aug 30, 2024
1 parent 15712e6 commit bd5e5fa
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 67 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def tests(session: nox.Session) -> None:
# workaround in case no aiohttp binary wheels are available
session.env["AIOHTTP_NO_EXTENSIONS"] = "1"
session.install(".[dev]")
session.install(".[tests,dev]")
session.run(
"pytest",
"-m",
Expand All @@ -28,7 +28,7 @@ def tests(session: nox.Session) -> None:

@nox.session(python="3.8", name="tests-minversion")
def tests_minversion(session: nox.Session) -> None:
session.install("fsspec==2022.1.0", ".[dev]")
session.install("fsspec==2022.1.0", ".[tests,dev]")
session.run(
"pytest",
"-m",
Expand Down Expand Up @@ -76,7 +76,7 @@ def develop(session: nox.Session) -> None:
session.run("virtualenv", venv_dir, silent=True)

python = os.path.join(venv_dir, "bin/python")
session.run(python, "-m", "pip", "install", "-e", ".[dev]", external=True)
session.run(python, "-m", "pip", "install", "-e", ".[tests,dev]", external=True)


@nox.session
Expand Down
77 changes: 76 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,82 @@
[build-system]
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "universal_pathlib"
license = {text = "MIT License"}
authors = [
{name = "Andrew Fulton", email = "andrewfulton9@gmail.com"},
]
description = "pathlib api extended to use fsspec backends"
maintainers = [
{name = "Andreas Poehlmann", email = "andreas@poehlmann.io"},
{name = "Norman Rzepka"},
]
requires-python = ">=3.8"
dependencies = [
"fsspec >=2022.1.0,!=2024.3.1",
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 4 - Beta",
]
keywords = ["filesystem-spec", "pathlib"]
dynamic = ["version", "readme"]

[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}

[project.optional-dependencies]
tests = [
"pytest >=8",
"pytest-sugar >=0.9.7",
"pytest-cov >=4.1.0",
"pytest-mock >=3.12.0",
"pylint >=2.17.4",
"mypy >=1.10.0",
"pytest-mypy-plugins >=3.1.2",
"packaging",
]
dev = [
"adlfs",
"aiohttp",
"requests",
"gcsfs",
"s3fs",
"moto[s3,server]",
"webdav4[fsspec]",
"wsgidav",
"cheroot",
# "hadoop-test-cluster",
# "pyarrow",
"pydantic",
"pydantic-settings",
"smbprotocol",
]

[project.urls]
Homepage = "https://github.com/fsspec/universal_pathlib"
Changelog = "https://github.com/fsspec/universal_pathlib/blob/main/CHANGELOG.md"

[tool.setuptools]
include-package-data = false

[tool.setuptools.package-data]
upath = ["py.typed"]

[tool.setuptools.packages.find]
exclude = [
"upath.tests",
"upath.tests.*",
]
namespaces = false

[tool.setuptools_scm]
write_to = "upath/_version.py"
version_scheme = "post-release"
Expand Down
63 changes: 0 additions & 63 deletions setup.cfg

This file was deleted.

0 comments on commit bd5e5fa

Please sign in to comment.