autopub 1.0.0a20__py3-none-any.whl → 1.0.0a22__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
autopub/plugins/uv.py ADDED
@@ -0,0 +1,34 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Any
4
+
5
+ from autopub.plugins import AutopubPackageManagerPlugin, AutopubPlugin
6
+
7
+
8
+ class UvPlugin(AutopubPlugin, AutopubPackageManagerPlugin):
9
+ def build(self) -> None:
10
+ self.run_command(["uv", "build"])
11
+
12
+ def publish(self, repository: str | None = None, **kwargs: Any) -> None:
13
+ additional_args: list[str] = []
14
+
15
+ if repository:
16
+ raise ValueError("Not yet implemented")
17
+
18
+ if publish_url := kwargs.get("publish_url"):
19
+ additional_args.append("--publish-url")
20
+ additional_args.append(publish_url)
21
+
22
+ if username := kwargs.get("username"):
23
+ additional_args.append("--username")
24
+ additional_args.append(username)
25
+
26
+ if password := kwargs.get("password"):
27
+ additional_args.append("--password")
28
+ additional_args.append(password)
29
+
30
+ if token := kwargs.get("token"):
31
+ additional_args.append("--token")
32
+ additional_args.append(token)
33
+
34
+ self.run_command(["uv", "publish", *additional_args])
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: autopub
3
+ Version: 1.0.0a22
4
+ Summary: Automatic package release upon pull request merge
5
+ Home-page: https://github.com/autopub/autopub
6
+ Author: Justin Mayer
7
+ Author-email: entroP@gmail.com
8
+ Requires-Python: >=3.9.0,<4.0
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Provides-Extra: github
16
+ Requires-Dist: dunamai (>=1.23.0,<2.0.0)
17
+ Requires-Dist: pydantic (>=2.10.5,<3.0.0)
18
+ Requires-Dist: python-frontmatter (>=1.1.0,<2.0.0)
19
+ Requires-Dist: rich (>=13.9.4,<14.0.0)
20
+ Requires-Dist: tomlkit (>=0.13.2,<0.14.0)
21
+ Project-URL: Issue Tracker, https://github.com/autopub/autopub/issues
22
+ Project-URL: Repository, https://github.com/autopub/autopub
@@ -8,10 +8,11 @@ autopub/plugins/git.py,sha256=GeXcvlDEDOVb0cerebkfz8YruK7JYK6IyV872hBIqis,856
8
8
  autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
9
9
  autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
10
10
  autopub/plugins/update_changelog.py,sha256=g_6flOP5wocZbjOaYSayWxobL3ld8f0wT78nFtAIkFc,1586
11
+ autopub/plugins/uv.py,sha256=goo8QxaD3FVJ1c3xOSmN1hikZTCUXN8jWNac1S5uDDY,1089
11
12
  autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
13
  autopub/types.py,sha256=gY1WR93XZVFS7vf5JMSmL_h5z7zO51-rtmZ6MYsh3so,1043
