boxnotes2html

Convert Box's proprietary Box Notes to HTML, Markdown, or plain text
Log | Files | Refs | README | LICENSE

commit 75be31f8d9766db0c8b7289899b78ce60e6ac6a5
parent acae4489ed924e07ff9dc125133a50da5f3c259e
Author: alex wennerberg <awennerberg@cloudbakers.com>
Date:   Mon,  2 Sep 2019 19:33:27 -0500

Minor repo cleanup

Diffstat:
MMakefile | 52+---------------------------------------------------
Rreadme.md -> README.md | 0
Drequirements-dev.txt | 5-----
Msetup.py | 4++--
4 files changed, 3 insertions(+), 58 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,31 +1,6 @@ .PHONY: clean clean-test clean-pyc clean-build docs help .DEFAULT_GOAL := help -define BROWSER_PYSCRIPT -import os, webbrowser, sys - -try: - from urllib import pathname2url -except: - from urllib.request import pathname2url - -webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1]))) -endef -export BROWSER_PYSCRIPT - -define PRINT_HELP_PYSCRIPT -import re, sys - -for line in sys.stdin: - match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line) - if match: - target, help = match.groups() - print("%-20s %s" % (target, help)) -endef -export PRINT_HELP_PYSCRIPT - -BROWSER := python -c "$$BROWSER_PYSCRIPT" - help: @python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) @@ -53,37 +28,12 @@ clean-test: ## remove test and coverage artifacts rm -rf tests/fixtures/*md rm -rf tests/fixtures/*html -lint: ## check style with flake8 - flake8 boxnotes2html tests - -black: - black boxnotes2html - -test: ## run tests quickly with the default Python +test: clean-test ## run tests quickly with the default Python python3 setup.py test -integration_test: ## run integration tests, which may be slower - test-all: ## run tests on every Python version with tox tox -coverage: ## check code coverage quickly with the default Python - coverage run --source boxnotes2html -m pytest - coverage report -m - coverage html - $(BROWSER) htmlcov/index.html - -docs: ## generate Sphinx HTML documentation, including API docs - rm -f docs/boxnotes2html.rst - rm -f docs/modules.rst - sphinx-apidoc -o docs/ boxnotes2html - $(MAKE) -C docs clean - $(MAKE) -C docs html - $(BROWSER) docs/_build/html/index.html - -servedocs: docs ## compile the docs watching for changes - watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D . - release: dist ## package and upload a release twine upload dist/* diff --git a/readme.md b/README.md diff --git a/requirements-dev.txt b/requirements-dev.txt @@ -1,5 +0,0 @@ -pytest -tox -bumpversion -wheel -twine diff --git a/setup.py b/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -with open("readme.md", "r") as fh: +with open("README.md", "r") as fh: long_description = fh.read() setup( @@ -8,7 +8,7 @@ setup( version="0.1.3", author="Alex Wennerberg", author_email="alex@alexwennerberg.com", - description="Converting from Box Notes to HTML", + description="Converting from Box Notes to HTML or other formats", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/alexwennerberg/boxnotes2html",