d2d-versioning 0.1.3__py3-none-any.whl
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.
Potentially problematic release.
This version of d2d-versioning might be problematic. Click here for more details.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import importlib
|
|
2
|
+
import os
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
__version__ = "0.1.3"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
########################################################################
|
|
9
|
+
def build_version_string(major: int, minor: int, branch_name: str | None = None, build_number: int | None = None) -> str:
|
|
10
|
+
return "pass"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
########################################################################
|
|
14
|
+
def build_and_set_version_string(version_path: Path, major: int, minor: int, branch_name: str | None = None, build_number: int | None = None) -> str:
|
|
15
|
+
return "pass"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
########################################################################
|
|
19
|
+
def get_version(package: str) -> str:
|
|
20
|
+
return "pass"
|
d2d_versioning/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: d2d-versioning
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: A library for bumping versions.
|
|
5
|
+
Author-email: Draft2Digital <developers@draft2digital.com>
|
|
6
|
+
Maintainer-email: Draft2Digital <developers@draft2digital.com>
|
|
7
|
+
License-Expression: LicenseRef-Proprietary
|
|
8
|
+
Project-URL: Home, https://draft2digital.com
|
|
9
|
+
Project-URL: Repository, https://bitbucket.org/draft2digital/d2d-versioning
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Provides-Extra: test
|
|
13
|
+
Requires-Dist: tox>=3.14.6; extra == "test"
|
|
14
|
+
|
|
15
|
+
Simple utility to help with managing versions dynamically.
|
|
16
|
+
|
|
17
|
+
## For Developers, to get started with development on this package
|
|
18
|
+
|
|
19
|
+
#### Create a virtual environment
|
|
20
|
+
Specify the version of python you want to use.
|
|
21
|
+
```
|
|
22
|
+
python3.12 -m venv .venv
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
> **[NOTE]**
|
|
26
|
+
>
|
|
27
|
+
> If you get an error about the command failing due
|
|
28
|
+
> to missing `ensurepip` make sure you have the venv apt package installed.
|
|
29
|
+
>
|
|
30
|
+
> `sudo apt install python3.12-venv`
|
|
31
|
+
|
|
32
|
+
### Activate the virtual environment
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
source .venv/bin/activate
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Build package (you shouldn't need to do this locally, but good to know how it works)
|
|
39
|
+
|
|
40
|
+
Update the `__version__` value in `__init__.py`.
|
|
41
|
+
|
|
42
|
+
Simple way is to run
|
|
43
|
+
```
|
|
44
|
+
python -m build --wheel
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
To deploy a change (not everyone has permission for this - ask Toby or Will if you need write permission to our pypi server):
|
|
48
|
+
```
|
|
49
|
+
pip install -U pip build s3pypi
|
|
50
|
+
python -m build --wheel
|
|
51
|
+
s3pypi upload dist/* --bucket s3pypi.draft2digital.com --region us-east-1
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
To send to PyPI (should only need to do the 1st time to register the project as ours):
|
|
55
|
+
```
|
|
56
|
+
pip install -U twine
|
|
57
|
+
python -m twine upload --repository pypi dist/*
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
I created on pypi (https://pypi.org/manage/account/token/) an API token named `d2d projects` for uploading these projects.
|
|
63
|
+
|
|
64
|
+
Note that I had to temporarily remove `Private :: Do Not Upload` from the toml since that keeps it from uploading (for good reason - if we upload a version, it should be pretty stripped down version).
|
|
65
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
d2d_versioning/__init__.py,sha256=Qu7FJA3pn9xFqmCkVH4J0qukEqYZrn4vXU7-pS9YLgQ,664
|
|
2
|
+
d2d_versioning/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
d2d_versioning-0.1.3.dist-info/METADATA,sha256=4r3EXJc6jEixk0AP6o3WW0pzeJLALWRnN6Y0bv6YF7o,1968
|
|
4
|
+
d2d_versioning-0.1.3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
5
|
+
d2d_versioning-0.1.3.dist-info/top_level.txt,sha256=zWi8LegPbkNAGTjjEH8-rEgHQ93dsv2j_hroVy8KWZo,15
|
|
6
|
+
d2d_versioning-0.1.3.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d2d_versioning
|