bcmd 0.6.0__py3-none-any.whl → 0.6.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 bcmd might be problematic. Click here for more details.

bcmd/common/password.py CHANGED
@@ -1,17 +1,18 @@
1
1
  import getpass
2
2
  from typing import Any
3
3
 
4
- from beni import bcache, bcrypto
4
+ from async_lru import alru_cache
5
+ from beni import bcrypto
5
6
 
6
7
 
7
- @bcache.cache
8
+ @alru_cache
8
9
  async def getPypi() -> tuple[str, str]:
9
10
  content = 'QbuF2mV/lqovtF5dskZGD7qHknYbNuF2QseWRtWxLZTPrC/jL1tcxV8JEKaRjLsu46PxJZ7zepJwggnUTIWnEAoV5VtgP2/hbuzxxHha8817kR5c65H9fXm8eOal7DYXsUoGPQMnm59UWNXUKjmIaP4sn9nySFlRYqa8sEZSbYQ4N0NL35Dpj1e3wyQxJ+7h2jwKAz50Hh8G4yAM3/js9+NUe4ymts+UXcwsP3ADIBMkzjnFc0lEYg2d+fw0A74XWCvoZPoGqHZR/THUOVNAYxoGgDzP4SPIk1XsmtpxvfO/DpJd/Cg/0fB3MYagGKI1+m6Bxqhvd1I/lf0YbM5y4E4='
10
11
  data = _getData(content)
11
12
  return data['username'], data['password']
12
13
 
13
14
 
14
- @bcache.cache
15
+ @alru_cache
15
16
  async def getQiniu() -> tuple[str, str]:
16
17
  content = '7xOuA0FPCndTWcWmWLbqklQTqLTAhuEw9CarRTBYhWQ/g8wPxktw6VAiu50TLv49D1L8oCVfGafsowYDZw/prF6NQwCluPcCMy5JfdC9sKauvuZa51Nsf6PTR1UIyU8ZLUSzH+Ec2Ufcz/yAZCrcAtn63zMHNu3tTAVcZNPL597lSHdSRkpmDR8CaoUh/raH/Q=='
17
18
  data = _getData(content)
