commit bc3aa1e0a655a989ede699230334c56206e2e9c5 Author: Miro Hrončok Date: Wed Jul 17 13:54:09 2019 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c30c24 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +__pycache__/ +/build/ +/dist/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4b11e25 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright 2019 tox-current-env contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..1aba38f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..c59636f --- /dev/null +++ b/README.rst @@ -0,0 +1,4 @@ +tox-current-env +=============== + +... TODO ... diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3927041 --- /dev/null +++ b/setup.py @@ -0,0 +1,35 @@ +from setuptools import setup, find_packages + + +def long_description(): + with open("README.rst", encoding="utf-8") as f: + return f.read() + + +setup( + name="tox-current-env", + description="Use current environment instead of virtualenv for tox testenvs", + long_description=long_description(), + author="Miro Hrončok", + author_email="miro@hroncok.cz", + url="https://github.com/fedora-python/tox-current-env", + license="MIT", + version="0.0.1dev1", + package_dir={"": "src"}, + packages=find_packages("src"), + entry_points={"tox": ["current-env = tox_current_env.hooks"]}, + install_requires=["tox>=3.8.1"], + python_requires=">=3.6", + classifiers=[ + "Development Status :: 3 - Alpha", + "Framework :: tox", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Software Development :: Testing", + ], +) diff --git a/src/tox_current_env/__init__.py b/src/tox_current_env/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/tox_current_env/hooks.py b/src/tox_current_env/hooks.py new file mode 100644 index 0000000..3d625ce --- /dev/null +++ b/src/tox_current_env/hooks.py @@ -0,0 +1,6 @@ +import tox + + +@tox.hookimpl +def tox_testenv_create(venv, action): + ...