Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
FerdinandSu committed Oct 10, 2024
1 parent 0663be9 commit 41639ed
Show file tree
Hide file tree
Showing 62 changed files with 26 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
pip install build
- name: Build package
run: python -m build
working-directory: ./ReFreSH/
working-directory: ./src/
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./ReFreSH/dist
packages-dir: ./src/dist
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ There is a quite simple example:

```python
# [Import and Configure]
from ReFreSH.MobileSuit import *
SuitConfig.LOCALE = 'en' # 'zh' or 'en' (default if not set)
from src.ReFreSH import *

SuitConfig.LOCALE = 'en' # 'zh' or 'en' (default if not set)


# [Write Application Class]
class Hello(object):
Expand All @@ -58,11 +60,12 @@ class Hello(object):
@SuitAlias("helos")
def func_with_list_arg(self, names: list[str]):
print(f"this is async func {','.join(names)}")

@SuitIgnore
def ignored_func(self):
print("this is func1")


# [Quick Start App]
Suit.QuickStart4BitPowerLine(Hello)
# Suit.QuickStart
Expand Down
1 change: 0 additions & 1 deletion ReFreSH/MANIFEST.in

This file was deleted.

7 changes: 5 additions & 2 deletions docs/README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ pip install PyMobileSuit

```python
# [Import and Configure]
from ReFreSH.MobileSuit import *
SuitConfig.LOCALE = 'en' # 'zh' or 'en' (default if not set)
from src.ReFreSH import *

SuitConfig.LOCALE = 'en' # 'zh' or 'en' (default if not set)


# [Write Application Class]
class Hello(object):
Expand Down Expand Up @@ -63,6 +65,7 @@ class Hello(object):
def ignored_func(self):
print("this is func1")


# [Quick Start App]
Suit.QuickStart4BitPowerLine(Hello)
# Suit.QuickStart
Expand Down
3 changes: 3 additions & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
README.md
*.egg-info/
3 changes: 3 additions & 0 deletions src/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include **.yaml
include ../README.md
exclude demo.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def SuitArgParser(arg_name: str, parser_name: str = '', TTarget=None, TConverter
"""
def decorator(func):
if not hasattr(func, DecoratorNames.suit_alias):
setattr(func, DecoratorNames.suit_alias,{})
setattr(func, DecoratorNames.suit_alias, {})
getattr(func, DecoratorNames.suit_alias)[arg_name] = SuitArgParserInfo.FromDecorator(
parser_name, TTarget, TConverter)
return func
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .IIOHub import IIOHub
from ..CSharp import nameof

__all__ = [nameof(x) for x in [Suit, SuitInfo, SuitIgnore, SuitAlias, SuitArgInjected, SuitArgParser, IIOHub, SuitConfig]]
__version__ = '0.1'
__all__ = [nameof(x) for x in [Suit, SuitInfo, SuitIgnore, SuitAlias, SuitArgInjected, SuitArgParser, IIOHub,
SuitConfig]]
__version__ = '0.1.1'
__author__ = 'Ferdinand Sukhoi'
File renamed without changes.
2 changes: 1 addition & 1 deletion ReFreSH/__init__.py → src/ReFreSH/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name='ReFreSH'
__version__ = '0.1'
__version__ = '0.1.1'
__author__ = 'Ferdinand Sukhoi'
Empty file added src/__init__.py
Empty file.
File renamed without changes.
4 changes: 2 additions & 2 deletions ReFreSH/setup.py → src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
@Modify Time @Author @Version @Description
------------ ------- -------- -----------
2020-5-15 Ferdinand Sukhoi 0.1.4 Light-weight tool to generate markdown-formatted lab reports.
2020-5-15 Ferdinand Sukhoi 0.1.1 Light-weight tool to generate markdown-formatted lab reports.
"""

from setuptools import setup, find_packages

setup(
name="PyMobileSuit",
version="0.1",
version="0.1.1",
keywords=["commandline", "cli", "framework", "HIT-ReFreSH"],
description="To generate markdown-formatted lab reports.",
long_description="MobileSuit provides an easy way to build Console App quickly. For python.",
Expand Down

0 comments on commit 41639ed

Please sign in to comment.