bcmd/tasks/lib.py CHANGED
@@ -46,7 +46,6 @@ async def update_version(
46
46
  @syncCall
47
47
  async def build(
48
48
  path: Path = typer.Argument(Path.cwd(), help='workspace 路径'),
49
- isKeepBuildFiles: bool = typer.Option(False, '--keep-build-files', '-k', help='是否保留构建文件'),
50
49
  ):
51
50
  '发布项目'
52
51
  user, pwd = await password.getPypi()
@@ -55,5 +54,5 @@ async def build(
55
54
  *list(path.glob('*.egg-info'))
56
55
  )
57
56
  with bpath.changePath(path):
58
- await brun.run(f'uv build')
59
- await brun.run(f'uv publish -u {user} -p {pwd}')
57
+ await brun.run(f'uv build', isPrint=True)
58
+ await brun.run(f'uv publish -u {user} -p {pwd}', isPrint=True)
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: bcmd
3
+ Version: 0.6.3
4
+ Summary: Commands for Beni
5
+ Author-email: Beni Mang <benimang@126.com>
6
+ Maintainer-email: Beni Mang <benimang@126.com>
7
+ Keywords: benimang,beni,bcmd
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: aioconsole==0.8.1
10
+ Requires-Dist: async-lru==2.0.5
11
+ Requires-Dist: benimang==0.8.0
12
+ Requires-Dist: cryptography==45.0.4
13
+ Requires-Dist: nest-asyncio==1.6.0
14
+ Requires-Dist: pillow==11.2.1
15
+ Requires-Dist: prettytable==3.16.0
16
+ Requires-Dist: psutil==7.0.0
17
+ Requires-Dist: pymupdf==1.26.1
18
+ Requires-Dist: qiniu==7.16.0
19
+ Requires-Dist: typer==0.16.0
20
+ Provides-Extra: full
21
+ Requires-Dist: img2pdf==0.6.1; extra == "full"
22
+ Requires-Dist: pytest==8.4.0; extra == "full"
23
+ Requires-Dist: pytest-asyncio==1.0.0; extra == "full"
24
+ Requires-Dist: pytest-order==1.3.0; extra == "full"
@@ -2,7 +2,7 @@ bcmd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  bcmd/main.py,sha256=GP_60-6vImXqdMfC5vc4xlscWajx4OYmnlNXASWn19w,147
3
3
  bcmd/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  bcmd/common/func.py,sha256=MehbfuWFHTOsihhYxVFj0_U6-hjMTfLh3n-oMrpyyKo,508
5
- bcmd/common/password.py,sha256=25fA1h9ttZuUobnZ_nA0Ouhmk43etBfGeM40dgxJnFY,1347
5
+ bcmd/common/password.py,sha256=2oxHvsCL05lNBpDJ8hbx4LPadDsZQKds4f0rJBYTNHA,1368
6
6
  bcmd/resources/project/.gitignore,sha256=EygWFLwtooQl0GWXSeaLszLT-yQioKM7YMNAidcAHGw,23
7
7
  bcmd/resources/project/main.py,sha256=xdskz_sf05fYA1SRMFCIxDjx8SnegxTbCmHpW86ItLs,11
8
8
  bcmd/resources/project/.vscode/launch.json,sha256=Wpghb9lW9Y1wtrjqlTbyjeejDuU8BQJmBjwsLyPRh1g,478
@@ -16,7 +16,7 @@ bcmd/tasks/debian.py,sha256=B9aMIIct3vNqMJr5hTr1GegXVf20H49C27FMvRRGIzI,3004
16
16
  bcmd/tasks/download.py,sha256=XdZYKi8zQTNYWEgUxeTNDqPgP7IGYJkMmlDDC9u93Vk,2315
17
17
  bcmd/tasks/image.py,sha256=Q8ujT6tq2tt0qS0DIY87PNG2RJ1wSArt2dHVTtCuccA,12161
18
18
  bcmd/tasks/json.py,sha256=WWOyvcZPYaqQgp-Tkm-uIJschNMBKPKtZN3yXz_SC5s,635
19
- bcmd/tasks/lib.py,sha256=UFRF9ckxJ5mItd5R01N_xeKLi9fjG3XC6od2ZuoJ6Vs,2015
19
+ bcmd/tasks/lib.py,sha256=dzb1VaVkVMtI586pqIoqp5jEhY0KcZkIbz5BIZJh7vY,1932
20
20
  bcmd/tasks/math.py,sha256=xbl5UdaDMyAjiLodDPleP4Cutrk2S3NOAgurzAgOEAE,2862
21
21
  bcmd/tasks/mirror.py,sha256=nAe8NYftMKzht16MFBj7RqXwvVhR6Jh2uuAyJLh87og,1098
22
22
  bcmd/tasks/pdf.py,sha256=fkHRgxqzrRxdb4_-9pL9wp2roqAHJPS_dVqAGJvRUsM,1504
@@ -24,8 +24,8 @@ bcmd/tasks/proxy.py,sha256=xvxN5PClUnc5LQpmq2Wug7_LUVpJboMWLXBvL9lX7EM,1552
24
24
  bcmd/tasks/time.py,sha256=ZiqA1jdgl-TBtFSOxxP51nwv4g9iZItmkFKpf9MKelk,2453
25
25
  bcmd/tasks/upgrade.py,sha256=2Wu_aFn-UcToNPDzjRG78VSChirEiD2KnAf6fJUgYak,535
26
26
  bcmd/tasks/wasabi.py,sha256=xWFAxprSIlBqDDMGaNXZFb-SahnW1d_R9XxSKRYIhnM,3110
27
- bcmd-0.6.0.dist-info/METADATA,sha256=OnKOZH3BCKfYGoCLzv2wFDXseqR8HkuvBSnIOrIAZq0,740
28
- bcmd-0.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
- bcmd-0.6.0.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
30
- bcmd-0.6.0.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
31
- bcmd-0.6.0.dist-info/RECORD,,
27
+ bcmd-0.6.3.dist-info/METADATA,sha256=DNPenlEJcwpllXjMXn9Oi4RPJWpX28dPKieUiEamwjE,812
28
+ bcmd-0.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
29
+ bcmd-0.6.3.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
30
+ bcmd-0.6.3.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
31
+ bcmd-0.6.3.dist-info/RECORD,,
@@ -1,25 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: bcmd
3
- Version: 0.6.0
4
- Summary: Commands for Beni
5
- Author-email: Beni Mang <benimang@126.com>
6
- Maintainer-email: Beni Mang <benimang@126.com>
7
- Keywords: benimang,beni,bcmd
8
- Requires-Python: >=3.10
9
- Requires-Dist: benimang==0.7.14
10
- Requires-Dist: build
11
- Requires-Dist: cryptography
12
- Requires-Dist: pathspec
13
- Requires-Dist: pillow
14
- Requires-Dist: prettytable
15
- Requires-Dist: psutil
16
- Requires-Dist: pymupdf
17
- Requires-Dist: qiniu
18
- Requires-Dist: twine
19
- Requires-Dist: typer
20
- Provides-Extra: full
21
- Requires-Dist: img2pdf; extra == "full"
22
- Requires-Dist: pytest; extra == "full"
23
- Requires-Dist: pytest-asyncio; extra == "full"
24
- Requires-Dist: pytest-order; extra == "full"
25
- Requires-Dist: setuptools; extra == "full"
File without changes