Skip to content

Commit 4fc7215

Browse files
committed
Update skel.
1 parent db3205d commit 4fc7215

19 files changed

+276
-478
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 6 deletions
This file was deleted.

.cookiecutterrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file exists so you can easily regenerate your project.
2+
#
3+
# Unfortunatelly cookiecutter can't use this right away so
4+
# you have to copy this file to ~/.cookiecutterrc
5+
6+
default_context:
7+
8+
c_extension_optional: 'yes'
9+
c_extension_support: 'yes'
10+
codecov: 'yes'
11+
command_line_interface: 'no'
12+
coveralls: 'yes'
13+
distribution_name: 'lazy-object-proxy'
14+
15+
full_name: 'Ionel Cristian Mărieș'
16+
github_username: 'ionelmc'
17+
landscape: 'yes'
18+
package_name: 'lazy_object_proxy'
19+
project_name: 'lazy-object-proxy'
20+
project_short_description: 'A fast and thorough lazy object proxy.'
21+
release_date: '2015-04-11'
22+
repo_name: 'python-lazy-object-proxy'
23+
scrutinizer: 'yes'
24+
sphinx_theme: 'sphinx-py3doc-enhanced-theme'
25+
test_matrix_configurator: 'yes'
26+
test_runner: 'pytest'
27+
version: '1.0.2'
28+
website: 'http://blog.ionelmc.ro'
29+
year: '2014-2015'

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ develop-eggs
1717
.installed.cfg
1818
lib
1919
lib64
20+
venv*/
21+
pyvenv*/
2022

2123
# Installer logs
2224
pip-log.txt
2325

2426
# Unit test / coverage reports
2527
.coverage
2628
.tox
27-
.coverage
2829
.coverage.*
2930
nosetests.xml
3031
htmlcov
@@ -37,6 +38,8 @@ htmlcov
3738
.project
3839
.pydevproject
3940
.idea
41+
*.iml
42+
*.komodoproject
4043

