mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 06:25:45 +00:00
using cryptoconditions without print message
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
a061e773c9
commit
9f66450c7c
@ -1,9 +1,9 @@
|
|||||||
FROM python:3.9
|
FROM python:3.9
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& pip install -U pip \
|
&& pip install -U pip \
|
||||||
&& apt-get autoremove \
|
&& apt-get autoremove \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
RUN apt-get install -y vim zsh build-essential cmake
|
RUN apt-get install -y vim zsh build-essential cmake
|
||||||
|
|
||||||
RUN mkdir -p /src
|
RUN mkdir -p /src
|
||||||
@ -13,6 +13,6 @@ RUN pip install --upgrade \
|
|||||||
pycco \
|
pycco \
|
||||||
websocket-client~=0.47.0 \
|
websocket-client~=0.47.0 \
|
||||||
pytest~=3.0 \
|
pytest~=3.0 \
|
||||||
planetmint-cryptoconditions>=0.9.7\
|
planetmint-cryptoconditions>=0.9.8\
|
||||||
planetmint-driver>=0.9.2 \
|
planetmint-driver>=0.9.2 \
|
||||||
blns
|
blns
|
||||||
|
|||||||
@ -15,6 +15,6 @@ RUN pip install --upgrade \
|
|||||||
pytest~=6.2.5 \
|
pytest~=6.2.5 \
|
||||||
pycco \
|
pycco \
|
||||||
websocket-client~=0.47.0 \
|
websocket-client~=0.47.0 \
|
||||||
planetmint-cryptoconditions>=0.9.7\
|
planetmint-cryptoconditions>=0.9.8\
|
||||||
planetmint-driver>=0.9.2 \
|
planetmint-driver>=0.9.2 \
|
||||||
blns
|
blns
|
||||||
|
|||||||
169
setup.py
169
setup.py
@ -14,135 +14,130 @@ import sys
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
if sys.version_info < (3, 9):
|
if sys.version_info < (3, 9):
|
||||||
sys.exit('Please use Python version 3.9 or higher.')
|
sys.exit("Please use Python version 3.9 or higher.")
|
||||||
|
|
||||||
with open('README.md') as readme_file:
|
with open("README.md") as readme_file:
|
||||||
readme = readme_file.read()
|
readme = readme_file.read()
|
||||||
|
|
||||||
# get the version
|
# get the version
|
||||||
version = {}
|
version = {}
|
||||||
with open('planetmint/version.py') as fp:
|
with open("planetmint/version.py") as fp:
|
||||||
exec(fp.read(), version)
|
exec(fp.read(), version)
|
||||||
|
|
||||||
|
|
||||||
def check_setuptools_features():
|
def check_setuptools_features():
|
||||||
"""Check if setuptools is up to date."""
|
"""Check if setuptools is up to date."""
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
try:
|
try:
|
||||||
list(pkg_resources.parse_requirements('foo~=1.0'))
|
list(pkg_resources.parse_requirements("foo~=1.0"))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
sys.exit('Your Python distribution comes with an incompatible version '
|
sys.exit(
|
||||||
'of `setuptools`. Please run:\n'
|
"Your Python distribution comes with an incompatible version "
|
||||||
' $ pip3 install --upgrade setuptools\n'
|
"of `setuptools`. Please run:\n"
|
||||||
'and then run this command again')
|
" $ pip3 install --upgrade setuptools\n"
|
||||||
|
"and then run this command again"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
import pathlib
|
import pathlib
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
with pathlib.Path('docs/root/requirements.txt').open() as requirements_txt:
|
with pathlib.Path("docs/root/requirements.txt").open() as requirements_txt:
|
||||||
docs_require= [
|
docs_require = [
|
||||||
str(requirement)
|
str(requirement)
|
||||||
for requirement
|
for requirement in pkg_resources.parse_requirements(requirements_txt)
|
||||||
in pkg_resources.parse_requirements(requirements_txt)
|
|
||||||
]
|
]
|
||||||
|
|
||||||
check_setuptools_features()
|
check_setuptools_features()
|
||||||
|
|
||||||
dev_require = [
|
dev_require = ["ipdb", "ipython", "watchdog", "logging_tree", "pre-commit", "twine"]
|
||||||
'ipdb',
|
|
||||||
'ipython',
|
|
||||||
'watchdog',
|
|
||||||
'logging_tree',
|
|
||||||
'pre-commit',
|
|
||||||
'twine'
|
|
||||||
]
|
|
||||||
|
|
||||||
tests_require = [
|
tests_require = [
|
||||||
'coverage',
|
"coverage",
|
||||||
'pep8',
|
"pep8",
|
||||||
'flake8',
|
"flake8",
|
||||||
'flake8-quotes==0.8.1',
|
"flake8-quotes==0.8.1",
|
||||||
'hypothesis>=5.3.0',
|
"hypothesis>=5.3.0",
|
||||||
'pytest>=3.0.0',
|
"pytest>=3.0.0",
|
||||||
'pytest-cov==2.8.1',
|
"pytest-cov==2.8.1",
|
||||||
'pytest-mock',
|
"pytest-mock",
|
||||||
'pytest-xdist',
|
"pytest-xdist",
|
||||||
'pytest-flask',
|
"pytest-flask",
|
||||||
'pytest-aiohttp',
|
"pytest-aiohttp",
|
||||||
'pytest-asyncio',
|
"pytest-asyncio",
|
||||||
'tox',
|
"tox",
|
||||||
] + docs_require
|
] + docs_require
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'chardet==3.0.4',
|
"chardet==3.0.4",
|
||||||
'aiohttp==3.8.1',
|
"aiohttp==3.8.1",
|
||||||
'abci==0.8.3',
|
"abci==0.8.3",
|
||||||
'planetmint-cryptoconditions>=0.9.7',
|
"planetmint-cryptoconditions>=0.9.8",
|
||||||
'flask-cors==3.0.10',
|
"flask-cors==3.0.10",
|
||||||
'flask-restful==0.3.9',
|
"flask-restful==0.3.9",
|
||||||
'flask==2.0.1',
|
"flask==2.0.1",
|
||||||
'gunicorn==20.1.0',
|
"gunicorn==20.1.0",
|
||||||
'jsonschema==3.2.0',
|
"jsonschema==3.2.0",
|
||||||
'logstats==0.3.0',
|
"logstats==0.3.0",
|
||||||
'packaging>=20.9',
|
"packaging>=20.9",
|
||||||
# TODO Consider not installing the db drivers, or putting them in extras.
|
# TODO Consider not installing the db drivers, or putting them in extras.
|
||||||
'protobuf==3.20.1',
|
"protobuf==3.20.1",
|
||||||
'pymongo==3.11.4',
|
"pymongo==3.11.4",
|
||||||
'python-rapidjson==1.0',
|
"python-rapidjson==1.0",
|
||||||
'pyyaml==5.4.1',
|
"pyyaml==5.4.1",
|
||||||
'requests>=2.25.1',
|
"requests>=2.25.1",
|
||||||
'setproctitle==1.2.2',
|
"setproctitle==1.2.2",
|
||||||
'werkzeug==2.0.3',
|
"werkzeug==2.0.3",
|
||||||
'nest-asyncio==1.5.5',
|
"nest-asyncio==1.5.5",
|
||||||
'protobuf==3.20.1'
|
"protobuf==3.20.1",
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if sys.version_info < (3, 6):
|
if sys.version_info < (3, 6):
|
||||||
install_requires.append('pysha3~=1.0.2')
|
install_requires.append("pysha3~=1.0.2")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='Planetmint',
|
name="Planetmint",
|
||||||
version=version['__version__'],
|
version=version["__version__"],
|
||||||
description='Planetmint: The Blockchain Database',
|
description="Planetmint: The Blockchain Database",
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type="text/markdown",
|
||||||
url='https://github.com/Planetmint/planetmint/',
|
url="https://github.com/Planetmint/planetmint/",
|
||||||
author='Planetmint Contributors',
|
author="Planetmint Contributors",
|
||||||
author_email='contact@ipdb.global',
|
author_email="contact@ipdb.global",
|
||||||
license='AGPLv3',
|
license="AGPLv3",
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
python_requires='>=3.9',
|
python_requires=">=3.9",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta',
|
"Development Status :: 4 - Beta",
|
||||||
'Intended Audience :: Developers',
|
"Intended Audience :: Developers",
|
||||||
'Topic :: Database',
|
"Topic :: Database",
|
||||||
'Topic :: Database :: Database Engines/Servers',
|
"Topic :: Database :: Database Engines/Servers",
|
||||||
'Topic :: Software Development',
|
"Topic :: Software Development",
|
||||||
'Natural Language :: English',
|
"Natural Language :: English",
|
||||||
'License :: OSI Approved :: Apache Software License',
|
"License :: OSI Approved :: Apache Software License",
|
||||||
'Programming Language :: Python :: 3.9',
|
"Programming Language :: Python :: 3.9",
|
||||||
'Operating System :: MacOS :: MacOS X',
|
"Operating System :: MacOS :: MacOS X",
|
||||||
'Operating System :: POSIX :: Linux',
|
"Operating System :: POSIX :: Linux",
|
||||||
],
|
],
|
||||||
|
packages=find_packages(exclude=["tests*"]),
|
||||||
packages=find_packages(exclude=['tests*']),
|
scripts=["pkg/scripts/planetmint-monit-config"],
|
||||||
|
|
||||||
scripts=['pkg/scripts/planetmint-monit-config'],
|
|
||||||
|
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
"console_scripts": ["planetmint=planetmint.commands.planetmint:main"],
|
||||||
'planetmint=planetmint.commands.planetmint:main'
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
setup_requires=['pytest-runner'],
|
setup_requires=["pytest-runner"],
|
||||||
tests_require=tests_require,
|
tests_require=tests_require,
|
||||||
extras_require={
|
extras_require={
|
||||||
'test': tests_require,
|
"test": tests_require,
|
||||||
'dev': dev_require + tests_require + docs_require,
|
"dev": dev_require + tests_require + docs_require,
|
||||||
'docs': docs_require,
|
"docs": docs_require,
|
||||||
},
|
},
|
||||||
package_data={
|
package_data={
|
||||||
'planetmint.transactions.common.schema': ['v1.0/*.yaml','v2.0/*.yaml','v3.0/*.yaml' ],
|
"planetmint.transactions.common.schema": [
|
||||||
|
"v1.0/*.yaml",
|
||||||
|
"v2.0/*.yaml",
|
||||||
|
"v3.0/*.yaml",
|
||||||
|
],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user