Add rough setup for utility.
This commit is contained in:
parent
a31653e9c3
commit
16140bca3a
|
@ -11,3 +11,7 @@ installable.
|
||||||
|
|
||||||
`check-package` will create a virtual environment, attempt to install the
|
`check-package` will create a virtual environment, attempt to install the
|
||||||
target package, and run post-install tests if applicable.
|
target package, and run post-install tests if applicable.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
You can run tests using `pytest`.
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
from invoke import Collection, Program
|
||||||
|
from . import tasks, __version__
|
||||||
|
|
||||||
|
program = Program(namespace=Collection.from_module(tasks), version=__version__)
|
|
@ -0,0 +1,11 @@
|
||||||
|
import tempfile
|
||||||
|
|
||||||
|
from invoke import task, run
|
||||||
|
|
||||||
|
|
||||||
|
@task()
|
||||||
|
def setup_virtualenvs(ctx):
|
||||||
|
temp_dir = tempfile.mkdtemp()
|
||||||
|
run('virtualenv {}'.format(temp_dir))
|
||||||
|
run('./{}/bin/activate'.format(temp_dir))
|
||||||
|
run('pip install -e .')
|
|
@ -37,12 +37,6 @@ platform = "UNKNOWN"
|
||||||
python-versions = "*"
|
python-versions = "*"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
|
|
||||||
[package.dependencies]
|
|
||||||
|
|
||||||
[package.dependencies.ordereddict]
|
|
||||||
python = "<2.7"
|
|
||||||
version = "*"
|
|
||||||
|
|
||||||
[package.requirements]
|
[package.requirements]
|
||||||
python = "<3.0"
|
python = "<3.0"
|
||||||
|
|
||||||
|
@ -53,7 +47,7 @@ name = "invoke"
|
||||||
optional = false
|
optional = false
|
||||||
platform = "*"
|
platform = "*"
|
||||||
python-versions = "*"
|
python-versions = "*"
|
||||||
version = "1.0.0"
|
version = "1.1.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
category = "dev"
|
category = "dev"
|
||||||
|
@ -67,18 +61,6 @@ version = "4.2.0"
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
six = ">=1.0.0,<2.0.0"
|
six = ">=1.0.0,<2.0.0"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
category = "dev"
|
|
||||||
description = "A drop-in substitute for Py2.7's new collections.OrderedDict that works in Python 2.4-2.6."
|
|
||||||
name = "ordereddict"
|
|
||||||
optional = false
|
|
||||||
platform = "UNKNOWN"
|
|
||||||
python-versions = "*"
|
|
||||||
version = "1.1"
|
|
||||||
|
|
||||||
[package.requirements]
|
|
||||||
python = "<2.7"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
category = "dev"
|
category = "dev"
|
||||||
description = "plugin and hook calling mechanisms for python"
|
description = "plugin and hook calling mechanisms for python"
|
||||||
|
@ -142,18 +124,17 @@ python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*"
|
||||||
version = "16.0.0"
|
version = "16.0.0"
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
content-hash = "fdb01e47e3aef68021b2a5d9e2208455350d25110365d88f0e187afba3e56a28"
|
content-hash = "470f5e2dd15643cbda744c73973981dec16643a489be1f1d052e6a0436a31799"
|
||||||
platform = "*"
|
platform = "*"
|
||||||
python-versions = "*"
|
python-versions = "~2.7 || ^3.3"
|
||||||
|
|
||||||
[metadata.hashes]
|
[metadata.hashes]
|
||||||
atomicwrites = ["240831ea22da9ab882b551b31d4225591e5e447a68c5e188db5b89ca1d487585", "a24da68318b08ac9c9c45029f4a10371ab5b20e4226738e150e6e7c571630ae6"]
|
atomicwrites = ["240831ea22da9ab882b551b31d4225591e5e447a68c5e188db5b89ca1d487585", "a24da68318b08ac9c9c45029f4a10371ab5b20e4226738e150e6e7c571630ae6"]
|
||||||
attrs = ["4b90b09eeeb9b88c35bc642cbac057e45a5fd85367b985bd2809c62b7b939265", "e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b"]
|
attrs = ["4b90b09eeeb9b88c35bc642cbac057e45a5fd85367b985bd2809c62b7b939265", "e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b"]
|
||||||
colorama = ["463f8483208e921368c9f306094eb6f725c6ca42b0f97e313cb5d5512459feda", "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1"]
|
colorama = ["463f8483208e921368c9f306094eb6f725c6ca42b0f97e313cb5d5512459feda", "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1"]
|
||||||
funcsigs = ["330cc27ccbf7f1e992e69fef78261dc7c6569012cf397db8d3de0234e6c937ca", "a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50"]
|
funcsigs = ["330cc27ccbf7f1e992e69fef78261dc7c6569012cf397db8d3de0234e6c937ca", "a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50"]
|
||||||
invoke = ["21274204515dca62206470b088bbcf9d41ffda82b3715b90e01d71b7a4681921", "4a4cc031db311cbfb3fdd8ec93a06c892533c27b931f4be14b24c97cd042b14e", "621b6564f992c37166e16090d7e7cccb3b922e03a58e980dfa5e543a931b652f"]
|
invoke = ["1db6cf918e5df10efe4d61101b19763abe1510b6b2fe8c553daba25476de8044", "265eead8c89805a2ac5083200842db6da7636ac63fb4fe0d1121b930770f3e2a", "3e8e2c2e69493227e210a1d19ccc7c44189240385dda4c9b8eb5d98fa0f68a3e"]
|
||||||
more-itertools = ["2b6b9893337bfd9166bee6a62c2b0c9fe7735dcf85948b387ec8cba30e85d8e8", "6703844a52d3588f951883005efcf555e49566a48afd4db4e965d69b883980d3", "a18d870ef2ffca2b8463c0070ad17b5978056f403fb64e3f15fe62a52db21cc0"]
|
more-itertools = ["2b6b9893337bfd9166bee6a62c2b0c9fe7735dcf85948b387ec8cba30e85d8e8", "6703844a52d3588f951883005efcf555e49566a48afd4db4e965d69b883980d3", "a18d870ef2ffca2b8463c0070ad17b5978056f403fb64e3f15fe62a52db21cc0"]
|
||||||
ordereddict = ["1c35b4ac206cef2d24816c89f89cf289dd3d38cf7c449bb3fab7bf6d43f01b1f"]
|
|
||||||
pluggy = ["7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff", "d345c8fe681115900d6da8d048ba67c25df42973bda370783cd58826442dcd7c", "e160a7fcf25762bb60efc7e171d4497ff1d8d2d75a3d0df7a21b76821ecbf5c5"]
|
pluggy = ["7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff", "d345c8fe681115900d6da8d048ba67c25df42973bda370783cd58826442dcd7c", "e160a7fcf25762bb60efc7e171d4497ff1d8d2d75a3d0df7a21b76821ecbf5c5"]
|
||||||
py = ["3fd59af7435864e1a243790d322d763925431213b6b8529c6ca71081ace3bbf7", "e31fb2767eb657cbde86c454f02e99cb846d3cd9d61b318525140214fdc0e98e"]
|
py = ["3fd59af7435864e1a243790d322d763925431213b6b8529c6ca71081ace3bbf7", "e31fb2767eb657cbde86c454f02e99cb846d3cd9d61b318525140214fdc0e98e"]
|
||||||
pytest = ["0453c8676c2bee6feb0434748b068d5510273a916295fd61d306c4f22fbfd752", "4b208614ae6d98195430ad6bde03641c78553acee7c83cec2e85d613c0cd383d"]
|
pytest = ["0453c8676c2bee6feb0434748b068d5510273a916295fd61d306c4f22fbfd752", "4b208614ae6d98195430ad6bde03641c78553acee7c83cec2e85d613c0cd383d"]
|
||||||
|
|
|
@ -1,13 +1,19 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "check-package"
|
name = "check-package"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = ""
|
description = "A utility for verifying if your Python package is installable."
|
||||||
authors = ["Dorian Pula <dorian.pula@points.com>"]
|
authors = ["Dorian Pula <dorian.pula@amber-penguin-software.ca>"]
|
||||||
|
license = "BSD-3-Clause"
|
||||||
|
repository = "https://bitbucket.org/dorianpula/check-package"
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
|
python = "~2.7 || ^3.3"
|
||||||
invoke = "^1.0"
|
invoke = "^1.0"
|
||||||
virtualenv = "^16.0"
|
virtualenv = "^16.0"
|
||||||
pip = "^10.0"
|
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
pytest = "^3.0"
|
pytest = "^3.0"
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
check-package = 'check_package.main:program'
|
||||||
|
|
Loading…
Reference in New Issue