Skip to content

Commit 83d7ff3

Browse files
committed
Up skel and some cleanup. Drop py36.
1 parent 03003b0 commit 83d7ff3

File tree

13 files changed

+119
-107
lines changed

13 files changed

+119
-107
lines changed

.cookiecutterrc

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,57 @@
11
# Generated by cookiepatcher, a small shim around cookiecutter (pip install cookiepatcher)
22

33
default_context:
4-
allow_tests_inside_package: no
5-
appveyor: no
4+
allow_tests_inside_package: 'no'
5+
appveyor: 'no'
66
c_extension_function: '-'
77
c_extension_module: '-'
8-
c_extension_optional: yes
9-
c_extension_support: yes
10-
c_extension_test_pypi: yes
8+
c_extension_optional: 'yes'
9+
c_extension_support: 'yes'
10+
c_extension_test_pypi: 'yes'
1111
c_extension_test_pypi_username: ionel
12-
codacy: no
12+
codacy: 'no'
1313
codacy_projectid: 862e7946eabb4112be6503a667381b71
14-
codeclimate: no
15-
codecov: yes
16-
command_line_interface: no
14+
codeclimate: 'no'
15+
codecov: 'yes'
16+
command_line_interface: 'no'
1717
command_line_interface_bin_name: '-'
18-
coveralls: yes
18+
coveralls: 'yes'
1919
distribution_name: lazy-object-proxy
2020
email: contact@ionelmc.ro
2121
full_name: Ionel Cristian Mărieș
22-
github_actions: yes
23-
legacy_python: no
22+
github_actions: 'yes'
23+
github_actions_osx: 'yes'
24+
github_actions_windows: 'yes'
25+
legacy_python: 'no'
2426
license: BSD 2-Clause License
2527
linter: flake8
2628
package_name: lazy_object_proxy
27-
pre_commit: yes
29+
pre_commit: 'yes'
30+
pre_commit_formatter: black
2831
project_name: lazy-object-proxy
2932
project_short_description: A fast and thorough lazy object proxy.
30-
pypi_badge: yes
31-
pypi_disable_upload: no
32-
release_date: '2021-03-22'
33+
pypi_badge: 'yes'
34+
pypi_disable_upload: 'no'
35+
release_date: '2021-12-15'
3336
repo_hosting: github.com
3437
repo_hosting_domain: github.com
3538
repo_main_branch: master
3639
repo_name: python-lazy-object-proxy
3740
repo_username: ionelmc
38-
requiresio: yes
39-
scrutinizer: no
40-
setup_py_uses_setuptools_scm: yes
41-
setup_py_uses_test_runner: no
42-
sphinx_docs: yes
41+
requiresio: 'yes'
42+
scrutinizer: 'no'
43+
setup_py_uses_pytest_runner: 'no'
44+
setup_py_uses_setuptools_scm: 'yes'
45+
sphinx_docs: 'yes'
4346
sphinx_docs_hosting: https://python-lazy-object-proxy.readthedocs.io/
44-
sphinx_doctest: no
47+
sphinx_doctest: 'no'
4548
sphinx_theme: sphinx-py3doc-enhanced-theme
46-
test_matrix_configurator: no
47-
test_matrix_separate_coverage: yes
48-
test_runner: pytest
49-
travis: no
50-
travis_osx: no
51-
version: 1.6.0
49+
test_matrix_configurator: 'no'
50+
test_matrix_separate_coverage: 'yes'
51+
travis: 'no'
52+
travis_osx: 'no'
53+
version: 1.7.1
5254
version_manager: bump2version
5355
website: https://blog.ionelmc.ro
5456
year_from: '2014'
55-
year_to: '2021'
57+
year_to: '2022'

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,19 @@
55
exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.0.1
8+
rev: v4.3.0
99
hooks:
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
1212
- id: debug-statements
1313
- repo: https://github.com/timothycrosley/isort
14-
rev: 5.9.3
14+
rev: 5.10.1
1515
hooks:
1616
- id: isort
17+
- repo: https://github.com/psf/black
18+
rev: 22.10.0
19+
hooks:
20+
- id: black
1721
- repo: https://gitlab.com/pycqa/flake8
1822
rev: 3.9.2
1923
hooks:

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
BSD 2-Clause License
22

3-
Copyright (c) 2014-2019, Ionel Cristian Mărieș
4-
All rights reserved.
3+
Copyright (c) 2014-2022, Ionel Cristian Mărieș. All rights reserved.
54

65
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
76
following conditions are met:

ci/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def main():
5959
loader=jinja2.FileSystemLoader(templates_path),
6060
trim_blocks=True,
6161
lstrip_blocks=True,
62-
keep_trailing_newline=True
62+
keep_trailing_newline=True,
6363
)
6464

