quickpub 2.0.0__tar.gz → 2.0.2__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.
Files changed (54) hide show
  1. {quickpub-2.0.0/quickpub.egg-info → quickpub-2.0.2}/PKG-INFO +1 -1
  2. {quickpub-2.0.0 → quickpub-2.0.2}/pyproject.toml +2 -2
  3. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/qa.py +2 -7
  4. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/build_schemas/setuptools_build_schema.py +1 -2
  5. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/constraint_enforcers/pypi_remote_version_enforcer.py +1 -1
  6. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/constraint_enforcers/pypirc_enforcer.py +1 -1
  7. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/python_providers/conda_python_provider.py +2 -3
  8. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/upload_targets/pypirc_upload_target.py +3 -3
  9. {quickpub-2.0.0 → quickpub-2.0.2/quickpub.egg-info}/PKG-INFO +1 -1
  10. quickpub-2.0.2/quickpub.egg-info/requires.txt +2 -0
  11. quickpub-2.0.0/quickpub.egg-info/requires.txt +0 -2
  12. {quickpub-2.0.0 → quickpub-2.0.2}/LICENSE +0 -0
  13. {quickpub-2.0.0 → quickpub-2.0.2}/MANIFEST.in +0 -0
  14. {quickpub-2.0.0 → quickpub-2.0.2}/README.md +0 -0
  15. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/__init__.py +0 -0
  16. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/__main__.py +0 -0
  17. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/classifiers.py +0 -0
  18. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/enforcers.py +0 -0
  19. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/files.py +0 -0
  20. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/functions.py +0 -0
  21. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/proxy.py +0 -0
  22. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/py.typed +0 -0
  23. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/__init__.py +0 -0
  24. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/build_schema.py +0 -0
  25. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/constraint_enforcer.py +0 -0
  26. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/__init__.py +0 -0
  27. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/build_schemas/__init__.py +0 -0
  28. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/constraint_enforcers/__init__.py +0 -0
  29. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/constraint_enforcers/license_enforcer.py +0 -0
  30. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/constraint_enforcers/local_version_enforcer.py +0 -0
  31. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/constraint_enforcers/readme_enforcer.py +0 -0
  32. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/python_providers/__init__.py +0 -0
  33. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/python_providers/default_python_provider.py +0 -0
  34. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/quality_assurance_runners/__init__.py +0 -0
  35. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/quality_assurance_runners/mypy_qa_runner.py +0 -0
  36. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/quality_assurance_runners/pylint_qa_runner.py +0 -0
  37. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/quality_assurance_runners/pytest_qa_runner.py +0 -0
  38. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/quality_assurance_runners/unittest_qa_runner.py +0 -0
  39. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/upload_targets/__init__.py +0 -0
  40. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/implementations/upload_targets/github_upload_target.py +0 -0
  41. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/python_provider.py +0 -0
  42. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/quality_assurance_runner.py +0 -0
  43. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/quickpub_strategy.py +0 -0
  44. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/strategies/upload_target.py +0 -0
  45. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/structures/__init__.py +0 -0
  46. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/structures/bound.py +0 -0
  47. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/structures/dependency.py +0 -0
  48. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/structures/version.py +0 -0
  49. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub/validators.py +0 -0
  50. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub.egg-info/SOURCES.txt +0 -0
  51. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub.egg-info/dependency_links.txt +0 -0
  52. {quickpub-2.0.0 → quickpub-2.0.2}/quickpub.egg-info/top_level.txt +0 -0
  53. {quickpub-2.0.0 → quickpub-2.0.2}/setup.cfg +0 -0
  54. {quickpub-2.0.0 → quickpub-2.0.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quickpub
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: A python package to quickly configure and publish a new package
5
5
  Author-email: danielnachumdev <danielnachumdev@gmail.com>
6
6
  License: MIT License
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "quickpub"
7
- version = "2.0.0"
7
+ version = "2.0.2"
8
8
  authors = [
9
9
  { name = "danielnachumdev", email = "danielnachumdev@gmail.com" },
10
10
  ]
11
- dependencies = ['danielutils>=0.9.92', 'requests']
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.write([f"from {package_name} import *"])
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 MultiContext(
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("", instance_flush_stdout=False, instance_flush_stderr=False,
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)
@@ -1,7 +1,7 @@
1
1
  from danielutils import RetryExecutor, ExponentialBackOffStrategy, ConstantBackOffStrategy
2
2
  from requests import Response
3
3
 
4
- from proxy import get # type: ignore
4
+ from quickpub.proxy import get # type: ignore
5
5
  from quickpub import Version
6
6
  from ...constraint_enforcer import ConstraintEnforcer
7
7
 
@@ -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 pypi\n testpypi\n\n\[pypi\]\n username = __token__\n password = .+\n\n\[testpypi\]\n username = __token__\n password = .+\n?") # pylint: disable=line-too-long
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(instance_flush_stdout=False, instance_flush_stderr=False) as base:
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}", instance_flush_stdout=False,
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 = re.compile(
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: # type: ignore
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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quickpub
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: A python package to quickly configure and publish a new package
5
5
  Author-email: danielnachumdev <danielnachumdev@gmail.com>
6
6
  License: MIT License
@@ -0,0 +1,2 @@
1
+ danielutils>=0.9.94
2
+ requests
@@ -1,2 +0,0 @@
1
- danielutils>=0.9.92
2
- requests
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