13
- autopub-1.0.0a20.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
- autopub-1.0.0a20.dist-info/METADATA,sha256=OMx383dV6w6XXZXg18-uRjCK4fOzEIPqqbG9HLn1l0E,3788
15
- autopub-1.0.0a20.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
16
- autopub-1.0.0a20.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
17
- autopub-1.0.0a20.dist-info/RECORD,,
14
+ autopub-1.0.0a22.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
15
+ autopub-1.0.0a22.dist-info/METADATA,sha256=EaL-7uaLKUyKt2WdhL0kWA7J90iuU5fE7bZ2gIZLooc,911
16
+ autopub-1.0.0a22.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
17
+ autopub-1.0.0a22.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
18
+ autopub-1.0.0a22.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.7.0
2
+ Generator: poetry-core 1.9.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,94 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: autopub
3
- Version: 1.0.0a20
4
- Summary: Automatic package release upon pull request merge
5
- Home-page: https://github.com/autopub/autopub
6
- License: AGPL-3.0
7
- Keywords: automatic,packaging,publish,release,version
8
- Author: Justin Mayer
9
- Author-email: entroP@gmail.com
10
- Requires-Python: >=3.8,<4.0
11
- Classifier: Development Status :: 4 - Beta
12
- Classifier: Environment :: Console
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: GNU Affero General Public License v3
15
- Classifier: Operating System :: OS Independent
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.10
20
- Classifier: Programming Language :: Python :: 3.11
21
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
- Classifier: Topic :: System :: Software Distribution
23
- Classifier: Topic :: System :: Systems Administration
24
- Provides-Extra: github
25
- Requires-Dist: build (>=0.10.0,<0.11.0)
26
- Requires-Dist: dunamai (>=1.17.0,<2.0.0)
27
- Requires-Dist: githubrelease (>=1.5.9,<2.0.0) ; extra == "github"
28
- Requires-Dist: httpx (==0.16.1) ; extra == "github"
29
- Requires-Dist: pydantic (>=2)
30
- Requires-Dist: python-frontmatter (>=1.0.0,<2.0.0)
31
- Requires-Dist: rich (>=12.5.1,<13.0.0)
32
- Requires-Dist: time-machine (>=2.13.0,<3.0.0)
33
- Requires-Dist: tomlkit (>=0.5,<2.0)
34
- Requires-Dist: twine (>=4.0.2,<5.0.0)
35
- Requires-Dist: typer (>=0.9.0,<0.10.0)
36
- Project-URL: Issue Tracker, https://github.com/autopub/autopub/issues
37
- Project-URL: Repository, https://github.com/autopub/autopub
38
- Description-Content-Type: text/markdown
39
-
40
- # AutoPub
41
-
42
- [![Build Status](https://img.shields.io/circleci/build/github/autopub/autopub)](https://circleci.com/gh/autopub/autopub) [![PyPI Version](https://img.shields.io/pypi/v/autopub)](https://pypi.org/project/autopub/)
43
-
44
- AutoPub enables project maintainers to release new package versions to PyPI by merging pull requests.
45
-
46
- ## Environment
47
-
48
- AutoPub is intended for use with continuous integration (CI) systems such as [GitHub Actions][], [CircleCI][], or [Travis CI][]. Projects used with AutoPub are built via [build][] and published via [Twine][]. Contributions that add support for other CI and build systems are welcome.
49
-
50
- ## Configuration
51
-
52
- AutoPub settings can be configured via the `[tool.autopub]` table in the target project’s `pyproject.toml` file. Required settings include Git username and email address:
53
-
54
- ```toml
55
- [tool.autopub]
56
- git-username = "Your Name"
57
- git-email = "your_email@example.com"
58
- ```
59
-
60
- ## Release Files
61
-
62
- Contributors should include a `RELEASE.md` file in their pull requests with two bits of information:
63
-
64
- * Release type: major, minor, or patch
65
- * Description of the changes, to be used as the changelog entry
66
-
67
- Example:
68
-
69
- Release type: patch
70
-
71
- Add function to update version strings in multiple files.
72
-
73
- ## Usage
74
-
75
- The following `autopub` sub-commands can be used as steps in your CI flows:
76
-
77
- * `autopub check`: Check whether release file exists.
78
- * `autopub prepare`: Update version strings and add entry to changelog.
79
- * `autopub build`: Build the project.
80
- * `autopub commit`: Add, commit, and push incremented version and changelog changes.
81
- * `autopub githubrelease`: Create a new release on GitHub.
82
- * `autopub publish`: Publish a new release.
83
-
84
- For systems such as Travis CI in which only one deployment step is permitted, there is a single command that runs the above steps in sequence:
85
-
86
- * `autopub deploy`: Run `prepare`, `build`, `commit`, `githubrelease`, and `publish` in one invocation.
87
-
88
-
89
- [GitHub Actions]: https://github.com/features/actions
90
- [CircleCI]: https://circleci.com
91
- [Travis CI]: https://travis-ci.org
92
- [build]: https://pypa-build.readthedocs.io
93
- [Twine]: https://twine.readthedocs.io/
94
-