-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `pyproject.toml` * Replace `MANIFEST.in` with `package_data` in `setup.cfg` * Fold `tox.ini` into `setup.cfg`
- Loading branch information
Showing
7 changed files
with
82 additions
and
140 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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,4 +1,3 @@ | ||
# -*- encoding: utf-8 -*- | ||
# ====================================================================================== | ||
# Copyright and other protections apply. Please see the accompanying LICENSE file for | ||
# rights and restrictions governing use of this software. All rights not expressly | ||
|
@@ -7,26 +6,78 @@ | |
# software in any capacity. | ||
# ====================================================================================== | ||
|
||
[tox] # ------------------------------------------------------------------------------- | ||
|
||
envlist = check, py{39,38}-lint{,-beartype}, py{39,38,37}{,-beartype-matplotlib}, pypy{39,38,37}{,-beartype} | ||
skip_missing_interpreters = true | ||
[metadata] # -------------------------------------------------------------------------- | ||
|
||
name = dycelib | ||
version = 0.0.0 | ||
url = https://posita.github.io/dyce/latest/ | ||
author = Matt Bogosian | ||
author_email = [email protected] | ||
# From <https://pypi.python.org/pypi?%3Aaction=list_classifiers> | ||
classifiers = | ||
Topic :: Education | ||
Topic :: Games/Entertainment | ||
Topic :: Scientific/Engineering :: Mathematics | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
Intended Audience :: Education | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
license = MIT License | ||
description = Simple Python tools for exploring dice outcomes and other finite discrete probabilities | ||
long_description = file: README | ||
long_description_content_type = text/markdown; charset=UTF-8 | ||
|
||
[options] # --------------------------------------------------------------------------- | ||
|
||
install_requires = | ||
typing-extensions>=3.10;python_version<'3.9' | ||
packages = dyce | ||
|
||
[options.package_data] # -------------------------------------------------------------- | ||
|
||
* = LICENSE | ||
|
||
[options.extras_require] # ------------------------------------------------------------ | ||
|
||
dev = | ||
beartype>=0.8 | ||
mike | ||
# See: | ||
# * <https://github.com/mkdocs/mkdocs/issues/2448> | ||
# * <https://github.com/mkdocstrings/mkdocstrings/issues/295> | ||
mkdocs!=1.2 | ||
mkdocs-exclude | ||
mkdocs-material | ||
mkdocstrings | ||
mypy | ||
numpy | ||
pre-commit | ||
pytest-gitignore | ||
sympy | ||
tox | ||
twine | ||
|
||
[travis] # ---------------------------------------------------------------------------- | ||
[tox:tox] # --------------------------------------------------------------------------- | ||
|
||
python = | ||
3.7: py37{,-beartype-matplotlib} | ||
3.8: py38{,-beartype-matplotlib}, py38-lint{,-beartype} | ||
3.9: py39{,-beartype-matplotlib}, py39-lint{,-beartype}, check | ||
pypy3.7: pypy37{,-beartype} | ||
pypy3.8: pypy38{,-beartype} | ||
pypy3.9: pypy39{,-beartype} | ||
envlist = check, py{39,38}-lint{,-beartype} py39 py39-beartype-matplotlib py{38,37,py39,py38,py37}-beartype | ||
skipsdist = true | ||
skip_missing_interpreters = true | ||
|
||
[testenv] # --------------------------------------------------------------------------- | ||
|
||
commands = | ||
pytest --cov=dyce {posargs} | ||
deps = | ||
--editable . | ||
beartype: beartype>=0.8 | ||
matplotlib: matplotlib | ||
!pypy37-!pypy38-!pypy39: numpy | ||
|
@@ -43,7 +94,6 @@ deps = | |
sympy | ||
setenv = | ||
PYTHONWARNINGS = once | ||
usedevelop = true | ||
|
||
[testenv:pypy{37,38,39}{,-beartype}] # ------------------------------------------------ | ||
|
||
|
@@ -52,16 +102,15 @@ basepython = | |
pypy38: pypy-3.8 | ||
pypy39: pypy-3.9 | ||
|
||
[testenv:check{,-classdiagrams}] # ---------------------------------------------------- | ||
[testenv:check] # ---------------------------------------------------- | ||
|
||
basepython = {env:PYTHON:python} | ||
commands = | ||
rm -frv site | ||
make -C docs/img | ||
mkdocs build --strict | ||
python setup.py sdist | ||
python -c 'from setuptools import setup ; setup()' sdist | ||
twine check dist/* | ||
!classdiagrams: git diff-files --exit-code --patch | ||
deps = | ||
graphviz | ||
matplotlib | ||
|
@@ -76,8 +125,8 @@ deps = | |
sympy | ||
twine | ||
# pylint contains pyreverse | ||
classdiagrams: pygraphviz | ||
classdiagrams: pylint | ||
pygraphviz | ||
pylint | ||
setenv = | ||
PYTHONWARNINGS = ignore | ||
whitelist_externals = | ||
|
@@ -119,7 +168,7 @@ ignore = | |
E704, # multiple statements on one line (def) | ||
W503 # line break occurred before a binary operator | ||
|
||
[pytest] # ---------------------------------------------------------------------------- | ||
[tool:pytest] # ----------------------------------------------------------------------- | ||
|
||
addopts = --doctest-continue-on-failure --doctest-glob='*.md' --doctest-modules | ||
doctest_optionflags = ELLIPSIS IGNORE_EXCEPTION_DETAIL NORMALIZE_WHITESPACE NUMBER |