-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move package config from setup.cfg to pyproject.toml (#70)
Centralize all of the package metadata to a single file, which is the format being promoted for the future.
- Loading branch information
Showing
5 changed files
with
83 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Configure flake8 | ||
|
||
[flake8] | ||
max-line-length = 88 | ||
max-doc-length = 79 | ||
ignore = | ||
# Too many leading '#' for block comment | ||
E266, | ||
# Line too long (82 > 79 characters) | ||
E501, | ||
# Do not use variables named 'I', 'O', or 'l' | ||
E741, | ||
# Line break before binary operator (conflicts with black) | ||
W503, | ||
# Ignore spaces before a colon (Black handles it) | ||
E203, | ||
exclude = | ||
.git, | ||
__pycache__, | ||
.ipynb_checkpoints, | ||
per-file-ignores = | ||
# disable unused-imports errors on __init__.py | ||
__init__.py: F401 | ||
|
||
# Configure flake8-rst-docstrings | ||
# ------------------------------- | ||
# Add some roles used in our docstrings | ||
rst-roles = | ||
class, | ||
func, | ||
mod, | ||
meth, | ||
ref, | ||
# Ignore "Unknown target name" raised on citations | ||
extend-ignore = RST306 | ||
|
||
# Configure flake8-functions | ||
# -------------------------- | ||
# Allow a max of 10 arguments per function | ||
max-parameters-amount = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,44 @@ | ||
# Specify that we use setuptools and setuptools_scm (to generate the version | ||
# string). Actual configuration is in setup.cfg. | ||
[project] | ||
name = "ensaio" | ||
description = "Practice datasets to probe your code" | ||
dynamic = ["version"] | ||
authors = [ | ||
{name="The Ensaio Developers", email="[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Leonardo Uieda", email = "[email protected]"} | ||
] | ||
readme = "README.md" | ||
license = {text = "BSD 3-Clause"} | ||
keywords = ["geophysics", "geodesy", "data"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development :: Libraries", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"pooch>=1.5.0,<2.0.0", | ||
] | ||
|
||
[project.urls] | ||
"Documentation" = "https://www.fatiando.org/ensaio" | ||
"Changelog" = "https://www.fatiando.org/ensaio/latest/changes.html" | ||
"Bug Tracker" = "https://github.com/fatiando/ensaio/issues" | ||
"Source Code" = "https://github.com/fatiando/ensaio" | ||
|
||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|