Skip to content

Commit 57f167c

Browse files
committed
'ver'
1 parent 39abd2e commit 57f167c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

anti_header/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def process(self) -> Headers:
151151

152152

153153
Header = UsageHeader
154-
__version__ = '0.0.5'
154+
__version__ = '0.0.6'
155155

156156
VERSION = __version__
157157

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,19 @@
1212
URL = "https://github.com/ihandmine/anti-header"
1313
AUTHOR = "handmine"
1414
AUTHOR_EMAIL = "handmine@outlook.com"
15-
VERSION = "0.0.5"
15+
VERSION = "0.0.6"
1616
LICENSE = "MIT"
1717
REQUIRES_PYTHON = ">=3.7.0"
1818

1919

20+
def list_dir(dir):
21+
result = [dir]
22+
for file in os.listdir(dir):
23+
if os.path.isdir(os.path.join(dir, file)):
24+
result.extend(list_dir(os.path.join(dir, file)))
25+
return result
26+
27+
2028
here = os.path.abspath(os.path.dirname(__file__))
2129
with open(f"{here}/README.md", encoding='utf-8') as f:
2230
long_description = f.read()
@@ -71,7 +79,7 @@ def run(self):
7179
author=AUTHOR,
7280
author_email=AUTHOR_EMAIL,
7381
license=LICENSE,
74-
packages=[NAME],
82+
packages=list_dir(NAME),
7583
package_dir={NAME: NAME},
7684
python_requires=REQUIRES_PYTHON,
7785
include_package_data=True,

0 commit comments

Comments
 (0)