1
- Finishing setting up your project
2
- =================================
3
-
4
- Thanks for using cookiecutter-trio! This is your project now; you can
5
- customize it however you like. Here's some reminders of things you
6
- might want to do to get started:
7
-
8
- * Check this into source control (``git init .; git add .; git
9
- commit -m "Initial commit" ``)
10
-
11
- * Add a CODE_OF_CONDUCT.md
12
-
13
- * Add a CONTRIBUTING.md
14
-
15
- * Search the source tree for COOKIECUTTER-TRIO-TODO to find other
16
- places to fill in.
17
- * Enable `Read the Docs <https://readthedocs.org >`__. (Note: this
18
- project contains a ``.readthedocs.yml `` file that should be enough
19
- to get things working.)
20
-
21
- * Set up continuous integration: Currently, this project is set up to
22
- test on Linux and MacOS using Travis, on Windows using Appveyor, and
23
- to test on PyPy.
24
-
25
- If that's what you want, then go to Travis and Appveyor and enable
26
- testing for your repo.
27
-
28
- If that's not what you want, then you can trim the list by modifying
29
- (or deleting) ``.travis.yml ``, ``.appveyor.yml ``, ``ci/travis.sh ``.
30
-
31
- * Enable `Codecov <https://codecov.io >`__ for your repo.
32
-
33
- * File bugs or pull requests on `cookiecutter-trio
34
- <https://github.com/python-trio/cookiecutter-trio> `__ reporting any
35
- problems or awkwardness you ran into (no matter how small!)
36
-
37
- * Delete this checklist once it's no longer useful
38
-
39
-
40
1
Tips
41
2
====
42
3
43
4
To run tests
44
5
------------
45
6
46
- * Install requirements: ``pip install -r test-requirements.txt ``
7
+ * Install requirements: ``pip install -r ci/ test-requirements.txt ``
47
8
(possibly in a virtualenv)
48
9
49
- * Actually run the tests: ``pytest trio_asyncio ``
10
+ * Actually run the tests: ``PYTHONPATH=. pytest-3 tests ``
50
11
51
12
52
13
To run yapf
53
14
-----------
54
15
55
- * Show what changes yapf wants to make: `` yapf -rpd setup.py
56
- trio_asyncio ``
16
+ * Show what changes yapf wants to make:
17
+ `` yapf3 -rpd setup.py trio_asyncio tests ``
57
18
58
- * Apply all changes directly to the source tree: ``yapf -rpi setup.py
59
- trio_asyncio ``
19
+ * Apply all changes directly to the source tree:
20
+ ``yapf -rpi setup.py trio_asyncio tests ``
21
+
22
+ * Find semantic problems: ``flake8 setup.py trio_asyncio tests ``
60
23
61
24
62
25
To make a release
@@ -72,10 +35,7 @@ To make a release
72
35
73
36
* Double-check it all works, docs build, etc.
74
37
75
- * Build your sdist and wheel: ``python setup.py sdist bdist_wheel ``
76
-
77
- * Upload to PyPI: ``twine upload dist/* ``
78
-
79
- * Use ``git tag `` to tag your version.
38
+ * Upload to PyPI: ``make upload ``
80
39
81
40
* Don't forget to ``git push --tags ``.
41
+
0 commit comments