pymelos 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.
- pymelos/__init__.py +63 -0
- pymelos/__main__.py +6 -0
- pymelos/cli/__init__.py +5 -0
- pymelos/cli/__main__.py +6 -0
- pymelos/cli/app.py +527 -0
- pymelos/cli/commands/__init__.py +1 -0
- pymelos/cli/commands/init.py +151 -0
- pymelos/commands/__init__.py +84 -0
- pymelos/commands/add.py +77 -0
- pymelos/commands/base.py +108 -0
- pymelos/commands/bootstrap.py +154 -0
- pymelos/commands/changed.py +161 -0
- pymelos/commands/clean.py +142 -0
- pymelos/commands/exec.py +116 -0
- pymelos/commands/list.py +128 -0
- pymelos/commands/release.py +258 -0
- pymelos/commands/run.py +160 -0
- pymelos/compat.py +14 -0
- pymelos/config/__init__.py +47 -0
- pymelos/config/loader.py +132 -0
- pymelos/config/schema.py +236 -0
- pymelos/errors.py +139 -0
- pymelos/execution/__init__.py +32 -0
- pymelos/execution/parallel.py +249 -0
- pymelos/execution/results.py +172 -0
- pymelos/execution/runner.py +171 -0
- pymelos/filters/__init__.py +27 -0
- pymelos/filters/chain.py +101 -0
- pymelos/filters/ignore.py +60 -0
- pymelos/filters/scope.py +90 -0
- pymelos/filters/since.py +98 -0
- pymelos/git/__init__.py +69 -0
- pymelos/git/changes.py +153 -0
- pymelos/git/commits.py +174 -0
- pymelos/git/repo.py +210 -0
- pymelos/git/tags.py +242 -0
- pymelos/py.typed +0 -0
- pymelos/types.py +16 -0
- pymelos/uv/__init__.py +44 -0
- pymelos/uv/client.py +167 -0
- pymelos/uv/publish.py +162 -0
- pymelos/uv/sync.py +168 -0
- pymelos/versioning/__init__.py +57 -0
- pymelos/versioning/changelog.py +189 -0
- pymelos/versioning/conventional.py +216 -0
- pymelos/versioning/semver.py +249 -0
- pymelos/versioning/updater.py +146 -0
- pymelos/workspace/__init__.py +33 -0
- pymelos/workspace/discovery.py +138 -0
- pymelos/workspace/graph.py +238 -0
- pymelos/workspace/package.py +191 -0
- pymelos/workspace/workspace.py +218 -0
- pymelos-0.1.3.dist-info/METADATA +106 -0
- pymelos-0.1.3.dist-info/RECORD +57 -0
- pymelos-0.1.3.dist-info/WHEEL +4 -0
- pymelos-0.1.3.dist-info/entry_points.txt +2 -0
- pymelos-0.1.3.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pymelos
|
|
3
|
+
Version: 0.1.3
|
|
4
|
+
Summary: Python monorepo manager
|
|
5
|
+
Project-URL: Homepage, https://github.com/y3l1n4ung/pymelos
|
|
6
|
+
Project-URL: Repository, https://github.com/y3l1n4ung/pymelos
|
|
7
|
+
Project-URL: Issues, https://github.com/y3l1n4ung/pymelos/issues
|
|
8
|
+
Author: Ye Lin Aung
|
|
9
|
+
License: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: env,management,monorepo,python,uv,workspace
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
23
|
+
Classifier: Typing :: Typed
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Requires-Dist: pydantic>=2.0.0
|
|
26
|
+
Requires-Dist: pyyaml>=6.0.0
|
|
27
|
+
Requires-Dist: rich>=13.0.0
|
|
28
|
+
Requires-Dist: tomli>=2.0.0; python_version < '3.11'
|
|
29
|
+
Requires-Dist: typer>=0.15.0
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: commitizen>=4.0.0; extra == 'dev'
|
|
32
|
+
Requires-Dist: pre-commit>=4.0.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
|
|
34
|
+
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
36
|
+
Requires-Dist: python-dotenv>=1.0.0; extra == 'dev'
|
|
37
|
+
Requires-Dist: ruff>=0.8.0; extra == 'dev'
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
|
|
40
|
+
# pymelos
|
|
41
|
+
|
|
42
|
+
[](https://www.python.org/downloads/)
|
|
43
|
+
[](https://github.com/astral-sh/uv)
|
|
44
|
+
[](https://github.com/astral-sh/ruff)
|
|
45
|
+
[](https://github.com/astral-sh/ty)
|
|
46
|
+
[](https://opensource.org/licenses/MIT)
|
|
47
|
+
|
|
48
|
+
**pymelos** is a monorepo management tool for Python, inspired by
|
|
49
|
+
[Melos](https://github.com/invertase/melos).
|
|
50
|
+
It is designed to manage multiple Python packages efficiently using modern tooling such as **uv**, **Ruff**, and **semantic-release**.
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Using uv (recommended)
|
|
59
|
+
uv tool install pymelos
|
|
60
|
+
|
|
61
|
+
# Using pip
|
|
62
|
+
pip install pymelos
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Quick Start
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Initialize a new workspace
|
|
71
|
+
pymelos init --name my-workspace
|
|
72
|
+
|
|
73
|
+
# Install dependencies and link local packages
|
|
74
|
+
pymelos bootstrap
|
|
75
|
+
|
|
76
|
+
# List all packages in the workspace
|
|
77
|
+
pymelos list
|
|
78
|
+
|
|
79
|
+
# Run a script across all packages
|
|
80
|
+
pymelos run test
|
|
81
|
+
|
|
82
|
+
# Run on specific packages
|
|
83
|
+
pymelos run test --scope my-package
|
|
84
|
+
|
|
85
|
+
# Run on changed packages since main
|
|
86
|
+
pymelos run test --since main
|
|
87
|
+
|
|
88
|
+
# Execute any command
|
|
89
|
+
pymelos exec "pytest -v"
|
|
90
|
+
|
|
91
|
+
# Show changed packages
|
|
92
|
+
pymelos changed main
|
|
93
|
+
|
|
94
|
+
# Clean build artifacts
|
|
95
|
+
pymelos clean
|
|
96
|
+
|
|
97
|
+
# Semantic release (dry run)
|
|
98
|
+
pymelos release --dry-run
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
MIT
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
pymelos/__init__.py,sha256=-2JmGHWx2LaINB2YKR-A6vhsTrCYcw4hYn1Ayo9QvEQ,1403
|
|
2
|
+
pymelos/__main__.py,sha256=i16vA-PvKd3i1_hMscOgjzJ3f15QbEnPy3Qezg-5PmQ,129
|
|
3
|
+
pymelos/compat.py,sha256=47mVR9VxrHZX6KsqNVSZJ5Yo-WPQvVQV7JZqT0TqYew,355
|
|
4
|
+
pymelos/errors.py,sha256=uovD-fJbpiFsF8hnOMMK6W65d3AJ-MoPib4G3lWZFwA,4273
|
|
5
|
+
pymelos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
pymelos/types.py,sha256=ilcd1uZxG1S5-CzYKpsqSQxCfni4p7rZyoUfbX-BUBE,401
|
|
7
|
+
pymelos/cli/__init__.py,sha256=PbXwjdy_vxEBI0jBVYNpqhjkB5Qi-cy-WxryZQs0l_k,85
|
|
8
|
+
pymelos/cli/__main__.py,sha256=KGYmAC4JtcesjS9hkQNE6SKCDBWpxVXM8vJGRbNzxPA,124
|
|
9
|
+
pymelos/cli/app.py,sha256=LJYZ98I5W-MIMX2QhmAjSpmEZPCoIco5gR8hPPNKzd4,14988
|
|
10
|
+
pymelos/cli/commands/__init__.py,sha256=GYdoNv80KS2p7bCThuoRbhiLmIZW6ddPqPEFEx567nQ,35
|
|
11
|
+
pymelos/cli/commands/init.py,sha256=KSv5y27iXDDXSWomg8RAukrBGBJFvIUNbtNv3GOtgeU,3001
|
|
12
|
+
pymelos/commands/__init__.py,sha256=NOeV9l9Nu41YupkeANzZBtVJTtGfgfQaFKAljyuM0Fo,1846
|
|
13
|
+
pymelos/commands/add.py,sha256=rgPoP7HrCJLdDTW8Ai1LUjQWG44lmpfw6Q3kD88rGQs,2399
|
|
14
|
+
pymelos/commands/base.py,sha256=FBKxZeKfzm_DWAzDFYJxsFM2Gd2LIDTNH9vkz20N3RA,2654
|
|
15
|
+
pymelos/commands/bootstrap.py,sha256=e_qh44fNEZ_vhLFov0WSYevHC3-cOb1ePlXfM7dRSAM,4799
|
|
16
|
+
pymelos/commands/changed.py,sha256=nQDHdnsMBwAjgA8_pHo626ImqIkqc_wOsQEV4pfAvoQ,4801
|
|
17
|
+
pymelos/commands/clean.py,sha256=FANgJrgkZgumNSdQbId80n6IfV_9BmdD53frrEQAgO0,4269
|
|
18
|
+
pymelos/commands/exec.py,sha256=fgO8c8hZ8PO2GXdlJc26KRufNDtSIuX_OVdp_E-V5dg,3324
|
|
19
|
+
pymelos/commands/list.py,sha256=YKuqilYMZasGjyXwxfGLqaI27BeYp1LOjvO8sgAoFwo,3327
|
|
20
|
+
pymelos/commands/release.py,sha256=pUCc3qgnfLN8L1Oh9SmOdG3_zk531HSLrnzz7cdySYk,8354
|
|
21
|
+
pymelos/commands/run.py,sha256=a09hRxBjJICqJwZ-LwAFHgHfUcWFxgFAv95kw2eQui4,4753
|
|
22
|
+
pymelos/config/__init__.py,sha256=Ro4gJ_5fVBhcgCX_HWShScDpAhSpr5l6ImVQI7SY8dg,896
|
|
23
|
+
pymelos/config/loader.py,sha256=zoAbgMqs-lXX4_0oAXQAKySWPce16VAoYYKSU-f-Mj8,3759
|
|
24
|
+
pymelos/config/schema.py,sha256=Y6x-J6bZzlAybuBdcP7jJIZQqq8vCoO_YbI9Eat8STw,7835
|
|
25
|
+
pymelos/execution/__init__.py,sha256=-KgZ1VusyAXdMdtMaNtBcoDqUG5PdmAu270sAtXPpbQ,608
|
|
26
|
+
pymelos/execution/parallel.py,sha256=-OjIH1xGRuQwZagkre6epQiZw703DVy1H1-C2BmeFR0,7644
|
|
27
|
+
pymelos/execution/results.py,sha256=qS7MRQH3lJGTxsjw8TghECqGtSZRvMOMUWWm44Jfmlc,4644
|
|
28
|
+
pymelos/execution/runner.py,sha256=OK-77MQC05vIA5uPoIQbW0lDnnE8Xhs-uGxlihxQms4,4748
|
|
29
|
+
pymelos/filters/__init__.py,sha256=nVzr66ZzDzJhILFIuXJdedo7x2fUjMCusVQKZC9XajA,660
|
|
30
|
+
pymelos/filters/chain.py,sha256=eJ6iv2K4ERIOA8Ze9BhxXmbMt1f_rXDN51kufiBXhjg,2640
|
|
31
|
+
pymelos/filters/ignore.py,sha256=z7evFoxgs3r-JKSzgjnxLHhvMvi1YCLAftiFtK-ZOdk,1396
|
|
32
|
+
pymelos/filters/scope.py,sha256=8qqZn54ZRQ9PCMsCJ77kZ0TauIBoEhdvjXonG_qDomc,2142
|
|
33
|
+
pymelos/filters/since.py,sha256=eBWfK2No22b2_swLtYeHN3MHRirhnA3FkUQsM6bEK3s,2694
|
|
34
|
+
pymelos/git/__init__.py,sha256=Pl9wAZRgZa5K89DDRQtqO8uVrCClFh_iUt_I_B9dKPA,1358
|
|
35
|
+
pymelos/git/changes.py,sha256=k8jEuYnhelsnOKprSLshQuCMH92q0JICFhYJQ5s05SA,3820
|
|
36
|
+
pymelos/git/commits.py,sha256=WI2ESGnP5SGt_HW_roQ017uj9V1ZFCrJBLK7SrgkefY,4331
|
|
37
|
+
pymelos/git/repo.py,sha256=q-hqSy-W1R9AhVtnfYcw0RGk-Brc4LlARYC9hlOLiHs,5283
|
|
38
|
+
pymelos/git/tags.py,sha256=62hBmSK_Z-x-w_y7E2W1vtcm3_M4M35FL2ia9ZcEM5k,5924
|
|
39
|
+
pymelos/uv/__init__.py,sha256=1Dnjj3tLCUv-DVClSq3wgQQzZL2Amnv7xd7TFdwCCIE,731
|
|
40
|
+
pymelos/uv/client.py,sha256=oYxpmqasm7vJL2cvN1EN5T5y4lagv_QaVAMTuA7_BV0,3793
|
|
41
|
+
pymelos/uv/publish.py,sha256=Fz_uhIVldNJZlBqmQbB1K-WZbkBbWcs9quMtUl5TApQ,3956
|
|
42
|
+
pymelos/uv/sync.py,sha256=_YmdFr7NmLuT_DAHhRR9TeChBdiHPR9AoZgBT_tkIOg,3799
|
|
43
|
+
pymelos/versioning/__init__.py,sha256=EQpKBsbRSQx2q4bHZcr9IxHv67d6P4oIVE-H0X7eWoQ,1316
|
|
44
|
+
pymelos/versioning/changelog.py,sha256=ABi7_N4gL31QJIg94-AjKirYYSS9DUl2cpU3ty_-k-U,5734
|
|
45
|
+
pymelos/versioning/conventional.py,sha256=b7EKlsZjUrl5_0e2o-AGHvYlsWTenx8MB7pgoL7Sk8A,5525
|
|
46
|
+
pymelos/versioning/semver.py,sha256=Z0xl7fEETSf-ae3IwI-fD91keFQnuxar6Vto4CW3kNs,7281
|
|
47
|
+
pymelos/versioning/updater.py,sha256=2tx7FxXJrPIqlsWH7J5f9cK67gB4qp4l4LFMQ9nYvYI,3779
|
|
48
|
+
pymelos/workspace/__init__.py,sha256=4mFJ1uyBzRmqX0KJk0y_Zcv3Et7sTZhcXlFPmgxiztM,742
|
|
49
|
+
pymelos/workspace/discovery.py,sha256=PIqXAtnFKnSKkTx43P3QD_dax8G5xS2szqLepbz_gF4,3939
|
|
50
|
+
pymelos/workspace/graph.py,sha256=l0gwxfcVWRUZYIJh2c40bO1ghmV5vSQ9nHmfqIaEUYw,7929
|
|
51
|
+
pymelos/workspace/package.py,sha256=O-aaQOFEYF7nIFHqL1kzI_AecTrYnYIKJWXvYCFo7Jw,6068
|
|
52
|
+
pymelos/workspace/workspace.py,sha256=-IuaNhapeBAKpxe2JiK4cCiTonVVZRUi8hI0EaJ7LIU,6283
|
|
53
|
+
pymelos-0.1.3.dist-info/METADATA,sha256=dwgxTSJQxf5-JTDJAlfIXd6foRxtDdjFxMiSLWiLZyo,3191
|
|
54
|
+
pymelos-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
55
|
+
pymelos-0.1.3.dist-info/entry_points.txt,sha256=oLZgaSIMRSvi4d9b2ugYKUPiaPW-aniTvbFwCLm7huw,45
|
|
56
|
+
pymelos-0.1.3.dist-info/licenses/LICENSE,sha256=tfsb57Y_Z_yU8wqOmcVG7sTKp10bU8FY6xGUZIic54A,1067
|
|
57
|
+
pymelos-0.1.3.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ye Lin Aung
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|