Skip to content
Snippets Groups Projects
Commit f35269c3 authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Merge branch 'devel' into 'master'

0.11

See merge request 709/mentat/pydgets!5
parents fffb411e 1ddbdd81
No related branches found
No related tags found
1 merge request!50.11
Pipeline #1865 passed
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.6
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
......@@ -26,13 +26,50 @@ before_script:
stages: # List of stages for jobs, and their order of execution
- test
- check-warnings
- build
- deploy
unit-test-job:
stage: test
script:
- make test
- make test 2>&1 | tee errors.log
artifacts:
when: always
paths:
- errors.log
reports:
junit: nose2-junit.xml
unit-test-3.7-job:
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.7
stage: test
script:
- make test 2>&1 | tee errors-3.7.log
artifacts:
when: always
paths:
- errors-3.7.log
unit-test-3.8-job:
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.8
stage: test
script:
- make test 2>&1 | tee errors-3.8.log
artifacts:
when: always
paths:
- errors-3.8.log
unit-test-3.9-job:
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.9
stage: test
script:
- make test 2>&1 | tee errors-3.9.log
artifacts:
when: always
paths:
- errors-3.9.log
pylint-test-job:
stage: test
......@@ -44,6 +81,34 @@ pyflakes-test-job:
script:
- make pyflakes
check-deprecation-warnings:
before_script: []
stage: check-warnings
script:
- "if [[ $(grep DeprecationWarning errors.log) ]]; then cat errors.log; exit 1; fi"
allow_failure: true
check-deprecation-warnings-3.7:
before_script: []
stage: check-warnings
script:
- "if [[ $(grep DeprecationWarning errors-3.7.log) ]]; then cat errors-3.7.log; exit 1; fi"
allow_failure: true
check-deprecation-warnings-3.8:
before_script: []
stage: check-warnings
script:
- "if [[ $(grep DeprecationWarning errors-3.8.log) ]]; then cat errors-3.8.log; exit 1; fi"
allow_failure: true
check-deprecation-warnings-3.9:
before_script: []
stage: check-warnings
script:
- "if [[ $(grep DeprecationWarning errors-3.9.log) ]]; then cat errors-3.9.log; exit 1; fi"
allow_failure: true
build-job:
stage: build
script:
......
......@@ -120,7 +120,7 @@ pylint-test: FORCE
test: FORCE
@echo "\n${GREEN}*** Checking code with nosetests ***${NC}\n"
@$(NOSETESTS)
@$(PYTHON) -W always::DeprecationWarning -m nose2 --junit-xml
#-------------------------------------------------------------------------------
......
......@@ -17,3 +17,17 @@ Copyright
Copyright (C) since 2016 Jan Mach <honza.mach.ml@gmail.com>
Use of this package is governed by the MIT license, see LICENSE file.
Changelog
--------------------------------------------------------------------------------
Version 0.11
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Released 2022-06-27
- Added a config file for GitLab CI/CD.
- Updated the repository information.
- Updated packages versions.
[unittest]
plugins = nose2.plugins.junitxml
__version__ = "0.10"
__version__ = "0.11"
......@@ -1413,13 +1413,13 @@ if __name__ == "__main__":
argparser.add_argument('--group', help = 'pick a group of widgets', choices = widget_groups, default='all')
args = argparser.parse_args()
print("""
print(r"""
==============================================
_____ _ _
| __ \ | | | |
| |__) |_ _ __| | __ _ ___ | |_ ___
| ___/| | | | / _` | / _` | / _ \| __|/ __|
| | | |_| || (_| || (_| || __/| |_ \__ \\
| | | |_| || (_| || (_| || __/| |_ \__ \
|_| \__, | \__,_| \__, | \___| \__||___/
__/ | __/ |
|___/ |___/
......
......@@ -2,8 +2,8 @@ setuptools
wheel
twine
docutils<0.18
nose==1.3.7
pyflakes==2.1.0
pylint==2.2.2
sphinx==1.8.4
sphinx-rtd-theme==0.4.2
nose2
pyflakes
pylint
sphinx
sphinx-rtd-theme
......@@ -41,13 +41,16 @@ setup(
'Environment :: Console',
],
keywords = 'library console widgets',
url = 'https://github.com/honzamach/pydgets',
url = 'https://pypi.org/project/pydgets/',
project_urls={
'Documentation': 'https://709.gitlab-pages.cesnet.cz/mentat/pydgets/master/html/manual.html',
'Source': 'https://gitlab.cesnet.cz/709/mentat/pydgets',
'Tracker': 'https://gitlab.cesnet.cz/709/mentat/pydgets/-/issues'
},
author = 'Jan Mach',
author_email = 'email@jan-mach.cz',
license = 'MIT',
packages = ['pydgets'],
test_suite = 'nose.collector',
tests_require = ['nose'],
include_package_data = True,
zip_safe = False
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment