Skip to content

Commit 619fb3e

Browse files
committed
✨ simple change to make it a loadable plugin for moban via lml
1 parent 18fa6e4 commit 619fb3e

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

pypi-mobans.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ current_version: "0.0.1"
88
release: "0.0.0"
99
copyright_year: 2018
1010
license: public license
11-
dependencies: []
11+
dependencies:
12+
- lml
1213
description: "Scaffolding mobans for your Python project."

pypi_mobans/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
# flake8: noqa
22
from pypi_mobans._version import __version__
33
from pypi_mobans._version import __author__
4+
from lml.plugin import PluginInfo
5+
6+
7+
@PluginInfo('pypi', tags=['setupmobans', 'pypi', 'pypimobans'])
8+
class Pypkg():
9+
def __init__(self):
10+
__package_path__ = os.path.dirname(__file__)
11+
self.resources_path = os.path.join(
12+
__package_path__, "resources")

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lml

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@
3838
]
3939

4040
INSTALL_REQUIRES = [
41+
'lml',
4142
]
4243
SETUP_COMMANDS = {}
4344

4445

4546
PACKAGES = find_packages(exclude=['ez_setup', 'examples', 'tests'])
46-
EXTRAS_REQUIRE = {}
47+
EXTRAS_REQUIRE = {
48+
}
4749
# You do not need to read beyond this line
4850
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
4951
sys.executable)

0 commit comments

Comments
 (0)