-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from CarliJoy/staging
Update to a new version 0.5
- Loading branch information
Showing
60 changed files
with
1,747 additions
and
883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[run] | ||
branch = True | ||
source = django-pint | ||
|
||
[paths] | ||
source = | ||
src/ | ||
*/site-packages/ | ||
|
||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
|
||
# Don't complain about missing debug-only code: | ||
def __repr__ | ||
if self\.debug | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
raise AssertionError | ||
raise NotImplementedError | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
if 0: | ||
if __name__ == .__main__.: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,52 @@ | ||
/venv | ||
# Temporary and binary files | ||
*~ | ||
*.py[cod] | ||
*.so | ||
*.pyc | ||
*.cfg | ||
!.isort.cfg | ||
!setup.cfg | ||
*.orig | ||
*.log | ||
*.pot | ||
__pycache__/* | ||
.cache/* | ||
.*.swp | ||
*/.ipynb_checkpoints/* | ||
.DS_Store | ||
|
||
# Project files | ||
.ropeproject | ||
.project | ||
.pydevproject | ||
.settings | ||
.idea | ||
tags | ||
|
||
# Package files | ||
*.egg | ||
*.eggs/ | ||
.installed.cfg | ||
*.egg-info | ||
|
||
# Unittest and coverage | ||
htmlcov/* | ||
.coverage | ||
.tox | ||
junit.xml | ||
coverage.xml | ||
.pytest_cache/ | ||
|
||
# Build and docs folder/files | ||
build/* | ||
dist/* | ||
.coverage | ||
__pycache__ | ||
sdist/* | ||
docs/README.rst | ||
docs/api/* | ||
docs/_rst/* | ||
docs/_build/* | ||
cover/* | ||
MANIFEST | ||
|
||
# Per-project virtualenvs | ||
.venv*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[settings] | ||
profile=black | ||
skip=.tox,.venv*,build,dist | ||
known_standard_library=setuptools,pkg_resources | ||
known_test=pytest | ||
known_django=django | ||
known_first_party=django_pint | ||
known_pandas=pandas,numpy | ||
sections=FUTURE,STDLIB,TEST,DJANGO,THIRDPARTY,PANDAS,FIRSTPARTY,LOCALFOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
exclude: '^docs/conf.py' | ||
|
||
repos: | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer | ||
- id: mixed-line-ending | ||
args: ['--fix=auto'] | ||
|
||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.6.4 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
args: ['--max-line-length=88'] # default of Black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: true | ||
|
||
python: | ||
version: 3.8 | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,62 @@ | ||
os: linux | ||
arch: arm64-graviton2 | ||
virt: lxd | ||
dist: focal | ||
group: edge | ||
language: python | ||
sudo: false | ||
cache: pip | ||
cache: | ||
- directories: | ||
- $HOME/.cache/pre-commit | ||
- $TRAVIS_BUILD_DIR/.eggs | ||
- pip | ||
|
||
env: | ||
- DJANGO='https://github.com/django/django/archive/master.tar.gz' | ||
- DJANGO='django>=1.10.0,<1.11.0' | ||
- DJANGO='django>=1.9.0,<1.10.0' | ||
- DJANGO='django>=1.8.0,<1.9.0' | ||
stages: | ||
- lint | ||
- test | ||
- deploy | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "nightly" | ||
# Taken from https://github.com/encode/django-rest-framework/blob/master/.travis.yml | ||
# But do not check the most up to date version as it seem to be in compatible with django_nose | ||
jobs: | ||
fast_finish: true | ||
include: | ||
- stage: lint | ||
python: "3.9" | ||
install: travis_retry pip install pre-commit | ||
script: pre-commit run --all-files | ||
env: DJANGO="none" | ||
|
||
script: | ||
coverage run runtests.py | ||
- { stage: test, python: "3.6", env: DJANGO=2.2 } | ||
- { stage: test, python: "3.6", env: DJANGO=3.0 } | ||
- { stage: test, python: "3.6", env: DJANGO=3.1 } | ||
|
||
- { stage: test, python: "3.7", env: DJANGO=2.2 } | ||
- { stage: test, python: "3.7", env: DJANGO=3.0 } | ||
- { stage: test, python: "3.7", env: DJANGO=3.1 } | ||
|
||
- { stage: test, python: "3.8", env: DJANGO=2.2 } | ||
- { stage: test, python: "3.8", env: DJANGO=3.0 } | ||
- { stage: test, python: "3.8", env: DJANGO=3.1 } | ||
|
||
- { stage: test, python: "3.9", env: DJANGO=3.1 } | ||
- { stage: deploy, python: "3.9", env: STAGE="release", script: skip, install: skip } | ||
|
||
|
||
install: | ||
- travis_retry pip install $DJANGO | ||
- travis_retry pip install coveralls | ||
- travis_retry pip install -r test_requirements.txt | ||
- travis_retry pip install tox tox-travis | ||
|
||
script: tox | ||
|
||
after_success: | ||
- coveralls | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
deploy: | ||
provider: pypi | ||
username: __token__ | ||
server: https://upload.pypi.org/legacy/ | ||
distributions: sdist bdist_wheel | ||
password: | ||
secure: OwJd2Ikzg/cBbeW0eekMV8aXT/6aOOyf7qi1ow+PvOOTGHzNM3XXvwcwD2TRywBvCEtpBBnGkEnEB8aGEHeF8dITGIVQjTzH0fjPB7ax/3zvg6ok/kY45tv9DpP8cAVxotSXpdgNZ8eHHf4HetWCjAI9tjSxamsC+RyRcINmbpvxrNYRzPLp/5uL5JOPADI98X7zSGRbLKPMSef/hRVeYUyw5TtkzL87/quKlPr2TNl240OQWB/FMxufGie+aLVMpz3eRtZYk5xf8LGxCWb/XPR2J9dmk1DGZSJkoaBUqSveq4NhT8VDL4s4Rl3vTLrPa+rm66crOiqeKgDFP6cXCG2uQpPD4rNtd5fTeGL7ZEdCMHFDqGoFpcHUuZDHprOVXVQ2x0BUI54KR4ntzascxuW5a1jyU5FkKzaUNB+gUW33IyStV0Lalq2Nnm8ASy6JqKJlr3Kj4VX/1QMx1KrwYRM3B9geW2x9DqHaijF75d7ln4zLgiUT6mDy+LeY21M4cUs6nbjzH+XqUG2JFDGhW/SmpSIXE7rEZIYRmUkwcr8jaNI8SRZPSmiE3kSY9C+VRPtR/b/W5m7zMGckSUKscP2tUQEPr5r8Qx+m6yorlgKToNJJ5eAIFnYEuLdA+O8nOSk9hBGSlCZxWicpkd/0qns69MMqPR913MQhslh41jg= | ||
on: | ||
tags: true | ||
condition: $STAGE =~ ^(release)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
============ | ||
Contributors | ||
============ | ||
|
||
* Ben Harling <blrharling@gmail.com> (Original Author and Maintainer 2016-2020) | ||
* Carli* Freudenberg <carli.freudenberg@posteo.de> | ||
* Robert Roskam <raiderrobert@gmail.com> | ||
* Cornel Vaideanu <cornel.vaideanu@gmail.com> | ||
* Alex Bhandari <alexbhandari@gmail.com> | ||
* Jonas Haag <jonas@lophus.org> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
========= | ||
Changelog | ||
========= | ||
|
||
Version 0.5 | ||
=========== | ||
- Change of Maintainer to `Carli* Freudenberg`_ | ||
- Ported code to work with current version of Django (2.2., 3.0, 3.2) and Python (3.6 - 3.9) | ||
- added test for merge requests | ||
- use `black`_ to format code | ||
- using pytest instead of deprecated django-nose | ||
- Allow custom ureg and integer unit field (`merge request #11 from jonashaag`_) | ||
- pass base_unit from field to widget (`merge request #5 from cornelv`_) | ||
- now using PyScaffold for versioned release | ||
- added documentation and uploaded to readthedocs.org | ||
- using pre-commit (also in CI) | ||
- improved travis ci builds | ||
- Created Changelog file | ||
|
||
Version 0.4 | ||
=========== | ||
|
||
- Last release of Maintainer `Ben Harling`_ | ||
|
||
|
||
.. _Ben Harling: https://github.com/bharling | ||
.. _Carli* Freudenberg: https://github.com/CarliJoy | ||
.. _merge request #11 from jonashaag: https://github.com/CarliJoy/django-pint/pull/11 | ||
.. _merge request #5 from cornelv: https://github.com/CarliJoy/django-pint/pull/5 | ||
.. _black: https://github.com/psf/black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include *.md LICENSE | ||
include *.md LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.