Skip to content

Commit 2bcf97a

Browse files
committed
Update skel.
1 parent 1526b63 commit 2bcf97a

File tree

15 files changed

+105
-78
lines changed

15 files changed

+105
-78
lines changed

.cookiecutterrc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cookiecutter:
44
_extensions:
55
- jinja2_time.TimeExtension
66
_template: /home/ionel/open-source/cookiecutter-pylibrary
7+
allow_tests_inside_package: no
78
appveyor: yes
89
c_extension_function: '-'
910
c_extension_module: '-'
@@ -26,25 +27,30 @@ cookiecutter:
2627
license: BSD 2-Clause License
2728
linter: flake8
2829
package_name: lazy_object_proxy
30+
pre_commit: yes
2931
project_name: lazy-object-proxy
3032
project_short_description: A fast and thorough lazy object proxy.
31-
release_date: '2019-05-10'
32-
repo_hosting: github
33+
pypi_badge: yes
34+
pypi_disable_upload: no
35+
release_date: '2020-06-05'
36+
repo_hosting: github.com
37+
repo_hosting_domain: github.com
3338
repo_name: python-lazy-object-proxy
3439
repo_username: ionelmc
3540
requiresio: yes
3641
scrutinizer: no
3742
setup_py_uses_setuptools_scm: yes
3843
setup_py_uses_test_runner: no
3944
sphinx_docs: yes
45+
sphinx_docs_hosting: https://python-lazy-object-proxy.readthedocs.io/
4046
sphinx_doctest: no
4147
sphinx_theme: sphinx-py3doc-enhanced-theme
4248
test_matrix_configurator: no
4349
test_matrix_separate_coverage: yes
4450
test_runner: pytest
4551
travis: yes
4652
travis_osx: yes
47-
version: 1.4.1
53+
version: 1.5.0
4854
website: https://blog.ionelmc.ro
4955
year_from: '2014'
50-
year_to: '2019'
56+
year_to: '2020'

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ charset = utf-8
1111

1212
[*.{bat,cmd,ps1}]
1313
end_of_line = crlf
14+
15+
[*.{yml,yaml}]
16+
indent_size = 2

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To install the git pre-commit hook run:
2+
# pre-commit install
3+
# To update the pre-commit hooks run:
4+
# pre-commit install-hooks
5+
exclude: '^(.tox|ci/templates|.bumpversion.cfg)(/|$)'
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: master
9+
hooks:
10+
- id: trailing-whitespace
11+
- id: end-of-file-fixer
12+
- id: debug-statements
13+
- repo: https://github.com/timothycrosley/isort
14+
rev: master
15+
hooks:
16+
- id: isort
17+
- repo: https://gitlab.com/pycqa/flake8
18+
rev: master
19+
hooks:
20+
- id: flake8

.readthedocs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2+
version: 2
3+
sphinx:
4+
configuration: docs/conf.py
5+
formats: all
6+
python:
7+
install:
8+
- requirements: docs/requirements.txt
9+
- method: pip
10+
path: .

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To set up `python-lazy-object-proxy` for local development:
4141
(look for the "Fork" button).
4242
2. Clone your fork locally::
4343

44-
git clone [email protected]:ionelmc/python-lazy-object-proxy.git
44+
git clone [email protected]:YOURGITHUBNAME/python-lazy-object-proxy.git
4545

4646
3. Create a branch for local development::
4747

README.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,14 @@ Overview
3535
:alt: Coverage Status
3636
:target: https://coveralls.io/r/ionelmc/python-lazy-object-proxy
3737

38-
.. |codecov| image:: https://codecov.io/github/ionelmc/python-lazy-object-proxy/coverage.svg?branch=master
38+
.. |codecov| image:: https://codecov.io/gh/ionelmc/python-lazy-object-proxy/branch/master/graphs/badge.svg?branch=master
3939
:alt: Coverage Status
4040
:target: https://codecov.io/github/ionelmc/python-lazy-object-proxy
4141

4242
.. |version| image:: https://img.shields.io/pypi/v/lazy-object-proxy.svg
4343
:alt: PyPI Package latest release
4444
:target: https://pypi.org/project/lazy-object-proxy
4545

46-
.. |commits-since| image:: https://img.shields.io/github.amrom.workers.devmits-since/ionelmc/python-lazy-object-proxy/v1.5.0.svg
47-
:alt: Commits since latest release
48-
:target: https://github.com/ionelmc/python-lazy-object-proxy/compare/v1.5.0...master
49-
5046
.. |wheel| image:: https://img.shields.io/pypi/wheel/lazy-object-proxy.svg
5147
:alt: PyPI Wheel
5248
:target: https://pypi.org/project/lazy-object-proxy
@@ -59,6 +55,11 @@ Overview
5955
:alt: Supported implementations
6056
:target: https://pypi.org/project/lazy-object-proxy
6157

