linux-command 0.3.0__tar.gz → 0.3.1__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.4
2
2
  Name: linux-command
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: A command line tool to perform custom tasks.
5
5
  Home-page: https://github.com/MouxiaoHuang/linux-command
6
6
  Author: Mouxiao Huang
@@ -35,7 +35,7 @@ from fnmatch import fnmatch
35
35
 
36
36
 
37
37
  # Define the version
38
- VERSION = "0.3.0"
38
+ VERSION = "0.3.1"
39
39
  PROJECT_URL = "https://github.com/MouxiaoHuang/linux-command"
40
40
 
41
41
 
@@ -482,7 +482,7 @@ def main():
482
482
 
483
483
  if '*' in source:
484
484
  # Handle wildcard batch conversion
485
- source_files = glob.glob(source)
485
+ source_files = sorted(glob.glob(source))
486
486
  destination_dir = os.path.dirname(destination)
487
487
  file_extension = destination.split('.')[-1]
488
488
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: linux-command
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: A command line tool to perform custom tasks.
5
5
  Home-page: https://github.com/MouxiaoHuang/linux-command
6
6
  Author: Mouxiao Huang
@@ -1,5 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
+ pyproject.toml
3
4
  setup.py
4
5
  linux_command/__init__.py
5
6
  linux_command/linux_command.py
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=40.8.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,46 @@
1
+ from pathlib import Path
2
+ from setuptools import setup, find_packages
3
+
4
+
5
+ def read_metadata():
6
+ content = Path(__file__).parent.joinpath("linux_command", "linux_command.py").read_text(encoding="utf-8")
7
+ version = None
8
+ project_url = None
9
+ for line in content.splitlines():
10
+ if line.startswith("VERSION ="):
11
+ version = line.split("=", 1)[1].strip().strip('"').strip("'")
12
+ if line.startswith("PROJECT_URL ="):
13
+ project_url = line.split("=", 1)[1].strip().strip('"').strip("'")
14
+ if version is None:
15
+ raise RuntimeError("VERSION not found in linux_command.py")
16
+ if project_url is None:
17
+ raise RuntimeError("PROJECT_URL not found in linux_command.py")
18
+ return version, project_url
19
+
20
+
21
+ VERSION, PROJECT_URL = read_metadata()
22
+
23
+
24
+ setup(
25
+ name='linux-command',
26
+ version=VERSION,
27
+ packages=find_packages(),
28
+ entry_points={
29
+ 'console_scripts': [
30
+ 'cmd=linux_command.linux_command:main',
31
+ ],
32
+ },
33
+ install_requires=[],
34
+ author='Mouxiao Huang',
35
+ author_email='huangmouxiao@gmail.com',
36
+ description='A command line tool to perform custom tasks.',
37
+ long_description=open('README.md').read(),
38
+ long_description_content_type='text/markdown',
39
+ url=PROJECT_URL,
40
+ classifiers=[
41
+ 'Programming Language :: Python :: 3',
42
+ 'License :: OSI Approved :: MIT License',
43
+ 'Operating System :: OS Independent',
44
+ ],
45
+ python_requires='>=3.6',
46
+ )
@@ -1,27 +0,0 @@
1
- from setuptools import setup, find_packages
2
- from linux_command.linux_command import VERSION, PROJECT_URL
3
-
4
-
5
- setup(
6
- name='linux-command',
7
- version=VERSION,
8
- packages=find_packages(),
9
- entry_points={
10
- 'console_scripts': [
11
- 'cmd=linux_command.linux_command:main',
12
- ],
13
- },
14
- install_requires=[],
15
- author='Mouxiao Huang',
16
- author_email='huangmouxiao@gmail.com',
17
- description='A command line tool to perform custom tasks.',
18
- long_description=open('README.md').read(),
19
- long_description_content_type='text/markdown',
20
- url=PROJECT_URL,
21
- classifiers=[
22
- 'Programming Language :: Python :: 3',
23
- 'License :: OSI Approved :: MIT License',
24
- 'Operating System :: OS Independent',
25
- ],
26
- python_requires='>=3.6',
27
- )
File without changes
File without changes
File without changes