Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 test fails #294

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7cfe37a
Make `cached_property` derive from `property`
Nov 23, 2018
63d91a2
Extract magic attributes from `cached_property.func` when needed
Nov 23, 2018
b30a434
Add self (@althonos) to AUTHORS.rst
Nov 23, 2018
5b2d0cc
Use `functools.wraps` to extract attributes from wrapped function
Nov 23, 2018
47e20fe
Run `black` on `cached_property.py`
Nov 23, 2018
f63dc50
Implement `__set_name__` on `cached_property` objects
Nov 23, 2018
b97832a
Fix `cached_property` sharing cache for all objects
Nov 23, 2018
e577950
Add @VadimPushtaev to AUTHORS.rst
Nov 23, 2018
2c2e11d
Fix `update_wrapper` failing on missing attributes in Py2
Nov 23, 2018
c2b6182
Add test to make sure the property cache is freed as expected
Nov 23, 2018
2fd46da
Use `len` to check cache emptiness in `tests.test_cached_property`
Nov 23, 2018
55763c1
Skip `test_garbage_collection` in implementations other than CPython
Nov 23, 2018
84f2515
Rename to `property-cached` to release fork
althonos Jul 20, 2019
3ff44f1
Start reorganizing code
althonos Jul 20, 2019
c59cbeb
Generate new `.gitignore` file using `gitignore.io`
althonos Jul 20, 2019
c02be3a
Move test requirements file to `tests` folder
althonos Jul 20, 2019
ed6e285
Update reference to `property-cached` in documentation
althonos Jul 20, 2019
e261a67
Use `setup.cfg` for build configuration instead of `setup.py`
althonos Jul 22, 2019
142d962
Switch to `green` to run tests in Travis-CI
althonos Jul 22, 2019
65cc8df
Setup deployment from Travis-CI using `twine`
althonos Jul 22, 2019
45cecff
Release v1.6.0
althonos Jul 22, 2019
59f99d8
Release v1.6.1
althonos Jul 22, 2019
df4616f
Revert metadata to original author and add self as maintainer
althonos Jul 22, 2019
385d6b9
Release v1.6.2
althonos Jul 22, 2019
c2648e1
Merge branch 'master' of github:pydanny/cached-property into fork
althonos Sep 7, 2019
4909376
Release v1.6.3
althonos Sep 7, 2019
95ba597
Bump green from 2.16.1 to 3.0.0 (#5)
dependabot-preview[bot] Oct 5, 2019
525ddf9
Bump wheel from 0.32.0 to 0.33.6 (#4)
dependabot-preview[bot] Oct 5, 2019
e7ffba9
Drop Python 3.4 and 2.7 explicit support
althonos Jan 8, 2020
108d189
Remove Python 2 support (#25)
Seanny123 Mar 6, 2020
9707421
Release v1.6.4
althonos Mar 6, 2020
19b5409
Bump coverage from 4.4.2 to 5.1 (#27)
dependabot-preview[bot] Apr 13, 2020
2663fde
Bump wheel from 0.33.6 to 0.34.2 (#23)
dependabot-preview[bot] Apr 14, 2020
f2b6e5e
Upgrade to GitHub-native Dependabot (#61)
dependabot-preview[bot] Jun 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: twine
versions:
- 3.3.0
- 3.4.0
- dependency-name: coverage
versions:
- "5.4"
142 changes: 110 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,131 @@

# Created by https://www.gitignore.io/api/python
# Edit at https://www.gitignore.io/?templates=python

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
lib
lib64
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.tox
nosetests.xml
htmlcov
.coverage.*
.cache
.pytest_cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Rope project settings
.ropeproject

# Complexity
output/*.html
output/*/index.html
# mkdocs documentation
/site

# Sphinx
docs/_build
# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# IntelliJ IDEA
/.idea/
/out/
*.iml
# Pyre type checker
.pyre/

# Local virtualenv directories
/venv*/
# End of https://www.gitignore.io/api/python
67 changes: 39 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,48 @@
# Config file for automatic testing at travis-ci.org
sudo: false
dist: xenial
language: python

env:
global:
- CC_TEST_REPORTER_ID=56a0691204179e8edcdde4c7ecab73b3693706aa1186ed018ca78acc663520cf
git:
depth: false

before_script: # code coverage tool
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
matrix:
include:
- python: pypy3.5
env: TESTS=tests.test_cached_property
- python: 3.5
env: TESTS=tests.test_cached_property
- python: 3.6
env: TESTS=tests
- python: 3.7
env: TESTS=tests

before_script:
- pip install -r tests/requirements.txt

install:
- pip install .

# command to run tests and save coverage
script:
- py.test --cov cached_property

after_script:
- coverage report -m
- coverage xml
- ./cc-test-reporter format-coverage --input-type coverage.py --debug
- ./cc-test-reporter upload-coverage --debug
python:
- "3.6"
- "3.5"
- "3.4"
- "2.7"
- "pypy"
- green $TESTS

matrix:
include:
- python: 3.7
dist: xenial
sudo: true
after_success:
- python -m coverage xml
- bash <(curl -s https://codecov.io/bash)

before_deploy:
- python setup.py sdist bdist_wheel
- twine check dist/*

deploy:
provider: script
on:
python: 3.7
tags: true
repo: althonos/property-cached
skip_cleanup: true
script: twine upload --skip-existing dist/*

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt
notifications:
email:
- althonosdev@gmail.com
8 changes: 8 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Development Lead
* Daniel Roy Greenfeld (@pydanny)
* Audrey Roy Greenfeld (@audreyr)

Maintainer
----------

* Martin Larralde (@althonos)

Contributors
------------

Expand All @@ -18,4 +23,7 @@ Contributors
* Ionel Cristian Mărieș (@ionelmc)
* Malyshev Artem (@proofit404)
* Volker Braun (@vbraun)
* Vadim Pushtaev (@VadimPushtaev)
* Martin Larralde (@althonos)
* Qudus Oladipo (@stikks)
* Sean Aubin (@seanny123)
28 changes: 28 additions & 0 deletions HISTORY.rst → CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
History
-------

1.6.4 (2020-03-06)
++++++++++++++++++

* Fix some remaining Python 2 support code (`#25 <https://github.com/althonos/property-cached/pull/25>`_)

1.6.3 (2019-09-07)
++++++++++++++++++

* Resolve `cached_property` docstring not showing (`#171 <https://github.com/pydanny/cached-property/pull/171>`_).

1.6.2 (2019-07-22)
++++++++++++++++++

* Fix metadata to keep original author and add @althonos as maintainer

1.6.1 (2019-07-22)
++++++++++++++++++

* Fix unneeded dependencies being present in ``setup.cfg``

1.6.0 (2019-07-22)
++++++++++++++++++

* Fixed class hierarchy, ``cached_property`` now inherits from ``property``
* Add support for slotted classes and stop using the object ``__dict__``
* Improve function wrapping using ``functools.update_wrapper``
* Implement the ``__set_name__`` magic method available since Python 3.6

1.5.1 (2018-08-05)
++++++++++++++++++

Expand Down
Loading