Skip to content

Commit 0260e2c

Browse files
Migrate setup.cfg to pyproject.toml. (#273)
* Migrate `setup.cfg` to `pyproject.toml`. * small nits to maintainers --------- Co-authored-by: isabelizimm <[email protected]>
1 parent d215a8c commit 0260e2c

File tree

2 files changed

+71
-74
lines changed

2 files changed

+71
-74
lines changed

pyproject.toml

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,82 @@
1+
[project]
2+
name = "pins"
3+
description = "Publish data sets, models, and other python objects, making it easy to share them across projects and with your colleagues."
4+
readme.content-type = "text/markdown"
5+
readme.file = "README.md"
6+
urls.Documentation = "https://rstudio.github.io/pins-python"
7+
urls.Homepage = "https://github.com/rstudio/pins-python"
8+
authors = [{ name = "Michael Chow", email = "[email protected]" }]
9+
maintainers = [{ name = "Isabel Zimmerman", email = "[email protected]" }]
10+
keywords = ["data", "tidyverse"]
11+
classifiers = [
12+
"Programming Language :: Python :: 3 :: Only",
13+
"Programming Language :: Python :: 3.8",
14+
"Programming Language :: Python :: 3.9",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"License :: OSI Approved :: MIT License",
19+
]
20+
requires-python = ">=3.8"
21+
dynamic = ["version"]
22+
dependencies = [
23+
"appdirs<2", # Using appdirs rather than platformdirs is deliberate, see https://github.com/rstudio/pins-python/pull/239
24+
"fsspec>=2022.2",
25+
"humanize>=1",
26+
"importlib-metadata>=4.4",
27+
"importlib-resources>=1.3",
28+
"jinja2>=2.10",
29+
"joblib>=0.12",
30+
"pandas>=0.23",
31+
"pyyaml>=3.13",
32+
"requests",
33+
"xxhash>=1",
34+
]
35+
36+
[project.optional-dependencies]
37+
aws = ["s3fs"]
38+
azure = ["adlfs"]
39+
doc = [
40+
"ipykernel",
41+
"ipython<=8.12",
42+
"nbclient",
43+
"nbformat",
44+
"quartodoc",
45+
]
46+
gcs = ["gcsfs"]
47+
test = [
48+
"adlfs>=2024.4.1",
49+
"fastparquet",
50+
"gcsfs",
51+
"pip-tools",
52+
"pyarrow",
53+
"pytest==7.1.3",
54+
"pytest-cases",
55+
"pytest-dotenv",
56+
"pytest-parallel",
57+
"s3fs",
58+
]
59+
160
[build-system]
2-
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
61+
requires = ["setuptools>=45", "setuptools-scm>=6.2", "wheel"]
362
build-backend = "setuptools.build_meta"
463

64+
[tool.setuptools]
65+
include-package-data = true
66+
67+
[tool.setuptools.packages]
68+
find = { namespaces = false }
69+
70+
[tool.setuptools_scm]
71+
72+
[tool.distutils.bdist_wheel]
73+
universal = 1
74+
575
[tool.pytest.ini_options]
676
testpaths = ["pins"]
777
addopts = "--doctest-modules"
878
doctest_optionflags = "NORMALIZE_WHITESPACE"
979
markers = ["skip_on_github: skip this test if running on github"]
10-
11-
[tool.setuptools_scm]
12-
1380
[tool.ruff]
1481
line-length = 90
1582
extend-exclude = ["docs"]

setup.cfg

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

0 commit comments

Comments
 (0)