58+
.. |commits-since| image:: https://img.shields.io/github.amrom.workers.devmits-since/ionelmc/python-lazy-object-proxy/v1.5.0.svg
59+
:alt: Commits since latest release
60+
:target: https://github.com/ionelmc/python-lazy-object-proxy/compare/v1.5.0...master
61+
62+
6263

6364
.. end-badges
6465

ci/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def exec_in_env():
4747
print("+ exec", python_executable, __file__, "--no-env")
4848
os.execv(python_executable, [python_executable, __file__, "--no-env"])
4949

50+
5051
def main():
5152
import jinja2
5253

@@ -87,4 +88,3 @@ def main():
8788
else:
8889
print("Unexpected arguments {0}".format(args), file=sys.stderr)
8990
sys.exit(1)
90-

ci/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
virtualenv>=16.6.0
22
pip>=19.1.1
33
setuptools>=18.0.1
4+
six>=1.12.0

ci/templates/.appveyor.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,30 @@ environment:
1313
PYTHON_ARCH: '32'
1414
{% for env in tox_environments %}
1515
{% if env.startswith(('py2', 'py3')) %}
16-
- TOXENV: {{ env }}{% if env.endswith('-cover') %},codecov,coveralls{% endif %}
17-
16+
- TOXENV: {{ env }}{% if env.endswith('-cover') %},codecov,coveralls{% endif %}{{ "" }}
1817
TOXPYTHON: C:\Python{{ env[2:4] }}\python.exe
1918
PYTHON_HOME: C:\Python{{ env[2:4] }}
2019
PYTHON_VERSION: '{{ env[2] }}.{{ env[3] }}'
2120
PYTHON_ARCH: '32'
2221
{% if 'nocov' in env %}
2322
WHEEL_PATH: .tox/dist
2423
{% endif %}
25-
- TOXENV: {{ env }}{% if env.endswith('-cover') %},codecov,coveralls{% endif %}
26-
24+
- TOXENV: {{ env }}{% if env.endswith('-cover') %},codecov,coveralls{% endif %}{{ "" }}
2725
TOXPYTHON: C:\Python{{ env[2:4] }}-x64\python.exe
2826
PYTHON_HOME: C:\Python{{ env[2:4] }}-x64
2927
PYTHON_VERSION: '{{ env[2] }}.{{ env[3] }}'
3028
PYTHON_ARCH: '64'
3129
{% if 'nocov' in env %}
3230
WHEEL_PATH: .tox/dist
3331
{% endif %}
34-
{% if env.startswith(('py2', 'py34')) %}
35-
WINDOWS_SDK_VERSION: v7.{{ '1' if env.startswith('py3') else '0' }}
32+
{% if env.startswith('py2') %}
33+
WINDOWS_SDK_VERSION: v7.0
3634
{% endif %}
3735
{% endif %}{% endfor %}
3836
init:
3937
- ps: echo $env:TOXENV
4038
- ps: ls C:\Python*
4139
install:
42-
- ps: |
43-
Set-PSDebug -Trace 1
44-
if ($Env:TOXENV.StartsWith("py38")) {
45-
if ($Env:PYTHON_ARCH -eq "64") {
46-
iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON_HOME"
47-
} else {
48-
iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON_HOME --x86"
49-
}
50-
}
5140
- '%PYTHON_HOME%\python -mpip install --progress-bar=off twine tox-wheel -rci/requirements.txt'
5241
- '%PYTHON_HOME%\Scripts\virtualenv --version'
5342
- '%PYTHON_HOME%\Scripts\easy_install --version'

ci/templates/.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ dist: xenial
33
cache: false
44
env:
55
global:
6+
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
67
- SEGFAULT_SIGNALS=all
8+
- LANG=en_US.UTF-8
79
- TWINE_USERNAME=ionel
810
matrix:
911
include:
@@ -14,8 +16,9 @@ matrix:
1416
env:
1517
- TOXENV=docs
1618
{%- for env in tox_environments %}{{ '' }}
17-
{%- if 'py37' in env or 'py27' in env %}{{ '' }}
19+
{%- if 'py38' in env or 'py27' in env %}{{ '' }}
1820
- os: osx
21+
osx_image: xcode11
1922
language: generic
2023
env:
2124
- TOXENV={{ env }}
@@ -89,8 +92,8 @@ script:
8992
fi
9093
)
9194
after_failure:
92-
- travis_wait 15 more .tox/log/* | cat
93-
- travis_wait 15 more .tox/*/log/* | cat
95+
- more .tox/log/* | cat
96+
- more .tox/*/log/* | cat
9497
notifications:
9598
email:
9699
on_success: never

0 commit comments

Comments
 (0)