quickpub 0.5.2__tar.gz → 0.5.5__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-0.5.2 → quickpub-0.5.5}/PKG-INFO +1 -1
- {quickpub-0.5.2 → quickpub-0.5.5}/pyproject.toml +3 -1
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/__main__.py +2 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/files.py +10 -0
- quickpub-0.5.5/quickpub/py.typed +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub.egg-info/PKG-INFO +1 -1
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub.egg-info/SOURCES.txt +1 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/README.md +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/__init__.py +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/classifiers.py +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/proxy.py +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/publish.py +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub/structures.py +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub.egg-info/dependency_links.txt +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub.egg-info/requires.txt +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/quickpub.egg-info/top_level.txt +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/setup.cfg +0 -0
- {quickpub-0.5.2 → quickpub-0.5.5}/setup.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "quickpub"
|
|
7
|
-
version = "0.5.
|
|
7
|
+
version = "0.5.5"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name = "danielnachumdev", email = "danielnachumdev@gmail.com" },
|
|
10
10
|
]
|
|
@@ -23,6 +23,8 @@ classifiers = [
|
|
|
23
23
|
|
|
24
24
|
[tool.setuptools]
|
|
25
25
|
packages = ["quickpub"]
|
|
26
|
+
[tool.setuptools.package-data]
|
|
27
|
+
"quickpub" = ["py.typed"]
|
|
26
28
|
|
|
27
29
|
[project.urls]
|
|
28
30
|
"Homepage" = "https://github.com/danielnachumdev/quickpub"
|
|
@@ -9,6 +9,7 @@ from .classifiers import *
|
|
|
9
9
|
def publish(
|
|
10
10
|
*,
|
|
11
11
|
name: str,
|
|
12
|
+
src: str,
|
|
12
13
|
version: Optional[Union[Version, str]] = None,
|
|
13
14
|
author: str,
|
|
14
15
|
author_email: str,
|
|
@@ -38,6 +39,7 @@ def publish(
|
|
|
38
39
|
create_setup()
|
|
39
40
|
create_toml(
|
|
40
41
|
name=name,
|
|
42
|
+
src=src,
|
|
41
43
|
version=version,
|
|
42
44
|
author=author,
|
|
43
45
|
author_email=author_email,
|
|
@@ -2,11 +2,13 @@ from typing import Optional
|
|
|
2
2
|
|
|
3
3
|
from .classifiers import Classifier
|
|
4
4
|
from .structures import Version
|
|
5
|
+
from danielutils import get_files
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
def create_toml(
|
|
8
9
|
*,
|
|
9
10
|
name: str,
|
|
11
|
+
src: str,
|
|
10
12
|
version: Version,
|
|
11
13
|
author: str,
|
|
12
14
|
author_email: str,
|
|
@@ -20,6 +22,13 @@ def create_toml(
|
|
|
20
22
|
classifiers_string = ",\n\t".join([f"\"{str(c)}\"" for c in classifiers])
|
|
21
23
|
if len(classifiers_string) > 0:
|
|
22
24
|
classifiers_string = f"\n\t{classifiers_string}\n"
|
|
25
|
+
py_typed = ""
|
|
26
|
+
for file in get_files(src):
|
|
27
|
+
if file == "py.typed":
|
|
28
|
+
py_typed = f"""[tool.setuptools.package-data]
|
|
29
|
+
"{name}" = ["py.typed"]"""
|
|
30
|
+
break
|
|
31
|
+
|
|
23
32
|
s = f"""[build-system]
|
|
24
33
|
requires = ["setuptools>=61.0"]
|
|
25
34
|
build-backend = "setuptools.build_meta"
|
|
@@ -40,6 +49,7 @@ classifiers = [{classifiers_string}]
|
|
|
40
49
|
|
|
41
50
|
[tool.setuptools]
|
|
42
51
|
packages = ["{name}"]
|
|
52
|
+
{py_typed}
|
|
43
53
|
|
|
44
54
|
[project.urls]
|
|
45
55
|
"Homepage" = "{homepage}"
|
|
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
|