1
1
Development
2
2
===========
3
3
4
- To contribute to `pytest-base-url ` you can use `Pipenv `_ to manage
4
+ To contribute to `pytest-base-url ` you can use `Poetry < https://python-poetry.org/ > `_ to manage
5
5
a python virtual environment and `pre-commit <https://pre-commit.com/ >`_ to help you with
6
6
styling and formatting.
7
7
8
8
To setup the virtual environment and pre-commit, run:
9
9
10
10
.. code-block :: bash
11
11
12
- $ pipenv install --dev
13
- $ pipenv run pre-commit install
12
+ $ poetry install
13
+ $ poetry run pre-commit install
14
14
15
- If you're not using `Pipenv `_ , to install `pre-commit `, run:
15
+ If you're not using `` Poetry `` , to install `` pre-commit ` `, run:
16
16
17
17
.. code-block :: bash
18
18
@@ -23,30 +23,21 @@ If you're not using `Pipenv`_, to install `pre-commit`, run:
23
23
Automated Testing
24
24
-----------------
25
25
26
- All pull requests and merges are tested in `Travis CI <https://travis-ci.org/ >`_
27
- based on the ``.travis.yml `` file.
28
-
29
- Usually, a link to your specific travis build appears in pull requests, but if
30
- not, you can find it on the
31
- `pull requests page <https://travis-ci.org/pytest-dev/pytest-base-url/pull_requests >`_
32
-
33
- The only way to trigger Travis CI to run again for a pull request, is to submit
34
- another change to the pull branch.
35
-
36
- You can do this with `git commit --allow-empty `
26
+ All pull requests and merges are tested in `GitHub Actions <https://docs.github.com/en/actions >`_
27
+ based on the workflows defined in ``.github/workflows ``.
37
28
38
29
Running Tests
39
30
-------------
40
31
41
- You will need `Tox <http ://tox.testrun.org / >`_ installed to run the tests
42
- against the supported Python versions. If you're using `Pipenv `_ it will be
32
+ You will need `Tox <https ://tox.wiki/en/latest / >`_ installed to run the tests
33
+ against the supported Python versions. If you're using `` Poetry `` it will be
43
34
installed for you.
44
35
45
- With `Pipenv `_ , run:
36
+ With `` Poetry `` , run:
46
37
47
38
.. code-block :: bash
48
39
49
- $ pipenv run tox
40
+ $ poetry run tox
50
41
51
42
Otherwise, to install and run, do:
52
43
@@ -60,11 +51,12 @@ Releasing a new version
60
51
61
52
Follow these steps to release a new version of the project:
62
53
63
- 1. Update your local master with the upstream master (``git pull --rebase upstream master ``)
64
- 2. Create a new branch and update ``CHANGES.rst `` with the new version, today's date, and all changes/new features
65
- 3. Commit and push the new branch and then create a new pull request
66
- 4. Wait for tests and reviews and then merge the branch
67
- 5. Once merged, update your local master again (``git pull --rebase upstream master ``)
68
- 6. Tag the release with the new release version (``git tag v<new tag> ``)
69
- 7. Push the tag (``git push upstream --tags ``)
70
- 8. Done. You can monitor the progress on `Travis <https://travis-ci.org/pytest-dev/pytest-base-url/ >`_
54
+ #. Update your local master with the upstream master (``git pull --rebase upstream master ``)
55
+ #. Create a new branch and update ``CHANGES.rst `` with the new version, today's date, and all changes/new features
56
+ #. Update ``pyproject.toml `` with the new version
57
+ #. Commit and push the new branch and then create a new pull request
58
+ #. Wait for tests and reviews and then merge the branch
59
+ #. Once merged, update your local master again (``git pull --rebase upstream master ``)
60
+ #. Tag the release with the new release version (``git tag v<new tag> ``)
61
+ #. Push the tag (``git push upstream --tags ``)
62
+ #. Done.
0 commit comments