4144
# Complexity
4245
output/*.html
@@ -51,4 +54,7 @@ docs/_build
5154
.build
5255
.ve
5356
.env
57+
.cache
58+
.pytest
5459
.bootstrap
60+
*.bak

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ env:
66
LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
77
matrix:
88
- TOXENV=check
9-
- TOXENV=2.6,extension-coveralls,coveralls
9+
- TOXENV=2.6,extension-coveralls,coveralls,codecov
1010
- TOXENV=2.6-nocover
11-
- TOXENV=2.7,extension-coveralls,coveralls
11+
- TOXENV=2.7,extension-coveralls,coveralls,codecov
1212
- TOXENV=2.7-nocover
13-
- TOXENV=3.3,extension-coveralls,coveralls
13+
- TOXENV=3.3,extension-coveralls,coveralls,codecov
1414
- TOXENV=3.3-nocover
15-
- TOXENV=3.4,extension-coveralls,coveralls
15+
- TOXENV=3.4,extension-coveralls,coveralls,codecov
1616
- TOXENV=3.4-nocover
17-
- TOXENV=pypy,extension-coveralls,coveralls
17+
- TOXENV=pypy,extension-coveralls,coveralls,codecov
1818
- TOXENV=pypy-nocover
1919
before_install:
2020
- python --version

AUTHORS.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
Authors
33
=======
44

5-
* Graham Dumpleton - https://github.com/GrahamDumpleton
6-
* Ionel Cristian Mărieș - http://blog.ionelmc.ro
5+
* Ionel Cristian Mărieș - http://blog.ionelmc.ro

CHANGELOG.rst

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@ Changelog
33
=========
44

55
1.0.2 (2015-04-11)
6-
------------------
7-
8-
* Remove the bogus ``lazy_object_proxy`` console script (contributed by Tin Tvrtković in `#4 <https://github.com/ionelmc/python-lazy-object-proxy/pull/4>`_).
9-
10-
1.0.1 (2014-12-28)
11-
------------------
12-
13-
* Fix access via class bug in the ``__wrapped__`` property from ``lazy_object_proxy.simple.Proxy``.
14-
15-
1.0.0 (2014-12-27)
16-
------------------
17-
18-
* General code cleanup
19-
* A faster pure-python Proxy implementation (``lazy_object_proxy.simple.Proxy``) to be used where the C extension is not available. It's not
20-
a complete proxy so it's never available as ``lazy_object_proxy.Proxy``.
21-
22-
0.1.0 (2014-06-10)
23-
------------------
6+
-----------------------------------------
247

258
* First release on PyPI.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014, Ionel Cristian Mărieș
1+
Copyright (c) 2014-2015, Ionel Cristian Mărieș
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the

MANIFEST.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ graft src
44
graft ci
55
graft tests
66

7-
include *.komodoproject
87
include .bumpversion.cfg
98
include .coveragerc
9+
include .cookiecutterrc
1010
include .isort.cfg
1111
include .pylintrc
1212

@@ -16,7 +16,6 @@ include CONTRIBUTING.rst
1616
include LICENSE
1717
include README.rst
1818

19-
include bootstrap.py
2019
include tox.ini .travis.yml appveyor.yml
2120

22-
global-exclude *.py[co] __pycache__ *.so *.pyd
21+
global-exclude *.py[cod] __pycache__ *.so

README.rst

Lines changed: 27 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,66 @@
22
lazy-object-proxy
33
===============================
44

5-
| |docs| |travis| |appveyor| |coveralls| |landscape| |scrutinizer|
6-
| |version| |downloads| |wheel| |supported-versions| |supported-implementations|
5+
.. list-table::
6+
:stub-columns: 1
7+
8+
* - docs
9+
- |docs|
10+
* - tests
11+
- | |travis| |appveyor|
12+
| |coveralls| |codecov| |landscape| |scrutinizer|
13+
* - package
14+
- |version| |downloads|
15+
16+
..
17+
|wheel| |supported-versions| |supported-implementations|
718
819
.. |docs| image:: https://readthedocs.org/projects/python-lazy-object-proxy/badge/?style=flat
920
:target: https://readthedocs.org/projects/python-lazy-object-proxy
1021
:alt: Documentation Status
1122

12-
.. |travis| image:: http://img.shields.io/travis/ionelmc/python-lazy-object-proxy/master.png?style=flat
23+
.. |travis| image:: http://img.shields.io/travis/ionelmc/python-lazy-object-proxy/master.svg?style=flat&label=Travis
1324
:alt: Travis-CI Build Status
1425
:target: https://travis-ci.org/ionelmc/python-lazy-object-proxy
1526

16-
.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/ionelmc/python-lazy-object-proxy?branch=master
27+
.. |appveyor| image:: https://img.shields.io/appveyor/ci/ionelmc/python-lazy-object-proxy/master.svg?style=flat&label=AppVeyor
1728
:alt: AppVeyor Build Status
1829
:target: https://ci.appveyor.com/project/ionelmc/python-lazy-object-proxy
1930

20-
.. |coveralls| image:: http://img.shields.io/coveralls/ionelmc/python-lazy-object-proxy/master.png?style=flat
31+
.. |coveralls| image:: http://img.shields.io/coveralls/ionelmc/python-lazy-object-proxy/master.svg?style=flat&label=Coveralls
2132
:alt: Coverage Status
2233
:target: https://coveralls.io/r/ionelmc/python-lazy-object-proxy
2334

35+
.. |codecov| image:: http://img.shields.io/codecov/c/github/ionelmc/python-lazy-object-proxy/master.svg?style=flat&label=Codecov
36+
:alt: Coverage Status
37+
:target: https://codecov.io/github/ionelmc/python-lazy-object-proxy
38+
2439
.. |landscape| image:: https://landscape.io/github/ionelmc/python-lazy-object-proxy/master/landscape.svg?style=flat
2540
:target: https://landscape.io/github/ionelmc/python-lazy-object-proxy/master
2641
:alt: Code Quality Status
2742

28-
.. |version| image:: http://img.shields.io/pypi/v/lazy-object-proxy.png?style=flat
43+
.. |version| image:: http://img.shields.io/pypi/v/lazy-object-proxy.svg?style=flat
2944
:alt: PyPI Package latest release
3045
:target: https://pypi.python.org/pypi/lazy-object-proxy
3146

32-
.. |downloads| image:: http://img.shields.io/pypi/dm/lazy-object-proxy.png?style=flat
47+
.. |downloads| image:: http://img.shields.io/pypi/dm/lazy-object-proxy.svg?style=flat
3348
:alt: PyPI Package monthly downloads
3449
:target: https://pypi.python.org/pypi/lazy-object-proxy
3550

36-
.. |wheel| image:: https://pypip.in/wheel/lazy-object-proxy/badge.png?style=flat
51+
.. |wheel| image:: https://pypip.in/wheel/lazy-object-proxy/badge.svg?style=flat
3752
:alt: PyPI Wheel
3853
:target: https://pypi.python.org/pypi/lazy-object-proxy
3954

40-
.. |supported-versions| image:: https://pypip.in/py_versions/lazy-object-proxy/badge.png?style=flat
55+
.. |supported-versions| image:: https://pypip.in/py_versions/lazy-object-proxy/badge.svg?style=flat
4156
:alt: Supported versions
4257
:target: https://pypi.python.org/pypi/lazy-object-proxy
4358

44-
.. |supported-implementations| image:: https://pypip.in/implementation/lazy-object-proxy/badge.png?style=flat
59+
.. |supported-implementations| image:: https://pypip.in/implementation/lazy-object-proxy/badge.svg?style=flat
4560
:alt: Supported imlementations
4661
:target: https://pypi.python.org/pypi/lazy-object-proxy
4762

48-
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/g/ionelmc/python-lazy-object-proxy/master.png?style=flat
49-
:alt: Scrtinizer Status
63+
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/g/ionelmc/python-lazy-object-proxy/master.svg?style=flat
64+
:alt: Scrutinizer Status
5065
:target: https://scrutinizer-ci.com/g/ionelmc/python-lazy-object-proxy/
5166

5267
A fast and thorough lazy object proxy.
@@ -71,55 +86,3 @@ Development
7186
To run the all tests run::
7287

7388
tox
74-
75-
Benchmarks
76-
==========
77-
78-
The tested implementations:
79-
80-
* ``lazy_object_proxy.slots.Proxy``, available as ``lazy_object_proxy.Proxy`` if the C extension is not available.
81-
* ``lazy_object_proxy.cext.Proxy``, available as ``lazy_object_proxy.Proxy``.
82-
* `objproxies <https://pypi.python.org/pypi/objproxies>`_ - fork of PJE's `ProxyTypes <https://pypi.python.org/pypi/ProxyTypes>`_ with Python 3 support. [1]_
83-
* `SimpleLazyObject <https://github.com/django/django/blob/stable/1.7.x/django/utils/functional.py#L337>`_ from Django. [1]_
84-
* ``lazy_object_proxy.simple.Proxy`` - uses the non-data descriptor `trick <http://blog.ionelmc.ro/2014/11/04/an-interesting-python-descriptor-quirk/>`_. [1]_
85-
86-
For Python 2.7::
87-
88-
------ benchmark: min 5 rounds (of min 25.00us), 5.00s max time, timer: time.clock -----
89-
Name (time in ns) Min Max Mean StdDev Rounds Iterations
90-
----------------------------------------------------------------------------------------
91-
test_perf[slots] 705.3837 3091.0072 720.4805 27.2588 180453 38
92-
test_perf[cext] 93.6346 278.9731 95.1876 2.5474 164373 312
93-
test_perf[simple] 398.1636 1863.2017 405.4325 13.1411 207521 59
94-
test_perf[django] 471.6515 983.0809 480.4264 10.2059 193043 53
95-
test_perf[objproxies] 1204.7003 4818.8010 1475.3419 114.8213 55898 1
96-
----------------------------------------------------------------------------------------
97-
98-
For Python 3.4::
99-
100-
-- benchmark: min 5 rounds (of min 25.00us), 5.00s max time, timer: time.perf_counter --
101-
Name (time in ns) Min Max Mean StdDev Rounds Iterations
102-
----------------------------------------------------------------------------------------
103-
test_perf[slots] 803.1335 2728.8286 826.0882 20.5562 182436 33
104-
test_perf[cext] 103.2911 254.4223 104.6869 2.6294 164373 277
105-
test_perf[simple] 448.6894 2040.6147 462.0342 17.1546 218443 49
106-
test_perf[django] 518.3013 1225.7125 532.0523 14.4672 218443 43
107-
test_perf[objproxies] 1116.8575 3827.4331 1157.8419 43.9602 174755 24
108-
----------------------------------------------------------------------------------------
109-
110-
For PyPy 2.4:
111-
112-
Note that the mean difference between ``simple``, ``django`` and ``objproxies`` is smaller the standard deviance, thus it cannot be considered.
113-
114-
::
115-
116-
------ benchmark: min 5 rounds (of min 25.00us), 15.00s max time, timer: time.clock ----
117-
Name (time in ns) Min Max Mean StdDev Rounds Iterations
118-
----------------------------------------------------------------------------------------
119-
test_perf[slots] 1.9577 260.2979 2.2457 0.4882 498050 15384
120-
test_perf[simple] 31.3536 4374.4246 34.7433 11.7566 478894 999
121-
test_perf[django] 32.5269 4443.8381 35.8729 16.9071 461157 1000
122-
test_perf[objproxies] 33.1293 4529.3718 36.7435 13.3377 452773 1000
123-
----------------------------------------------------------------------------------------
124-
125-
.. [1] Lacks support for certain more tricky operations like ``vars(obj)`` and other operators.

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '{build}'
1+
version: '{branch}-{build}'
22
build: off
33
environment:
44
global:
@@ -94,3 +94,4 @@ after_test:
9494
- "IF \"%TOXENV:~-8,8%\" == \"-nocover\" %WITH_COMPILER% %TOXPYTHON% setup.py bdist_wheel"
9595
artifacts:
9696
- path: dist\*
97+

0 commit comments

Comments
 (0)