quickpub 2.0.0__tar.gz → 2.0.1__tar.gz
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.
- {quickpub-2.0.0/quickpub.egg-info → quickpub-2.0.1}/PKG-INFO +1 -1
- {quickpub-2.0.0 → quickpub-2.0.1}/pyproject.toml +2 -2
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/qa.py +2 -7
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/build_schemas/setuptools_build_schema.py +1 -2
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/constraint_enforcers/pypirc_enforcer.py +1 -1
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/python_providers/conda_python_provider.py +2 -3
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/upload_targets/pypirc_upload_target.py +3 -3
- {quickpub-2.0.0 → quickpub-2.0.1/quickpub.egg-info}/PKG-INFO +1 -1
- quickpub-2.0.1/quickpub.egg-info/requires.txt +2 -0
- quickpub-2.0.0/quickpub.egg-info/requires.txt +0 -2
- {quickpub-2.0.0 → quickpub-2.0.1}/LICENSE +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/MANIFEST.in +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/README.md +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/__main__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/classifiers.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/enforcers.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/files.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/functions.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/proxy.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/py.typed +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/build_schema.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/constraint_enforcer.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/build_schemas/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/constraint_enforcers/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/constraint_enforcers/license_enforcer.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/constraint_enforcers/local_version_enforcer.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/constraint_enforcers/pypi_remote_version_enforcer.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/constraint_enforcers/readme_enforcer.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/python_providers/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/python_providers/default_python_provider.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/quality_assurance_runners/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/quality_assurance_runners/mypy_qa_runner.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/quality_assurance_runners/pylint_qa_runner.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/quality_assurance_runners/pytest_qa_runner.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/quality_assurance_runners/unittest_qa_runner.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/upload_targets/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/upload_targets/github_upload_target.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/python_provider.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/quality_assurance_runner.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/quickpub_strategy.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/upload_target.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/structures/__init__.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/structures/bound.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/structures/dependency.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/structures/version.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub/validators.py +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub.egg-info/SOURCES.txt +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub.egg-info/dependency_links.txt +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/quickpub.egg-info/top_level.txt +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/setup.cfg +0 -0
- {quickpub-2.0.0 → quickpub-2.0.1}/setup.py +0 -0
|
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "quickpub"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.1"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name = "danielnachumdev", email = "danielnachumdev@gmail.com" },
|
|
10
10
|
]
|
|
11
|
-
dependencies = ['danielutils>=0.9.
|
|
11
|
+
dependencies = ['danielutils>=0.9.94', 'requests']
|
|
12
12
|
keywords = []
|
|
13
13
|
license = { "file" = "./LICENSE" }
|
|
14
14
|
description = "A python package to quickly configure and publish a new package"
|
|
@@ -42,7 +42,7 @@ def global_import_sanity_check(package_name: str, executor: LayeredCommand, is_s
|
|
|
42
42
|
p = sys.executable if is_system_interpreter else "python"
|
|
43
43
|
file_name = "./__sanity_check_main.py"
|
|
44
44
|
with TemporaryFile(file_name) as f:
|
|
45
|
-
f.
|
|
45
|
+
f.writelines([f"from {package_name} import *"])
|
|
46
46
|
code, _, _ = executor(f"{p} {file_name}")
|
|
47
47
|
exit_if(code != 0,
|
|
48
48
|
f"Env '{env_name}' failed sanity check. "
|
|
@@ -133,12 +133,7 @@ def qa(
|
|
|
133
133
|
is_system_interpreter = isinstance(python_provider, DefaultPythonProvider)
|
|
134
134
|
pool = create_progress_bar_pool(python_provider, quality_assurance_strategies)
|
|
135
135
|
pool_err = create_pool_print_error(pool)
|
|
136
|
-
with
|
|
137
|
-
AttrContext(LayeredCommand, 'class_flush_stdout', False),
|
|
138
|
-
AttrContext(LayeredCommand, 'class_flush_stderr', False),
|
|
139
|
-
AttrContext(LayeredCommand, 'class_raise_on_fail', False),
|
|
140
|
-
base := LayeredCommand()
|
|
141
|
-
):
|
|
136
|
+
with LayeredCommand() as base:
|
|
142
137
|
for env_name, executor in pool[0]:
|
|
143
138
|
pool[0].desc = f"Env '{env_name}'"
|
|
144
139
|
pool[0].update(0, refresh=True)
|
|
@@ -15,8 +15,7 @@ class SetuptoolsBuildSchema(BuildSchema):
|
|
|
15
15
|
raise self.EXCEPTION_TYPE(f"Could not find {self._setup_file_path} file")
|
|
16
16
|
if verbose:
|
|
17
17
|
info("Creating new distribution...")
|
|
18
|
-
with LayeredCommand(
|
|
19
|
-
instance_raise_on_fail=False) as exc:
|
|
18
|
+
with LayeredCommand() as exc:
|
|
20
19
|
ret, stdout, stderr = exc("python " + self._setup_file_path + " sdist")
|
|
21
20
|
if ret != 0:
|
|
22
21
|
raise self.EXCEPTION_TYPE(stderr)
|
|
@@ -7,7 +7,7 @@ from ...constraint_enforcer import ConstraintEnforcer
|
|
|
7
7
|
|
|
8
8
|
class PypircEnforcer(ConstraintEnforcer):
|
|
9
9
|
PYPIRC_REGEX: re.Pattern = re.compile(
|
|
10
|
-
r"\[distutils\]\nindex-servers =\n
|
|
10
|
+
r"\[distutils\]\nindex-servers =\n\s*pypi\n\s*testpypi\n\n\[pypi\]\n\s*username = __token__\n\s*password = .+\n\n\[testpypi\]\n\s*username = __token__\n\s*password = .+\n?") # pylint: disable=line-too-long
|
|
11
11
|
|
|
12
12
|
def __init__(self, path: str = "./.pypirc", should_enforce_expected_format: bool = True) -> None:
|
|
13
13
|
self.path = path
|
|
@@ -14,7 +14,7 @@ class CondaPythonProvider(PythonProvider):
|
|
|
14
14
|
|
|
15
15
|
@classmethod
|
|
16
16
|
def _get_available_envs_impl(cls) -> Set[str]:
|
|
17
|
-
with LayeredCommand(
|
|
17
|
+
with LayeredCommand() as base:
|
|
18
18
|
code, out, err = base("conda env list")
|
|
19
19
|
return set([line.split(' ')[0] for line in out[2:] if len(line.split(' ')) > 1])
|
|
20
20
|
|
|
@@ -24,8 +24,7 @@ class CondaPythonProvider(PythonProvider):
|
|
|
24
24
|
if name not in available_envs:
|
|
25
25
|
warning(f"Couldn't find env '{name}'")
|
|
26
26
|
continue
|
|
27
|
-
yield name, LayeredCommand(f"conda activate {name}"
|
|
28
|
-
instance_flush_stderr=False)
|
|
27
|
+
yield name, LayeredCommand(f"conda activate {name}")
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
__all__ = [
|
|
@@ -2,14 +2,14 @@ import re
|
|
|
2
2
|
|
|
3
3
|
from danielutils import file_exists, info
|
|
4
4
|
|
|
5
|
+
from ..constraint_enforcers import PypircEnforcer
|
|
5
6
|
from ...upload_target import UploadTarget
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
class PypircUploadTarget(UploadTarget):
|
|
9
|
-
REGEX_PATTERN: re.Pattern =
|
|
10
|
-
r"\[distutils\]\nindex-servers =\n pypi\n testpypi\n\n\[pypi\]\n username = __token__\n password = .+\n\n\[testpypi\]\n username = __token__\n password = .+\n?")
|
|
10
|
+
REGEX_PATTERN: re.Pattern = PypircEnforcer.PYPIRC_REGEX
|
|
11
11
|
|
|
12
|
-
def upload(self, name: str, version: str, **kwargs) -> None:
|
|
12
|
+
def upload(self, name: str, version: str, **kwargs) -> None: # type: ignore
|
|
13
13
|
from quickpub.proxy import cm
|
|
14
14
|
from quickpub.enforcers import exit_if
|
|
15
15
|
self._validate_file_exists()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/build_schemas/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/python_providers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{quickpub-2.0.0 → quickpub-2.0.1}/quickpub/strategies/implementations/upload_targets/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|