Skip to content

Commit

Permalink
More poetry-ifying
Browse files Browse the repository at this point in the history
  • Loading branch information
mgalloy committed May 3, 2019
1 parent fa56547 commit 2f484c6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ wheels/
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
pip-wheel-metadata/

# Unit test / coverage reports
htmlcov/
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ lint: ## check style with flake8
flake8 epochs tests

test: ## run tests quickly with the default Python
py.test
poetry run pytest

test-all: ## run tests on every Python version with tox
tox

coverage: ## check code coverage quickly with the default Python
coverage run --source epochs -m pytest
coverage report -m
coverage html
poetry run coverage run --source epochs -m pytest
poetry run coverage report -m
poetry run coverage html
$(BROWSER) htmlcov/index.html

docs: ## generate Sphinx HTML documentation, including API docs
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
[tool.poetry]
name = "epochs"
version = "0.2.0"
description = "Python package to handle configuration files specifying values changing over time"
authors = ["Michael Galloy <mgalloy@gmail.com>"]
license = "BSD-3-Clause"
readme = "README.rst"
homepage = "https://epochs.readthedocs.io/en/latest/"
repository = "https://github.com/mgalloy/epochs"
documentation = "https://epochs.readthedocs.io/en/latest/"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
]

[tool.poetry.dependencies]
python = "^3.5"
python-dateutil = "^2.8"

[tool.poetry.dev-dependencies]
pytest = "^3.0"
tox = "^3.9"
wheel = "^0.33.1"
watchdog = "^0.9.0"
Sphinx = "^2.0"
twine = "^1.13"
coverage = "^4.5"
flake8 = "^3.7"
pytest-runner = "^4.4"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.black]
line-length = 88
target-version = ['py37']
Expand All @@ -21,3 +56,4 @@ exclude = '''
# the root of the project
)
'''

0 comments on commit 2f484c6

Please sign in to comment.