Skip to content
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

migrate to pyproject.toml #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ script:
- echo "$TRAVIS_PYTHON_VERSION"

# Check wheather the imports were sorted correctly.
- isort -c -rc pypager setup.py examples
- isort -c -rc pypager examples

# Check code formatting.
- black --check pypager setup.py examples
- black --check pypager examples

# Type checking
- mypy pypager
6 changes: 0 additions & 6 deletions mypy.ini

This file was deleted.

27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
[project]
name = "pypager"
description = """Pure Python pager (like "more" and "less")."""
readme = "README.rst"
authors = [{ name = "Jonathan Slenders" }]
requires-python = ">=3.6"
dependencies = ["prompt_toolkit>=3.0.0,<3.1.0", "pygments"]
license = { file = "LICENSE" }
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/jonathanslenders/pypager"

[project.scripts]
pypager = "pypager.entry_points.run_pypager:run"

[tool.black]
target-version = ['py36']

Expand All @@ -11,3 +27,14 @@ known_third_party = "prompt_toolkit,pygments"
force_grid_wrap = 0
use_parentheses = true
line_length = 88

[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
platform = "win32"
strict_equality = true
strict_optional = true

[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
32 changes: 0 additions & 32 deletions setup.py

This file was deleted.