Skip to content

Commit bd5e5fa

Browse files
authored
move to pyproject.toml (#260)
1 parent 15712e6 commit bd5e5fa

File tree

3 files changed

+79
-67
lines changed

3 files changed

+79
-67
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def tests(session: nox.Session) -> None:
1515
# workaround in case no aiohttp binary wheels are available
1616
session.env["AIOHTTP_NO_EXTENSIONS"] = "1"
17-
session.install(".[dev]")
17+
session.install(".[tests,dev]")
1818
session.run(
1919
"pytest",
2020
"-m",
@@ -28,7 +28,7 @@ def tests(session: nox.Session) -> None:
2828

2929
@nox.session(python="3.8", name="tests-minversion")
3030
def tests_minversion(session: nox.Session) -> None:
31-
session.install("fsspec==2022.1.0", ".[dev]")
31+
session.install("fsspec==2022.1.0", ".[tests,dev]")
3232
session.run(
3333
"pytest",
3434
"-m",
@@ -76,7 +76,7 @@ def develop(session: nox.Session) -> None:
7676
session.run("virtualenv", venv_dir, silent=True)
7777

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

8181

8282
@nox.session

pyproject.toml

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,82 @@
11
[build-system]
2-
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
2+
requires = ["setuptools>=64", "setuptools_scm>=8"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "universal_pathlib"
7+
license = {text = "MIT License"}
8+
authors = [
9+
{name = "Andrew Fulton", email = "[email protected]"},
10+
]
11+
description = "pathlib api extended to use fsspec backends"
12+
maintainers = [
13+
{name = "Andreas Poehlmann", email = "[email protected]"},
14+
{name = "Norman Rzepka"},
15+
]
16+
requires-python = ">=3.8"
17+
dependencies = [
18+
"fsspec >=2022.1.0,!=2024.3.1",
19+
]
20+
classifiers = [
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Development Status :: 4 - Beta",
28+
]
29+
keywords = ["filesystem-spec", "pathlib"]
30+
dynamic = ["version", "readme"]
31+
32+
[tool.setuptools.dynamic]
33+
readme = {file = ["README.md"], content-type = "text/markdown"}
34+
35+
[project.optional-dependencies]
36+
tests = [
37+
"pytest >=8",
38+
"pytest-sugar >=0.9.7",
39+
"pytest-cov >=4.1.0",
40+
"pytest-mock >=3.12.0",
41+
"pylint >=2.17.4",
42+
"mypy >=1.10.0",
43+
"pytest-mypy-plugins >=3.1.2",
44+
"packaging",
45+
]
46+
dev = [
47+
"adlfs",
48+
"aiohttp",
49+
"requests",
50+
"gcsfs",
51+
"s3fs",
52+
"moto[s3,server]",
53+
"webdav4[fsspec]",
54+
"wsgidav",
55+
"cheroot",
56+
# "hadoop-test-cluster",
57+
# "pyarrow",
58+
"pydantic",
59+
"pydantic-settings",
60+
"smbprotocol",
61+
]
62+
63+
[project.urls]
64+
Homepage = "https://github.com/fsspec/universal_pathlib"
65+
Changelog = "https://github.com/fsspec/universal_pathlib/blob/main/CHANGELOG.md"
66+
67+
[tool.setuptools]
68+
include-package-data = false
69+
70+
[tool.setuptools.package-data]
71+
upath = ["py.typed"]
72+
73+
[tool.setuptools.packages.find]
74+
exclude = [
75+
"upath.tests",
76+
"upath.tests.*",
77+
]
78+
namespaces = false
79+
580
[tool.setuptools_scm]
681
write_to = "upath/_version.py"
782
version_scheme = "post-release"

setup.cfg

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)