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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quickpub
3
- Version: 0.5.2
3
+ Version: 0.5.5
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.5.2"
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quickpub
3
- Version: 0.5.2
3
+ Version: 0.5.5
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
@@ -7,6 +7,7 @@ quickpub/classifiers.py
7
7
  quickpub/files.py
8
8
  quickpub/proxy.py
9
9
  quickpub/publish.py
10
+ quickpub/py.typed
10
11
  quickpub/structures.py
11
12
  quickpub.egg-info/PKG-INFO
12
13
  quickpub.egg-info/SOURCES.txt
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes