swh-core
========
core library for swh's modules:
- config parser
- hash computations
- serialization
- logging mechanism
- database connection
- http-based RPC client/server
Development
-----------
We strongly recommend you to use a [virtualenv][1] if you want to run tests or
hack the code.
To set up your development environment:
```
(swh) user@host:~/swh-environment/swh-core$ pip install -e .[testing]
```
This will install every Python package needed to run this package's tests.
Unit tests can be executed using [pytest][2] or [tox][3].
```
(swh) user@host:~/swh-environment/swh-core$ pytest
============================== test session starts ==============================
platform linux -- Python 3.7.3, pytest-3.10.1, py-1.8.0, pluggy-0.12.0
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/ddouard/src/swh-environment/swh-core/.hypothesis/examples')
rootdir: /home/ddouard/src/swh-environment/swh-core, inifile: pytest.ini
plugins: requests-mock-1.6.0, hypothesis-4.26.4, celery-4.3.0, postgresql-1.4.1
collected 89 items
swh/core/api/tests/test_api.py .. [ 2%]
swh/core/api/tests/test_async.py .... [ 6%]
swh/core/api/tests/test_serializers.py ..... [ 12%]
swh/core/db/tests/test_db.py .... [ 16%]
swh/core/tests/test_cli.py ...... [ 23%]
swh/core/tests/test_config.py .............. [ 39%]
swh/core/tests/test_statsd.py ........................................... [ 87%]
.... [ 92%]
swh/core/tests/test_utils.py ....... [100%]
===================== 89 passed, 9 warnings in 6.94 seconds =====================
```
Note: this git repository uses [pre-commit][4] hooks to ensure better and more
consistent code. It should already be installed in your virtualenv (if not,
just type `pip install pre-commit`). Make sure to activate it in your local
copy of the git repository:
```
(swh) user@host:~/swh-environment/swh-core$ pre-commit install
pre-commit installed at .git/hooks/pre-commit
```
Please read the [developer setup manual][5] for more information on how to hack
on Software Heritage.
[1]: https://virtualenv.pypa.io
[2]: https://docs.pytest.org
[3]: https://tox.readthedocs.io
[4]: https://pre-commit.com
[5]: https://docs.softwareheritage.org/devel/developer-setup.html
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | swh.core-0.0.66.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 154 浏览量
2022-01-16
15:08:29
上传
评论
收藏 41KB GZ 举报
温馨提示
共50个文件
py:33个
txt:10个
pkg-info:2个
资源来自pypi官网。 资源全名:swh.core-0.0.66.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
swh.core-0.0.66.tar.gz (50个子文件)
swh.core-0.0.66
setup.py 2KB
requirements.txt 33B
requirements-db.txt 40B
Makefile 163B
MANIFEST.in 186B
version.txt 18B
setup.cfg 38B
requirements-http.txt 124B
README.md 2KB
PKG-INFO 4KB
swh
core
api
__init__.py 11KB
serializers.py 6KB
tests
test_async.py 6KB
__init__.py 0B
test_api.py 3KB
test_serializers.py 3KB
server_testing.py 4KB
negotiation.py 5KB
asynchronous.py 3KB
api_async.py 63B
sql
log-schema.sql 1013B
__init__.py 0B
cli
__init__.py 2KB
db.py 5KB
statsd.py 14KB
db
__init__.py 6KB
db_utils.py 5KB
tests
conftest.py 43B
test_cli.py 1KB
db_testing.py 9KB
__init__.py 0B
test_db.py 3KB
common.py 3KB
utils.py 3KB
config.py 10KB
tarball.py 6KB
tests
test_cli.py 3KB
__init__.py 98B
test_config.py 8KB
test_statsd.py 18KB
test_utils.py 4KB
logger.py 3KB
__init__.py 65B
requirements-swh.txt 0B
swh.core.egg-info
top_level.txt 4B
SOURCES.txt 1KB
PKG-INFO 4KB
entry_points.txt 205B
dependency_links.txt 1B
requires.txt 329B
共 50 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功