Skip to content

Commit f995334

Browse files
authored
remove Paver utilities not needed (#993)
* remove Paver utilities not needed * Update testing.rst
1 parent 2e52b54 commit f995334

File tree

6 files changed

+4
-168
lines changed

6 files changed

+4
-168
lines changed

CONTRIBUTING.rst

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ Coding Guidelines
9696
- always code with `PEP 8`_ conventions
9797
- always run source code through `flake8`_ and `pylint`_, using all pylint defaults except for ``C0111``. ``sbin/pycsw-pylint.sh`` is included for convenience
9898
- for exceptions which make their way to OGC ``ExceptionReport`` XML, always specify the appropriate ``locator`` and ``code`` parameters
99-
- the pycsw wiki documents `developer tasks`_ for things like releasing documentation, testing, etc.
10099

101100
Submitting a Pull Request
102101
^^^^^^^^^^^^^^^^^^^^^^^^^

docs/locale/zh/LC_MESSAGES/contributing.po

-6
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,6 @@ msgstr ""
320320
"除了OGC ``ExceptionReport`` XML运行方式为个别例外,通常会指定合适的 ``定"
321321
"位器`` 和 ``代码`` 参数"
322322

323-
#: ../../../CONTRIBUTING.rst:99
324-
msgid ""
325-
"the pycsw wiki documents `developer tasks`_ for things like releasing "
326-
"documentation, testing, etc."
327-
msgstr "pycsw wiki 文档的 `developer tasks`_ 类似于发布文档,测试等。"
328-
329323
#: ../../../CONTRIBUTING.rst:102
330324
msgid "Submitting a Pull Request"
331325
msgstr "提交pull请求"

docs/locale/zh/LC_MESSAGES/testing.po

+2-16
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,6 @@ msgstr "导航到 ``http://host/path/to/pycsw/tests/index.html`` 。"
543543
#~ msgid "Running Locally"
544544
#~ msgstr "本地运行"
545545

546-
#~ msgid ""
547-
#~ "The tests framework can be run from ``tests`` using `Paver`_ (see ``pavement."
548-
#~ "py``) tasks for convenience:"
549-
#~ msgstr ""
550-
#~ "为方便工作,测试框架可以用 `Paver`_ (见 ``pavement.py``) 在 ``tests`` 中运行:"
551-
552546
#~ msgid ""
553547
#~ "The tests perform HTTP GET and POST requests against ``http://"
554548
#~ "localhost:8000``. The expected output for each test can be found in "
@@ -566,12 +560,12 @@ msgstr "导航到 ``http://host/path/to/pycsw/tests/index.html`` 。"
566560
#~ "If a given test has failed, the output is saved in ``results``. The "
567561
#~ "resulting failure can be analyzed by running ``diff tests/expected/"
568562
#~ "name_of_test.xml tests/results/name_of_test.xml`` to find variances. The "
569-
#~ "Paver task returns a status code which indicates the number of tests which "
563+
#~ "task returns a status code which indicates the number of tests which "
570564
#~ "have failed (i.e. ``echo $?``)."
571565
#~ msgstr ""
572566
#~ "如果某个测试失败,输出将保存在``结果``中。 运行``diff tests/expected/"
573567
#~ "name_of_test.xml tests/results/name_of_test.xml`` ,会自动统计失败结果以找到差"
574-
#~ "异。Paver任务会返回一个状态代码,表示已失败的测试数目(即``echo $?``)。"
568+
#~ "异。任务会返回一个状态代码,表示已失败的测试数目(即``echo $?``)。"
575569

576570
#~ msgid "Test Suites"
577571
#~ msgstr "测试套件"
@@ -631,9 +625,6 @@ msgstr "导航到 ``http://host/path/to/pycsw/tests/index.html`` 。"
631625
#~ "文件的名称内)。该 ``request`` 值是HTTP GET请求的值。该 ``PYCSW_SERVER`` 在"
632626
#~ "URL pycsw安装运行时会被替换掉的。"
633627

634-
#~ msgid "run ``paver test``"
635-
#~ msgstr "运行`paver test`"
636-
637628
#~ msgid "Ensure that all file paths are relative to ``path/to/pycsw``"
638629
#~ msgstr "确保所有文件的路径都关联 ``path/to/pycsw`` "
639630

@@ -646,11 +637,6 @@ msgstr "导航到 ``http://host/path/to/pycsw/tests/index.html`` 。"
646637
#~ "个sqlite3数据库。该数据库*必须*被写为 ``records.db``,目录 ``tests/suites/foo/"
647638
#~ "data`` 也必须存在"
648639

649-
#~ msgid ""
650-
#~ "run ``paver test`` (or ``paver test -s foo`` to test only the new test suite)"
651-
#~ msgstr ""
652-
#~ "运行 ``paver test`` (或 ``paver test-s foo`` , 仅用来测试新的测试套件)"
653-
654640
#~ msgid ""
655641
#~ "Pycsw uses `pytest`_ for managing its automated tests. There are a number of "
656642
#~ "test suites that perform mostly functional testing. These tests ensure that "

docs/testing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,15 +311,15 @@ requests against your pycsw install. The tests are is located in
311311

312312
.. code-block:: bash
313313
314-
$ paver gen_tests_html
314+
python3 gen_html.py > index.html
315+
315316
316317
Then navigate to ``http://host/path/to/pycsw/tests/index.html``.
317318

318319

319320

320321
.. _Compliance & Interoperability Testing & Evaluation Initiative: https://github.com/opengeospatial/cite/wiki
321322
.. _functional tests: https://en.wikipedia.org/wiki/Functional_testing
322-
.. _`Paver`: https://pythonhosted.org/Paver/
323323
.. _pytest's invocation documentation: https://docs.pytest.org/en/stable/usage.html
324324
.. _pytest: https://docs.pytest.org
325325
.. _Github Actions: https://github.com/geopython/pycsw/actions

pavement.py

-142
This file was deleted.

requirements-dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
-r requirements-standalone.txt
33

44
apipkg==1.4
5-
Paver==1.2.4
65
pytest==6.2.4
76
pytest-cov==2.12.0
87
pytest-flake8==1.0.7

0 commit comments

Comments
 (0)