Skip to content

Commit

Permalink
Internal improvements, loosen package requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Argueta committed Sep 25, 2020
1 parent fd0b20a commit 266b66b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.9.2
current_version = 0.9.2-post1
commit = True
tag = False
tag_name = {new_version}
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -37,12 +37,12 @@ setup: .python-version setup.cfg
lint: $(SOURCEFILES)
tox -e lint

# TODO (dargueta): Make `clean` work on Windows. Windows doesn't have `rm`.
.PHONY: clean
clean:
git clean -fd $(DOCSDIR)
rm -rf .tox .cache .pytest_cache *.egg-info *.eggs .coverage dist build .mypy_cache
find . -name '__pycache__' -type d -exec rm -rf '{}' \+
$(MAKE) -C $(DOCSDIR) clean
$(RM) $(DOCSSOURCE)/binobj.*.rst $(DOCSSOURCE)/binobj.rst $(DOCSSOURCE)/modules.rst
$(RM) -r .tox .cache .pytest_cache *.egg-info *.eggs .coverage dist build .mypy_cache
find . -name '__pycache__' -type d -exec $(RM) -r '{}' \+

# Run the unit tests if the source code has changed.
.PHONY: test
Expand Down
2 changes: 1 addition & 1 deletion binobj/__init__.py
Expand Up @@ -19,5 +19,5 @@ def __to_version_info():


# Do not modify directly; use ``bumpversion`` command instead.
__version__ = "0.9.2"
__version__ = "0.9.2-post1"
__version_info__ = __to_version_info()
13 changes: 13 additions & 0 deletions docs/source/CHANGELOG.rst
@@ -1,6 +1,19 @@
Changelog
=========

0.9.2-post1
-----------

Released 2020-09-24

Other Changes
~~~~~~~~~~~~~

* Loosened version requirement of ``typing-inspect`` package.
* Upgraded some test dependencies
* Improved behavior of ``make clean``
* Made MyPy settings stricter

0.9.2
-----

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Expand Up @@ -65,7 +65,7 @@
# The short X.Y version.
version = "0.9.2"
# The full version, including alpha/beta/rc tags.
release = "0.9.2"
release = "0.9.2-post1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
9 changes: 5 additions & 4 deletions setup.cfg
Expand Up @@ -21,13 +21,13 @@ name: binobj
packages: find:
url: https://www.github.com/dargueta/binobj
; Do not modify the version manually -- use the bumpversion CLI tool
version: 0.9.2
version: 0.9.2-post1

[options]
install_requires:
attrs>=18.2.0
more-itertools>=4.0, <9
typing-inspect==0.4.* ; python_version<="3.7"
typing-inspect>=0.4.0, <0.7 ; python_version<="3.7"
python_requires: >=3.5

[options.extras_require]
Expand All @@ -37,17 +37,18 @@ dev:
tox>=3.0
tox-pyenv>=1.0
lint:
black==19.10b0
black==20.8b1
flake8==3.8.3
flake8-black==0.2.1
flake8-bugbear==20.1.4
flake8-comprehensions==3.2.3
flake8-debugger==3.2.1
flake8-isort==4.0.0
flake8-logging-format==0.6.0
isort==5.5.3
mypy==0.782
test:
pytest==6.0.1
pytest==6.0.2
pytest-cov==2.10.1
pytest-randomly==3.4.1

Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Expand Up @@ -16,7 +16,7 @@ commands = flake8
[testenv:mypy]
basepython = python3.7
deps = -e.[lint]
commands = mypy binobj
commands = mypy --show-error-codes binobj

[pytest]
filterwarnings =
Expand Down Expand Up @@ -62,14 +62,14 @@ include_trailing_comma = true

[mypy]
strict_optional = true
disallow_any_decorated = false
disallow_any_decorated = true
disallow_any_generics = true
disallow_any_unimported = false
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
# ignore_missing_imports = true
ignore_missing_imports = false
warn_unreachable = true
warn_unused_ignores = true
warn_redundant_casts = true
Expand Down

0 comments on commit 266b66b

Please sign in to comment.