Skip to content

Commit

Permalink
Migrated to python 3.8 by default for development, added 'pipenv-inst…
Browse files Browse the repository at this point in the history
…all' target to Makefile, updated requirements
  • Loading branch information
vint21h committed Feb 19, 2020
1 parent 98a8dbc commit 85fd9d8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
language: system
entry: pipenv run black humans_txt tests
types: [python]
language_version: python3.7
language_version: python3.8
- id: flake8
name: flake8
stages: [commit]
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.4
3.8.1
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@


.ONESHELL:
PHONY: tox test makemessages compilemessages bumpversion build sign check check-build check-upload upload clean coveralls release help
PHONY: pipenv-install tox test makemessages compilemessages bumpversion build sign check check-build check-upload upload clean coveralls release help
TEST_PYPI_URL=https://test.pypi.org/legacy/
NAME=humans_txt
EXTENSIONS=py,html,txt
EXTENSIONS=py,html,txt,xml
TRASH_DIRS=build dist *.egg-info .tox .mypy_cache __pycache__ htmlcov
TRASH_FILES=.coverage Pipfile.lock
BUILD_TYPES=bdist_wheel sdist
VERSION=`python -c "import configparser; config = configparser.ConfigParser(); config.read('setup.cfg'); print(config['metadata']['version']);"`


pipenv-install:
pipenv install;\
pipenv install --dev;\


tox:
tox;\

Expand Down Expand Up @@ -92,6 +97,8 @@ release:
help:
@echo " help:"
@echo " Show this help."
@echo " pipenv-install:"
@echo " Install all requirements."
@echo " tox:"
@echo " Run tox."
@echo " test:"
Expand Down
6 changes: 5 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mypy = "==0.761"
nose-exclude = "==0.5.0"
nose-timer = "==0.7.5"
pep8-naming = "==0.9.1"
pre-commit = "==2.0.1"
pre-commit = "==2.1.0"
pre-commit-hooks = "==2.5.0"
pygments = "==2.5.2"
pylint = "==2.4.4"
Expand All @@ -46,3 +46,7 @@ twine = "==3.1.1"
[packages]
django = ">=2.2<=3.1"
django-appconf = ">=1.0.3"


[requires]
python_version = "3.8.1"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test =
nose-timer==0.7.5
pep8-naming==0.9.1
pre-commit-hooks==2.5.0
pre-commit==2.0.1
pre-commit==2.1.0
pygments==2.5.2
pylint-django==2.0.13
pylint==2.4.4
Expand Down

0 comments on commit 85fd9d8

Please sign in to comment.