kopia lustrzana https://github.com/bugout-dev/moonstream
try except for init py to ignore humbug import
rodzic
b4809ce825
commit
e80c211748
|
@ -0,0 +1,3 @@
|
||||||
|
[settings]
|
||||||
|
profile = black
|
||||||
|
multi_line_output = 3
|
|
@ -1,7 +1,11 @@
|
||||||
from .reporter import reporter
|
try:
|
||||||
from .version import MOONCRAWL_VERSION
|
from .reporter import reporter
|
||||||
|
from .version import MOONCRAWL_VERSION
|
||||||
|
|
||||||
# Reporting
|
# Reporting
|
||||||
reporter.tags.append(f"version:{MOONCRAWL_VERSION}")
|
reporter.tags.append(f"version:{MOONCRAWL_VERSION}")
|
||||||
reporter.system_report(publish=True)
|
reporter.system_report(publish=True)
|
||||||
reporter.setup_excepthook(publish=True)
|
reporter.setup_excepthook(publish=True)
|
||||||
|
except:
|
||||||
|
# Pass it to be able import MOONCRAWL_VERSION in setup.py with pip
|
||||||
|
pass
|
||||||
|
|
|
@ -2,7 +2,6 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
from mooncrawl.version import MOONCRAWL_VERSION
|
from mooncrawl.version import MOONCRAWL_VERSION
|
||||||
|
|
||||||
|
|
||||||
long_description = ""
|
long_description = ""
|
||||||
with open("README.md") as ifp:
|
with open("README.md") as ifp:
|
||||||
long_description = ifp.read()
|
long_description = ifp.read()
|
||||||
|
|
Ładowanie…
Reference in New Issue