csspin-python 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- csspin_python/aws_auth.py +195 -0
- csspin_python/aws_auth_schema.yaml +38 -0
- csspin_python/behave.py +150 -0
- csspin_python/behave_schema.yaml +39 -0
- csspin_python/debugpy.py +32 -0
- csspin_python/debugpy_schema.yaml +14 -0
- csspin_python/devpi.py +82 -0
- csspin_python/devpi_schema.yaml +17 -0
- csspin_python/playwright.py +126 -0
- csspin_python/playwright_schema.yaml +33 -0
- csspin_python/pytest.py +97 -0
- csspin_python/pytest_schema.yaml +27 -0
- csspin_python/python.py +970 -0
- csspin_python/python_schema.yaml +131 -0
- csspin_python/radon.py +59 -0
- csspin_python/radon_schema.yaml +17 -0
- csspin_python-2.0.0.dist-info/METADATA +109 -0
- csspin_python-2.0.0.dist-info/RECORD +21 -0
- csspin_python-2.0.0.dist-info/WHEEL +5 -0
- csspin_python-2.0.0.dist-info/licenses/LICENSE +176 -0
- csspin_python-2.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# -*- mode: yaml; coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Schema for the python plugin for spin
|
|
4
|
+
|
|
5
|
+
python:
|
|
6
|
+
properties:
|
|
7
|
+
pyenv:
|
|
8
|
+
type: object
|
|
9
|
+
help: |
|
|
10
|
+
Configuration related to pyenv is used for provisioning the
|
|
11
|
+
Python interpreter
|
|
12
|
+
properties:
|
|
13
|
+
url:
|
|
14
|
+
type: str
|
|
15
|
+
help: URL to install pyenv from
|
|
16
|
+
path:
|
|
17
|
+
type: path
|
|
18
|
+
help: Path to cache the pyenv sources
|
|
19
|
+
cache:
|
|
20
|
+
type: path
|
|
21
|
+
help: Path to cache the Python sources downloaded by pyenv
|
|
22
|
+
python_build:
|
|
23
|
+
type: path
|
|
24
|
+
help: Path to the python-build builtin plugin of pyenv
|
|
25
|
+
user_pyenv:
|
|
26
|
+
type: bool
|
|
27
|
+
help: |
|
|
28
|
+
If ``False`` install pyenv from sources, otherwise use the pyenv
|
|
29
|
+
from PATH
|
|
30
|
+
nuget:
|
|
31
|
+
type: object
|
|
32
|
+
help: |
|
|
33
|
+
Configuration related to the Python provision on Windows using
|
|
34
|
+
nuget
|
|
35
|
+
properties:
|
|
36
|
+
url:
|
|
37
|
+
type: str
|
|
38
|
+
help: URL to install nuget from
|
|
39
|
+
exe:
|
|
40
|
+
type: path
|
|
41
|
+
help: Path to nuget executable
|
|
42
|
+
source:
|
|
43
|
+
type: str
|
|
44
|
+
help: Index to use for nuget sources
|
|
45
|
+
version:
|
|
46
|
+
type: str
|
|
47
|
+
help: |
|
|
48
|
+
The Python version to use for the whole project when using in
|
|
49
|
+
the context of spin
|
|
50
|
+
use:
|
|
51
|
+
type: str
|
|
52
|
+
help: |
|
|
53
|
+
The use property can be used to specify an alternative Python
|
|
54
|
+
source to use. This is useful to rather use the system Python
|
|
55
|
+
than the one defined in spinfile.yaml
|
|
56
|
+
default: ''
|
|
57
|
+
inst_dir:
|
|
58
|
+
type: path
|
|
59
|
+
help: Path to the installation directory of Python.
|
|
60
|
+
interpreter:
|
|
61
|
+
type: path
|
|
62
|
+
help: The path to the Python interpreter of the instance to use.
|
|
63
|
+
venv:
|
|
64
|
+
type: path
|
|
65
|
+
help: |
|
|
66
|
+
Path to the virtual environment which is used exclusively for
|
|
67
|
+
the project spin is running on
|
|
68
|
+
memo:
|
|
69
|
+
type: path
|
|
70
|
+
help: Path to the memoizer used to list installed packages
|
|
71
|
+
bindir:
|
|
72
|
+
type: path
|
|
73
|
+
help: |
|
|
74
|
+
Path of the virtual environment's binary directory on Linux;
|
|
75
|
+
equals "{python.venv}" on Windows
|
|
76
|
+
scriptdir:
|
|
77
|
+
type: path
|
|
78
|
+
help: |
|
|
79
|
+
Directory containing the executables of the Python virtual
|
|
80
|
+
environment
|
|
81
|
+
python:
|
|
82
|
+
type: path
|
|
83
|
+
help: |
|
|
84
|
+
The python property defines the path to the Python interpreter
|
|
85
|
+
to use.
|
|
86
|
+
pipconf:
|
|
87
|
+
type: str
|
|
88
|
+
help: |
|
|
89
|
+
Content of the pip.conf/pip.ini configuration file that will be
|
|
90
|
+
written into the environment.
|
|
91
|
+
# The provisioner type is evaluated during runtime and to complex to
|
|
92
|
+
# represent it in the schema.
|
|
93
|
+
# provisioner:
|
|
94
|
+
# type:
|
|
95
|
+
# help:
|
|
96
|
+
site_packages:
|
|
97
|
+
type: path internal
|
|
98
|
+
help: The path to the virtual environments site-packages directory.
|
|
99
|
+
devpackages:
|
|
100
|
+
type: list
|
|
101
|
+
help: A list of packages that will be editable installed
|
|
102
|
+
requirements:
|
|
103
|
+
type: list
|
|
104
|
+
help: |
|
|
105
|
+
The list of this project's external Python requirements, that
|
|
106
|
+
have to be installed into the project's virtual environment.
|
|
107
|
+
This excludes requirements stated as 'install_requires' in
|
|
108
|
+
setup.py/setup.cfg.
|
|
109
|
+
current_package:
|
|
110
|
+
type: object
|
|
111
|
+
help: Install configuration of the current python project
|
|
112
|
+
properties:
|
|
113
|
+
install:
|
|
114
|
+
type: bool
|
|
115
|
+
help: |
|
|
116
|
+
Property to determine whether the current package should
|
|
117
|
+
get installed or not.
|
|
118
|
+
extras:
|
|
119
|
+
type: list
|
|
120
|
+
help: The extras of the current package to install.
|
|
121
|
+
index_url:
|
|
122
|
+
type: str
|
|
123
|
+
help: |
|
|
124
|
+
The index url from where packages should get installed into the
|
|
125
|
+
venv. This value will also be put into cfg.python.pipconf, if
|
|
126
|
+
not already mentioned there.
|
|
127
|
+
build_wheels:
|
|
128
|
+
type: list
|
|
129
|
+
help: |
|
|
130
|
+
A list of packages that will be built along with the current
|
|
131
|
+
project when executing python:wheel.
|
csspin_python/radon.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# -*- mode: python; coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2020 CONTACT Software GmbH
|
|
4
|
+
# https://www.contact-software.com/
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
|
|
18
|
+
"""Module implementing the radon plugin for spin"""
|
|
19
|
+
|
|
20
|
+
import logging
|
|
21
|
+
|
|
22
|
+
from csspin import config, info, option, sh, task
|
|
23
|
+
|
|
24
|
+
defaults = config(
|
|
25
|
+
exe="radon",
|
|
26
|
+
opts=["-n", "{radon.mi_threshold}"],
|
|
27
|
+
mi_threshold="B",
|
|
28
|
+
requires=config(
|
|
29
|
+
spin=[
|
|
30
|
+
"csspin_python.python",
|
|
31
|
+
],
|
|
32
|
+
python=["radon"],
|
|
33
|
+
),
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@task()
|
|
38
|
+
def radon(
|
|
39
|
+
cfg,
|
|
40
|
+
allsource: option(
|
|
41
|
+
"--all", # noqa: F821
|
|
42
|
+
"allsource", # noqa: F821
|
|
43
|
+
is_flag=True,
|
|
44
|
+
help="Run for all src- and test-files.", # noqa: F722,F821
|
|
45
|
+
),
|
|
46
|
+
args,
|
|
47
|
+
):
|
|
48
|
+
"""Run radon to measure code complexity."""
|
|
49
|
+
if allsource:
|
|
50
|
+
files = ("{spin.project_root}/src", "{spin.project_root}/tests")
|
|
51
|
+
else:
|
|
52
|
+
files = args
|
|
53
|
+
if not files and hasattr(cfg, "vcs") and hasattr(cfg.vcs, "modified"):
|
|
54
|
+
info("Found modified files.")
|
|
55
|
+
files = cfg.vcs.modified
|
|
56
|
+
files = [f for f in files if f.endswith(".py")]
|
|
57
|
+
if files:
|
|
58
|
+
logging.debug(f"radon: Modified files: {files}")
|
|
59
|
+
sh("{radon.exe}", "mi", *cfg.radon.opts, *files)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# -*- mode: yaml; coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Schema for the radon plugin for spin
|
|
4
|
+
|
|
5
|
+
radon:
|
|
6
|
+
type: object
|
|
7
|
+
help: Configuration of the radon plugin for spin
|
|
8
|
+
properties:
|
|
9
|
+
exe:
|
|
10
|
+
type: path
|
|
11
|
+
help: Path to the executable radon file.
|
|
12
|
+
mi_threshold:
|
|
13
|
+
type: str
|
|
14
|
+
help: |
|
|
15
|
+
The maintainability threshold can be either A, B or C, where A
|
|
16
|
+
is the best and C the worst. Radon will fail if any file's
|
|
17
|
+
maintainability score is below the defined threshold.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: csspin_python
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: Plugin-package for csspin providing Python related plugins
|
|
5
|
+
Author-email: CONTACT Software GmbH <info@contact-software.com>
|
|
6
|
+
Maintainer-email: Waleri Enns <waleri.enns@contact-software.com>, Benjamin Thomas Schwertfeger <benjaminthomas.schwertfeger@contact-software.com>, Fabian Hafer <fabian.hafer@contact-software.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://contact-software.com
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Software Development
|
|
20
|
+
Requires-Python: >=3.9
|
|
21
|
+
Description-Content-Type: text/x-rst
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: virtualenv
|
|
24
|
+
Provides-Extra: aws-auth
|
|
25
|
+
Requires-Dist: boto3; extra == "aws-auth"
|
|
26
|
+
Requires-Dist: requests; extra == "aws-auth"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
|Latest Version| |Python| |License|
|
|
30
|
+
|
|
31
|
+
`csspin_python` is maintained and published by `CONTACT Software GmbH`_ and
|
|
32
|
+
serves Python-based plugins for the `csspin`_ task runner.
|
|
33
|
+
|
|
34
|
+
The following plugins are available:
|
|
35
|
+
|
|
36
|
+
- `csspin_python.aws_auth`: A plugin for authenticating to CONTACT Elements
|
|
37
|
+
instances hosted on AWS.
|
|
38
|
+
- `csspin_python.behave`: A plugin for running tests using Behave.
|
|
39
|
+
- `csspin_python.debugpy`: A plugin for debugging Python code using `debugpy`_.
|
|
40
|
+
- `csspin_python.devpi`: A plugin for simplified usage of `devpi`_.
|
|
41
|
+
- `csspin_python.playwright`: A plugin for running tests using `playwright`_.
|
|
42
|
+
- `csspin_python.pytest`: A plugin for running tests using pytest.
|
|
43
|
+
- `csspin_python.python`: A plugin for provisioning Python environments and
|
|
44
|
+
installing dependencies.
|
|
45
|
+
- `csspin_python.radon`: A plugin for running `radon`_ to analyze code
|
|
46
|
+
complexity.
|
|
47
|
+
- `csspin_python.sphinx`: A plugin for building Sphinx documentation.
|
|
48
|
+
|
|
49
|
+
Prerequisites
|
|
50
|
+
-------------
|
|
51
|
+
|
|
52
|
+
`csspin` is available on PyPI and can be installed using pip, pipx or any other
|
|
53
|
+
Python package manager, e.g.:
|
|
54
|
+
|
|
55
|
+
.. code-block:: console
|
|
56
|
+
|
|
57
|
+
python -m pip install csspin
|
|
58
|
+
|
|
59
|
+
Using csspin_python
|
|
60
|
+
-------------------
|
|
61
|
+
|
|
62
|
+
The `csspin_python` package and its plugins can be installed by defining those
|
|
63
|
+
within the `spinfile.yaml` configuration file of your project.
|
|
64
|
+
|
|
65
|
+
.. code-block:: yaml
|
|
66
|
+
|
|
67
|
+
spin:
|
|
68
|
+
project_name: my_project
|
|
69
|
+
|
|
70
|
+
# To develop plugins comfortably, install the packages editable as
|
|
71
|
+
# follows and add the relevant plugins to the list 'plugins' below
|
|
72
|
+
plugin_packages:
|
|
73
|
+
- csspin_python
|
|
74
|
+
|
|
75
|
+
# The list of plugins to be used for this project.
|
|
76
|
+
plugins:
|
|
77
|
+
- csspin_python.pytest
|
|
78
|
+
|
|
79
|
+
python:
|
|
80
|
+
version: 3.9.8
|
|
81
|
+
requirements:
|
|
82
|
+
- sphinx-click
|
|
83
|
+
- sphinx-rtd-theme
|
|
84
|
+
- pytest-mock
|
|
85
|
+
|
|
86
|
+
pytest:
|
|
87
|
+
opts: [-m, "not slow"]
|
|
88
|
+
tests: [tests]
|
|
89
|
+
|
|
90
|
+
If the ``spinfile.yaml`` is configured correctly, you can provision the project
|
|
91
|
+
using ``spin provision``, that will automatically create a Python virtual
|
|
92
|
+
environment and install the required dependencies. After that, you can run
|
|
93
|
+
tests using ``spin pytest`` and do other great things.
|
|
94
|
+
|
|
95
|
+
.. _`CONTACT Software GmbH`: https://contact-software.com
|
|
96
|
+
.. |Python| image:: https://img.shields.io/pypi/pyversions/csspin_python.svg?style=flat
|
|
97
|
+
:target: https://pypi.python.org/pypi/csspin_python/
|
|
98
|
+
:alt: Supported Python Versions
|
|
99
|
+
.. |Latest Version| image:: http://img.shields.io/pypi/v/csspin_python.svg?style=flat
|
|
100
|
+
:target: https://pypi.python.org/pypi/csspin/
|
|
101
|
+
:alt: Latest Package Version
|
|
102
|
+
.. |License| image:: http://img.shields.io/pypi/l/csspin_python.svg?style=flat
|
|
103
|
+
:target: https://www.apache.org/licenses/LICENSE-2.0.txt
|
|
104
|
+
:alt: License
|
|
105
|
+
.. _`csspin`: https://pypi.org/project/csspin
|
|
106
|
+
.. _`debugpy`: https://pypi.org/project/debugpy
|
|
107
|
+
.. _`devpi`: https://pypi.org/project/devpi
|
|
108
|
+
.. _`playwright`: https://pypi.org/project/pytest-playwright
|
|
109
|
+
.. _`radon`: https://pypi.org/project/radon
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
csspin_python/aws_auth.py,sha256=cQXz2AWW-TM-KAv8ZpXOSntTRRzvRL21f2NwMpOf3PA,7232
|
|
2
|
+
csspin_python/aws_auth_schema.yaml,sha256=GgLhnwn4savhmLUcfL2eVPyNhWkiKA5tKz6y1tU1C6w,1353
|
|
3
|
+
csspin_python/behave.py,sha256=iA5t-vwMDhmWoo-FHaeZ6JyIzj6k4r2WLyYa2AjXyp4,4815
|
|
4
|
+
csspin_python/behave_schema.yaml,sha256=8qoOCK-uTmwgRRW29urgK0X_kgn0zO0X34v89bvii2w,1241
|
|
5
|
+
csspin_python/debugpy.py,sha256=v0ZZopv5TNoSaFf2kiePsw9OmhBpjfOBFh0u71jTcnQ,962
|
|
6
|
+
csspin_python/debugpy_schema.yaml,sha256=BeH30nSirDYctkdhS9xMXUG5htj3PED_ZjmxPG5WRUc,364
|
|
7
|
+
csspin_python/devpi.py,sha256=2NhGYzq4aVzDa_d80uItUlYM9cA0uRFQ4rvnCryxL2k,2213
|
|
8
|
+
csspin_python/devpi_schema.yaml,sha256=2gPATWjVcfvCTrGZX2FK6wH8hh9KS0XzZ35JvZeJGEU,487
|
|
9
|
+
csspin_python/playwright.py,sha256=nYuPjuTfGx_6QPYsUpr-eAZARyXX_hZF8D4AxeI2u1s,4003
|
|
10
|
+
csspin_python/playwright_schema.yaml,sha256=WFMok7dB7G6L8f8y_2_RKHjGe4ww1iUUS4tqCoUI1FE,1054
|
|
11
|
+
csspin_python/pytest.py,sha256=EwxPynyPWS72NTtIah1jUGVa7fJYY8I2_NQz0y0U7Os,2978
|
|
12
|
+
csspin_python/pytest_schema.yaml,sha256=1bF8hNsJfV-LHUwGBBJ3GnQOZJiIQkG81DCBma2MalU,809
|
|
13
|
+
csspin_python/python.py,sha256=lWFSBeeqq3wM_DkR_zv3v9QlagXSZ-UMALhzxoAVXlY,30553
|
|
14
|
+
csspin_python/python_schema.yaml,sha256=lhqZmepoGdWlBd27Bu3ErUDNtMLPM9oQ_fh71cdc4a8,4823
|
|
15
|
+
csspin_python/radon.py,sha256=OSV0vTz7SMMHC82jUvWsBq6vtWolOjdiZ2bBdxplVJ4,1744
|
|
16
|
+
csspin_python/radon_schema.yaml,sha256=rlRzXw5z4XbjOVznRiUxWGP4E9hx1Jm-gGw1iQiYzE0,548
|
|
17
|
+
csspin_python-2.0.0.dist-info/licenses/LICENSE,sha256=4MAecetnRTQw5DlHtiikDSzKWO1xVLwzM5_DsPMYlnE,10172
|
|
18
|
+
csspin_python-2.0.0.dist-info/METADATA,sha256=7I3BD1CdoU9z-1q4qvec-XFeB7UL_q1GLAe3-meg1so,4184
|
|
19
|
+
csspin_python-2.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
csspin_python-2.0.0.dist-info/top_level.txt,sha256=QSeglMEGbFu1z4L6MCQYwo01NgL0KojWvC4rzgMQ8gU,14
|
|
21
|
+
csspin_python-2.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
csspin_python
|