6565
tox_environments = [

ci/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
virtualenv>=20.4.7
1+
virtualenv>=16.6.0
22
pip>=19.1.1
33
setuptools>=18.0.1
44
six>=1.14.0
5+
tox

ci/templates/.github/workflows/github-actions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@ jobs:
5858
{% endfor %}
5959
{% endfor %}
6060
steps:
61-
- uses: docker/setup-qemu-action@v1
61+
- uses: docker/setup-qemu-action@v2
6262
if: matrix.cibw_arch == 'aarch64'
6363
with:
6464
platforms: arm64
65-
- uses: actions/checkout@v2
65+
- uses: actions/checkout@v3
6666
with:
6767
fetch-depth: 0
68-
- uses: actions/setup-python@v2
68+
- uses: actions/setup-python@v4
6969
with:
7070
python-version: {{ '${{ matrix.python }}' }}
7171
architecture: {{ '${{ matrix.python_arch }}' }}
7272
- name: install dependencies
7373
run: |
74-
python -mpip install --progress-bar=off twine tox cibuildwheel -r ci/requirements.txt
74+
python -mpip install --progress-bar=off cibuildwheel -r ci/requirements.txt
7575
virtualenv --version
7676
pip --version
7777
tox --version
@@ -109,7 +109,7 @@ jobs:
109109
if: matrix.cibw_build
110110
run: twine check wheelhouse/*.whl
111111
- name: upload wheel
112-
uses: actions/upload-artifact@v2
112+
uses: actions/upload-artifact@v3
113113
if: matrix.cibw_build
114114
with:
115115
path: wheelhouse/*.whl

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
source_suffix = '.rst'
2020
master_doc = 'index'
2121
project = 'lazy-object-proxy'
22-
year = '2014-2021'
22+
year = '2014-2022'
2323
author = 'Ionel Cristian Mărieș'
2424
copyright = '{0}, {1}'.format(year, author)
2525
try:
2626
from pkg_resources import get_distribution
27+
2728
version = release = get_distribution('lazy_object_proxy').version
2829
except Exception:
2930
traceback.print_exc()
@@ -35,10 +36,10 @@
3536
'issue': ('https://github.com/ionelmc/python-lazy-object-proxy/issues/%s', '#'),
3637
'pr': ('https://github.com/ionelmc/python-lazy-object-proxy/pull/%s', 'PR #'),
3738
}
38-
html_theme = "sphinx_py3doc_enhanced_theme"
39+
html_theme = 'sphinx_py3doc_enhanced_theme'
3940
html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path()]
4041
html_theme_options = {
41-
'githuburl': 'https://github.com/ionelmc/python-lazy-object-proxy/'
42+
'githuburl': 'https://github.com/ionelmc/python-lazy-object-proxy/',
4243
}
4344

4445
html_use_smartypants = True

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ Indices and tables
1818
* :ref:`genindex`
1919
* :ref:`modindex`
2020
* :ref:`search`
21-

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ requires = [
44
"wheel",
55
"setuptools_scm>=3.3.1",
66
]
7+
8+
[tool.black]
9+
line-length = 140
10+
target-version = ['py37']
11+
skip-string-normalization = true

pytest.ini

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[pytest]
2+
# If a pytest section is found in one of the possible config files
3+
# (pytest.ini, tox.ini or setup.cfg), then pytest will not look for any others,
4+
# so if you add a pytest config section elsewhere,
5+
# you will need to delete this section from setup.cfg.
6+
norecursedirs =
7+
.git
8+
.tox
9+
.env
10+
dist
11+
build
12+
migrations
13+
14+
python_files =
15+
test_*.py
16+
*_test.py
17+
tests.py
18+
markers =
19+
xfail_subclass: Expected test to fail with a subclass of Proxy.
20+
xfail_simple: Expected test to fail on the `simple` implementation.
21+
addopts =
22+
-ra
23+
--strict-markers
24+
--ignore=docs/conf.py
25+
--ignore=setup.py
26+
--ignore=ci
27+
--ignore=.eggs
28+
--doctest-modules
29+
--doctest-glob=\*.rst
30+
--tb=short
31+
testpaths =
32+
tests
33+
34+
# Idea from: https://til.simonwillison.net/pytest/treat-warnings-as-errors
35+
filterwarnings =
36+
error
37+
# You can add exclusions, some examples:
38+
# ignore:'lazy_object_proxy' defines default_app_config:PendingDeprecationWarning::
39+
# ignore:The {{% if:::
40+
# ignore:Coverage disabled via --no-cov switch!

0 commit comments

Comments
 (0)