mirror of https://gitlab.com/bashrc2/epicyon
Merge
commit
16cbe39d3b
|
@ -1,5 +0,0 @@
|
||||||
# Epicyon Pypi package
|
|
||||||
|
|
||||||
This is a wrapper package for the purpose of gathering all modules under the
|
|
||||||
`epicyon` namespace when doing Python module imports. With this wrapper
|
|
||||||
package, you can get `from epicyon import httpsig` instead of `import httpsig`.
|
|
|
@ -1,23 +0,0 @@
|
||||||
"""Pypi package module namespce wrapper.
|
|
||||||
|
|
||||||
We do this automation based importing to take all Epicyon modules in under this
|
|
||||||
package namespace in one go. This way we do not have to maintain a module list
|
|
||||||
here just for the Pypi packaging effort and package builds will automatically
|
|
||||||
pick up new modules as we go forward.
|
|
||||||
"""
|
|
||||||
|
|
||||||
from pathlib import Path
|
|
||||||
from pkgutil import walk_packages
|
|
||||||
|
|
||||||
__all__ = []
|
|
||||||
|
|
||||||
package_root = str(Path(".").parent.absolute())
|
|
||||||
|
|
||||||
for loader, module_name, is_pkg in walk_packages([package_root]):
|
|
||||||
__all__.append(module_name)
|
|
||||||
|
|
||||||
if module_name == "epicyon":
|
|
||||||
continue
|
|
||||||
|
|
||||||
_module = loader.find_module(module_name).load_module(module_name)
|
|
||||||
globals()[module_name] = _module
|
|
18
setup.cfg
18
setup.cfg
|
@ -21,6 +21,9 @@ classifiers =
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = .
|
packages = .
|
||||||
|
scripts =
|
||||||
|
deploy/i2p
|
||||||
|
deploy/onion
|
||||||
install_requires =
|
install_requires =
|
||||||
crypto >= 1.4.1, < 2
|
crypto >= 1.4.1, < 2
|
||||||
idna >= 2.5, < 3
|
idna >= 2.5, < 3
|
||||||
|
@ -31,3 +34,18 @@ install_requires =
|
||||||
python-dateutil >= 2.8.1, < 3
|
python-dateutil >= 2.8.1, < 3
|
||||||
requests >= 2.25.1, < 3
|
requests >= 2.25.1, < 3
|
||||||
socks # no versions https://pypi.org/project/socks/
|
socks # no versions https://pypi.org/project/socks/
|
||||||
|
|
||||||
|
[options.package_data]
|
||||||
|
* =
|
||||||
|
*.css
|
||||||
|
*.txt
|
||||||
|
defaultcategories/*
|
||||||
|
emoji/*
|
||||||
|
fonts/*
|
||||||
|
gemini/*
|
||||||
|
img/*
|
||||||
|
orgs/*
|
||||||
|
theme/**/*
|
||||||
|
theme/**/**/*
|
||||||
|
translations/*
|
||||||
|
website/*
|
||||||
|
|
Loading…
Reference in New Issue