未知
pkgme-devportal的Python项目详细描述
>请参阅许可证以获取版权详细信息。
>包依赖性
=======
============
*postgresql
*postgresql-server-dev-9.1
==构建环境==
==
==
=测试==
运行“make test”或“make acceptance”。
例如:
$make test test_target=test_database.test database configuration
configuration file
===
conf可以通过位于
$home/.config/pkgme binary/conf
postgres.
您可以通过设置
环境变量“pkgme_devportal_config_file”来覆盖此配置文件的位置。
文件的外观应类似于::
[数据库]
db type=postgres
主机=<;db host>;
端口=<;db port>;
用户名=<;db username>;
password=<;db password>;
db-name=<;db-name>;
您需要自己创建表,您可以使用
``db/postgres_schema.sql``文件来执行以下操作:
归档文件“contents-%(architecture)s”文件,并构建一个本地版本的
以从soname映射到pkgname。
您可以使用以下命令在本地运行pkgme:
$cd/path/to/binary/thing/you/want/packated
$echo'{“package”“name”:“mypkg”,“description”:“some description”}>;devportal metadata.json
$pythonpath=/path/to/pkgme:/path/to/pkgme devport\
pkgme_backend_paths=/path/to/pkgme devportal/devportal/backends/\
pkgme
acceptance tests
==
有一个验收测试套件,它不是
单元测试的一部分。您可以使用以下命令运行这些测试:
$make acceptance