diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 56f722c4..ff1b3ea4 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.10.0 +current_version = 0.10.1 commit = True tag = False tag_name = {new_version} diff --git a/.travis.yml b/.travis.yml index c41816ac..8b2036a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ dist: bionic language: python python: - - '3.5' - '3.6' - '3.7' - '3.8' @@ -15,6 +14,6 @@ matrix: python: '3.8' install: - - pip3 install -U pip setuptools tox-travis - - pip3 install .[dev] + - pip3 install -U pip setuptools -rdev-requirements.txt tox-travis + - pip3 install . script: tox diff --git a/LICENSE.txt b/LICENSE.txt index 62051688..a6116cf4 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2017-2020, Diego Argueta +Copyright (c) 2017-2021, Diego Argueta All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/Makefile b/Makefile index eb679612..7e57abfb 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ $(DOCSTARGET): $(SOURCEFILES) $(DOCSSOURCE) .PHONY: setup setup: .python-version setup.cfg pip3 install -U pip setuptools - pip3 install -Ue .[dev] + pip3 install -Ue . -rtest-requirements.txt -rdev-requirements.txt .PHONY: lint lint: $(SOURCEFILES) diff --git a/README.rst b/README.rst index d0b6259e..86084730 100644 --- a/README.rst +++ b/README.rst @@ -77,7 +77,7 @@ System Requirements - This package will *not* work on a `mixed-endian`_ system. Those are pretty rare nowadays so chances are you won't have a problem. -- This has been tested on Python 3.5-3.8, PyPy3.5, and PyPy3.6. +- This has been tested on Python 3.5-3.9, PyPy3.5, and PyPy3.6. Sorry, I have no intention of supporting Python 2. Feel free to fork this and do a backport if you like! I'd be interested to see it and might even contribute. diff --git a/binobj/__init__.py b/binobj/__init__.py index 306709b7..7c235261 100644 --- a/binobj/__init__.py +++ b/binobj/__init__.py @@ -19,5 +19,5 @@ def __to_version_info(): # Do not modify directly; use ``bumpversion`` command instead. -__version__ = "0.10.0" +__version__ = "0.10.1" __version_info__ = __to_version_info() diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 00000000..eff3dcac --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,6 @@ +bump2version~=1.0 +Sphinx>=3.0 +tox>=3.0 +tox-pyenv>=1.0 +twine +wheel diff --git a/docs/source/CHANGELOG.rst b/docs/source/CHANGELOG.rst index d3ff795a..f9c6f577 100644 --- a/docs/source/CHANGELOG.rst +++ b/docs/source/CHANGELOG.rst @@ -1,6 +1,19 @@ Changelog ========= +0.10.1 +------ + +Released 2021-02-24 + +Internal Changes +~~~~~~~~~~~~~~~~ + +* Updated copyright year +* Removed ``dev`` and ``test`` extras as it was confusing sites like + `libraries.io `_ and `pepy.tech `_, plus it + was never even documented in the first place. + 0.10.0 ------ diff --git a/docs/source/conf.py b/docs/source/conf.py index 593a1d45..1090ac38 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -55,7 +55,7 @@ # General information about the project. project = "binobj" -copyright = "2017-2020, Diego Argueta" +copyright = "2017-2021, Diego Argueta" author = "Diego Argueta" # The version info for the project you're documenting, acts as replacement for @@ -63,9 +63,9 @@ # built documents. # # The short X.Y version. -version = "0.10.0" +version = "0.10.1" # The full version, including alpha/beta/rc tags. -release = "0.10.0" +release = "0.10.1" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/lint-requirements.txt b/lint-requirements.txt new file mode 100644 index 00000000..83eb8439 --- /dev/null +++ b/lint-requirements.txt @@ -0,0 +1,13 @@ +black==20.8b1 +flake8==3.8.4 +flake8-black==0.2.1 +flake8-blind-except==0.2.0 +flake8-bugbear==20.11.1 +flake8-comprehensions==3.3.1 +flake8-debugger==4.0.0 +flake8-isort==4.0.0 +flake8-logging-format==0.6.0 +# Uncomment this later +# flake8-simplify==0.14.0 +isort==5.7.0 +mypy==0.812 diff --git a/setup.cfg b/setup.cfg index ac511c8d..5386a0cf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,7 +21,7 @@ name: binobj packages: find: url: https://www.github.com/dargueta/binobj ; Do not modify the version manually -- use the bumpversion CLI tool -version: 0.10.0 +version: 0.10.1 [options] install_requires: @@ -30,30 +30,6 @@ install_requires: typing-inspect>=0.4.0, <0.7 ; python_version<="3.7" python_requires: >=3.5 -[options.extras_require] -dev: - bump2version~=1.0 - Sphinx>=3.0 - tox>=3.0 - tox-pyenv>=1.0 - twine - wheel -lint: - black==20.8b1 - flake8==3.8.4 - flake8-black==0.2.1 - flake8-bugbear==20.11.1 - flake8-comprehensions==3.3.1 - flake8-debugger==4.0.0 - flake8-isort==4.0.0 - flake8-logging-format==0.6.0 - isort==5.7.0 - mypy==0.790 -test: - pytest==6.1.2 - pytest-cov==2.10.1 - pytest-randomly==3.5.0 - [options.package_data] binobj: py.typed diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 00000000..dfe8b9fd --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,4 @@ +coverage==5.4 +pytest==6.2.2 +pytest-cov==2.11.1 +pytest-randomly==3.5.0 diff --git a/tox.ini b/tox.ini index 2680ccc8..02c841ca 100644 --- a/tox.ini +++ b/tox.ini @@ -1,21 +1,21 @@ [tox] -envlist = py35, py36, py37, py38, py39, pypy35, pypy36, lint, mypy +envlist = py36, py37, py38, py39, pypy36, lint, mypy usedevelop = true passenv = * skip_missing_interpreters = true [testenv] -deps = -e.[test] +deps = -rtest-requirements.txt commands = coverage run -m pytest -vv --cov=binobj {posargs:tests} [testenv:lint] basepython = python3.7 -deps = -e.[lint] +deps = -rlint-requirements.txt commands = flake8 [testenv:mypy] basepython = python3.7 -deps = -e.[lint] +deps = -rlint-requirements.txt commands = mypy --show-error-codes binobj [pytest]