-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hiroki0525/feature/function-load
Feature/function load
- Loading branch information
Showing
57 changed files
with
438 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,4 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
/.MY_README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM python:3.8-alpine | ||
RUN pip install -U pip \ | ||
&& pip install -i https://test.pypi.org/simple/ autoload-module | ||
COPY tests/main.py . | ||
COPY tests/ tests | ||
RUN rm tests/main.py | ||
ENTRYPOINT ["python", "main.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
def load_config(order=None, load=False): | ||
def decorator(cls): | ||
def decorator(resource): | ||
if order: | ||
cls.load_order = order | ||
cls.load_flg = load | ||
return cls | ||
resource.load_order = order | ||
resource.load_flg = load | ||
return resource | ||
return decorator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[tool.poetry] | ||
name = "autoload-module" | ||
version = "1.1.0" | ||
description = "Python Autoload Module" | ||
authors = ["Hiroki Miyaji <[email protected]>"] | ||
license = "MIT" | ||
maintainers = ["Hiroki Miyaji <[email protected]>"] | ||
readme = "README.md" | ||
homepage = "https://github.com/hiroki0525/autoload_module" | ||
repository = "https://github.com/hiroki0525/autoload_module" | ||
documentation = "https://github.com/hiroki0525/autoload_module" | ||
keywords = ["python", "import", "autoload", "autoload_module", "metaprogramming"] | ||
classifiers = [ | ||
'Topic :: Software Development :: Libraries', | ||
'Development Status :: 1 - Planning', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
] | ||
packages = [ | ||
{ include = "autoload" }, | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
Oops, something went wrong.