You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/tutorials/new.rst
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,36 +13,34 @@ This will:
13
13
- Create a new repo at the requested path, forked from the skeleton repo
14
14
- Create a single commit that modifies the skeleton with the repo and package name
15
15
16
-
.. note::
17
-
18
-
If you installed the commandline tool in a virtualenv, be sure to run
19
-
``deactivate`` when you have finished running it, otherwise ``pipenv
20
-
install`` will use your virtualenv rather than making its own
21
16
22
17
Getting started with your new repo
23
18
----------------------------------
24
19
25
-
Your new repo has a workflow based on pipenv. The first thing to do is to use
26
-
pipenv to install packages in a virtual environment::
20
+
Your new repo has a workflow based on pip. The first thing to do is to use
21
+
pip to install packages in a virtual environment::
27
22
28
-
pipenv install --dev
23
+
virtual .venv
24
+
source .venv/bin/activate
25
+
pip install -e .[dev]
29
26
30
-
You can then use the ``pipenv run`` command to run shell commands within this
31
-
virtual environment. For instance::
27
+
You can then run any entry points declared in setup.cfg e.g.::
32
28
33
-
pipenv run python
29
+
python3-pip-skeleton --version
34
30
35
31
will run the python interpreter with access to all the packages you need to
36
32
develop your repo.
37
33
38
34
Running the tests
39
35
-----------------
40
36
41
-
There are also some extra convenience scripts that ``pipenv run`` knows about::
37
+
There are also some extra convenience scripts provided via tox::
38
+
39
+
tox -p
42
40
43
-
pipenv run tests
41
+
Will run in parallel all of the checks that CI performs.
44
42
45
-
will run ``pytest`` to find all the unit tests and run them. The first time you
43
+
It will run ``pytest`` to find all the unit tests and run them. The first time you
46
44
run this, there will be some failing tests::
47
45
48
46
============================================================================ short test summary info ============================================================================
@@ -71,7 +69,7 @@ Building the docs
71
69
72
70
There is also a convenience script for building the docs::
73
71
74
-
pipenv run docs
72
+
tox -e docs
75
73
76
74
You can then view the docs output with a web browse::
77
75
@@ -84,7 +82,7 @@ To push the resulting repo to GitHub, first create an empty repo from the GitHub
84
82
website, then run the following::
85
83
86
84
git remote add $(cat .gitremotes)
87
-
git push -u github master
85
+
git push -u github main
88
86
89
87
This will then run the continuous integration (CI) jobs, which run the tests and
0 commit comments