quickpub 0.6.34__tar.gz → 0.7.0__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 (24) hide show
  1. quickpub-0.7.0/MANIFEST.in +1 -0
  2. {quickpub-0.6.34/quickpub.egg-info → quickpub-0.7.0}/PKG-INFO +1 -1
  3. {quickpub-0.6.34 → quickpub-0.7.0}/pyproject.toml +2 -2
  4. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/__main__.py +3 -2
  5. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/files.py +4 -2
  6. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/functions.py +3 -1
  7. quickpub-0.7.0/quickpub/proxy.py +20 -0
  8. {quickpub-0.6.34 → quickpub-0.7.0/quickpub.egg-info}/PKG-INFO +1 -1
  9. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub.egg-info/SOURCES.txt +1 -0
  10. quickpub-0.6.34/quickpub/proxy.py +0 -11
  11. {quickpub-0.6.34 → quickpub-0.7.0}/LICENSE +0 -0
  12. {quickpub-0.6.34 → quickpub-0.7.0}/README.md +0 -0
  13. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/__init__.py +0 -0
  14. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/classifiers.py +0 -0
  15. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/custom_types.py +0 -0
  16. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/enforcers.py +0 -0
  17. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/py.typed +0 -0
  18. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/structures.py +0 -0
  19. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub/validators.py +0 -0
  20. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub.egg-info/dependency_links.txt +0 -0
  21. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub.egg-info/requires.txt +0 -0
  22. {quickpub-0.6.34 → quickpub-0.7.0}/quickpub.egg-info/top_level.txt +0 -0
  23. {quickpub-0.6.34 → quickpub-0.7.0}/setup.cfg +0 -0
  24. {quickpub-0.6.34 → quickpub-0.7.0}/setup.py +0 -0
@@ -0,0 +1 @@
1
+ recursive-include quickpub *.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quickpub
3
- Version: 0.6.34
3
+ Version: 0.7.0
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,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "quickpub"
7
- version = "0.6.34"
7
+ version = "0.7.0"
8
8
  authors = [
9
9
  { name = "danielnachumdev", email = "danielnachumdev@gmail.com" },
10
10
  ]
@@ -12,7 +12,7 @@ dependencies = ['twine', 'danielutils']
12
12
  keywords = ['Utils', 'PyPi', 'Publish', 'Quick']
13
13
  license = { "file" = "./LICENSE" }
14
14
  description = "A python package to quickly configure and publish a new package"
15
- readme = "./README.md"
15
+ readme = {file = "./README.md", content-type = "text/markdown"}
16
16
  requires-python = ">=3.10.13"
17
17
  classifiers = [
18
18
  "Development Status :: 3 - Alpha",
@@ -4,7 +4,7 @@ from .validators import validate_version, validate_python_version, validate_keyw
4
4
  validate_source
5
5
  from .functions import build, upload, commit, metrics
6
6
  from .structures import Version, Config
7
- from .files import create_toml, create_setup
7
+ from .files import create_toml, create_setup, create_manifest
8
8
  from .classifiers import *
9
9
  from .enforcers import enforce_correct_version, enforce_pypirc_exists, exit_if
10
10
  from .custom_types import Path
@@ -55,7 +55,7 @@ def publish(
55
55
  f"Could not find license file at {license}")
56
56
  version = validate_version(version)
57
57
  enforce_correct_version(name, version)
58
- min_python = validate_python_version(min_python)
58
+ min_python = validate_python_version(min_python) # type:ignore
59
59
  keywords = validate_keywords(keywords)
60
60
  dependencies = validate_dependencies(dependencies)
61
61
 
@@ -80,6 +80,7 @@ def publish(
80
80
  ],
81
81
  min_python=min_python
82
82
  )
83
+ create_manifest(name=name)
83
84
 
84
85
  build()
85
86
  upload(
@@ -44,7 +44,7 @@ dependencies = {dependencies}
44
44
  keywords = {keywords}
45
45
  license = {{ "file" = "{license}" }}
46
46
  description = "{description}"
47
- readme = "{readme}"
47
+ readme = {{file = "{readme}", content-type = "text/markdown"}}
48
48
  requires-python = ">={min_python}"
49
49
  classifiers = [{classifiers_string}]
50
50
 
@@ -63,7 +63,9 @@ packages = ["{name}"]
63
63
  def create_setup() -> None:
64
64
  with open("./setup.py", "w", encoding="utf8") as f:
65
65
  f.write("from setuptools import setup\n\nsetup()\n")
66
-
66
+ def create_manifest(*,name:str)->None:
67
+ with open("./MANIFEST.in", "w", encoding="utf8") as f:
68
+ f.write(f"recursive-include {name} *.py")
67
69
 
68
70
  __all__ = [
69
71
  "create_setup",
@@ -7,6 +7,7 @@ from .enforcers import exit_if
7
7
  from .structures import Version
8
8
  import quickpub.proxy
9
9
 
10
+
10
11
  def prev_main():
11
12
  import re
12
13
  from danielutils import cmrt, cm, read_file, get_files, directory_exists, create_directory # type:ignore
@@ -165,7 +166,8 @@ def upload(
165
166
  ) -> None:
166
167
  if verbose:
167
168
  info("Uploading")
168
- ret, stdout, stderr = quickpub.proxy.cm("twine", "upload", "--config-file", ".pypirc", f"dist/{name}-{version}.tar.gz")
169
+ ret, stdout, stderr = quickpub.proxy.cm("twine", "upload", "--config-file", ".pypirc",
170
+ f"dist/{name}-{version}.tar.gz")
169
171
  exit_if(
170
172
  ret != 0,
171
173
  f"Failed uploading the package to pypi. Try running the following command manually:\n\ttwine upload --config-file .pypirc dist/{name}-{version}.tar.gz"
@@ -0,0 +1,20 @@
1
+ import danielutils
2
+
3
+
4
+ # need it like this for the testing
5
+ def cm(*args, **kwargs) -> tuple[int, bytes, bytes]:
6
+ return danielutils.cm(*args, **kwargs)
7
+
8
+
9
+ def add_verbose_keyword(func):
10
+ def wrapper(*args, verbose: bool = False, **kwargs):
11
+ if verbose:
12
+ return func(*args, **kwargs)
13
+
14
+ return wrapper
15
+
16
+
17
+ __all__ = [
18
+ "cm",
19
+ 'add_verbose_keyword'
20
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quickpub
3
- Version: 0.6.34
3
+ Version: 0.7.0
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
@@ -1,4 +1,5 @@
1
1
  LICENSE
2
+ MANIFEST.in
2
3
  README.md
3
4
  pyproject.toml
4
5
  setup.py
@@ -1,11 +0,0 @@
1
- import danielutils
2
-
3
-
4
- # need it like this for the testing
5
- def cm(*args, **kwargs) -> tuple[int, bytes, bytes]:
6
- return danielutils.cm(*args, **kwargs)
7
-
8
-
9
- __all__ = [
10
- "cm"
11
- ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes