-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish pyproject.toml
migration
#382
Changes from 45 commits
13b44c8
b03845b
7f41565
aee9b9b
1833c83
2abad9f
e6f3a6a
296b0ac
f4a2537
725c825
b735ef3
6cf38ab
445ca7d
055167c
3f216d9
798cd68
f5f9b3f
2e48bec
e42a754
45fc1b3
1c57a80
916bf7a
05d40f6
72e9727
e292f02
c14dda4
258d487
a4daba2
b4bd856
541055c
d92014b
9cc5f77
e8393c6
1d4500e
9888271
01072a8
dcd3c6e
0ced812
9e550c7
4175325
7f9fa08
c832d88
e43e314
ed9d21d
6db7354
e679fb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
exclude = | ||
.git, | ||
.github, | ||
.pytest_cache, | ||
adhoc, | ||
build, | ||
c-blosc, | ||
dist, | ||
docs, | ||
fixture, | ||
notebooks, | ||
numcodecs.egg-info, |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ sphinx: | |
|
||
python: | ||
install: | ||
- requirements: requirements_rtfd.txt | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,111 @@ | ||
[build-system] | ||
requires = ["setuptools>=40.8.0", "setuptools_scm[toml]>=6.2", "Cython", "py-cpuinfo"] | ||
build-backend = "setuptools.build_meta:__legacy__" | ||
requires = [ | ||
"setuptools>=64", | ||
"setuptools-scm[toml]>=6.2", | ||
"Cython", | ||
"py-cpuinfo" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "numcodecs" | ||
description = """ | ||
A Python package providing buffer compression and transformation codecs for use | ||
in data storage and communication applications. | ||
""" | ||
readme = "README.rst" | ||
dependencies = [ | ||
"entrypoints", | ||
"numpy>=1.7", | ||
"typing-extensions>=3.7.4" | ||
] | ||
requires-python = ">=3.7" | ||
dynamic = [ | ||
"version", | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps outwith this PR but is "Beta" still appropriate? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. Filed as issue ( #394 ) |
||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Operating System :: Unix", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
] | ||
maintainers = [ | ||
{ name = "Alistair Miles", email = "[email protected]" }, | ||
] | ||
license = { text = "MIT" } | ||
|
||
[project.urls] | ||
"Bug Tracker" = "https://github.com/zarr-developers/numcodecs/issues" | ||
Changelog = "https://numcodecs.readthedocs.io/en/stable/release.html" | ||
Documentation = "https://numcodecs.readthedocs.io/" | ||
Homepage = "https://github.com/zarr-developers/numcodecs" | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"sphinx", | ||
"sphinx-issues", | ||
"numpydoc", | ||
"mock", | ||
] | ||
test = [ | ||
"coverage", | ||
"flake8", | ||
"pytest", | ||
"pytest-cov", | ||
] | ||
msgpack = [ | ||
"msgpack", | ||
] | ||
zfpy = [ | ||
"zfpy>=1.0.0", | ||
] | ||
|
||
[tool.setuptools] | ||
jakirkham marked this conversation as resolved.
Show resolved
Hide resolved
|
||
license-files = ["LICENSE.txt"] | ||
package-dir = {"" = "."} | ||
packages = ["numcodecs", "numcodecs.tests"] | ||
zip-safe = false | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "guess-next-dev" | ||
local_scheme = "dirty-tag" | ||
write_to = "numcodecs/version.py" | ||
|
||
[tool.codespell] | ||
skip = "./.git,fixture" | ||
ignore-words-list = "ba, compiletime, hist, nd, unparseable" | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"pragma: ${PY_MAJOR_VERSION} no cover", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov=numcodecs --cov-report xml --doctest-modules --doctest-glob=*.pyx" | ||
doctest_optionflags = [ | ||
"NORMALIZE_WHITESPACE", | ||
"ELLIPSIS", | ||
"IGNORE_EXCEPTION_DETAIL", | ||
] | ||
testpaths = [ | ||
"numcodecs", | ||
] | ||
norecursedirs = [ | ||
".git", | ||
".github", | ||
".pytest_cache", | ||
"adhoc", | ||
"build", | ||
"c-blosc", | ||
"docs", | ||
"fixture", | ||
"notebooks", | ||
"numcodecs.egg-info", | ||
] |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be "normal" to also have an
"all"
alias to cover these?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah agree that would be useful, but unless we write our own (which doesn't seem very DRY friendly) or handle this in
setup.py
. Am not aware of any existing option. Also please see this upstream issue ( pypa/pip#4340 ).