File tree 5 files changed +96
-110
lines changed
5 files changed +96
-110
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Publish Python Package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ test :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ python-version : [3.6, 3.7, 3.8, 3.9]
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up Python ${{ matrix.python-version }}
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+ - uses : actions/cache@v2
20
+ name : Configure pip caching
21
+ with :
22
+ path : ~/.cache/pip
23
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
24
+ restore-keys : |
25
+ ${{ runner.os }}-pip-
26
+ - name : Install dependencies
27
+ run : |
28
+ pip install -e '.[test]'
29
+ - name : Run tests
30
+ run : |
31
+ pytest
32
+ deploy :
33
+ runs-on : ubuntu-latest
34
+ needs : [test]
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+ - name : Set up Python
38
+ uses : actions/setup-python@v2
39
+ with :
40
+ python-version : ' 3.9'
41
+ - uses : actions/cache@v2
42
+ name : Configure pip caching
43
+ with :
44
+ path : ~/.cache/pip
45
+ key : ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
46
+ restore-keys : |
47
+ ${{ runner.os }}-publish-pip-
48
+ - name : Install dependencies
49
+ run : |
50
+ pip install setuptools wheel twine
51
+ - name : Publish
52
+ env :
53
+ TWINE_USERNAME : __token__
54
+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
55
+ run : |
56
+ python setup.py sdist bdist_wheel
57
+ twine upload dist/*
58
+
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ python-version : [3.6, 3.7, 3.8, 3.9]
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python ${{ matrix.python-version }}
14
+ uses : actions/setup-python@v2
15
+ with :
16
+ python-version : ${{ matrix.python-version }}
17
+ - uses : actions/cache@v2
18
+ name : Configure pip caching
19
+ with :
20
+ path : ~/.cache/pip
21
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
22
+ restore-keys : |
23
+ ${{ runner.os }}-pip-
24
+ - name : Install dependencies
25
+ run : |
26
+ pip install -e '.[test]'
27
+ - name : Run tests
28
+ run : |
29
+ pytest
30
+
Original file line number Diff line number Diff line change 1
1
# github-contents
2
2
3
3
[ ![ PyPI] ( https://img.shields.io/pypi/v/github-contents.svg )] ( https://pypi.org/project/github-contents/ )
4
- [ ![ CircleCI] ( https://circleci.com/gh/simonw/github-contents.svg?style=svg )] ( https://circleci.com/gh/simonw/github-contents )
5
- [ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue.svg )] ( https://github.com/simonw/datasette-json-html/blob/master/LICENSE )
4
+ [ ![ Changelog] ( https://img.shields.io/github/v/release/simonw/github-contents?include_prereleases&label=changelog )] ( https://github.com/simonw/github-contents/releases )
5
+ [ ![ Tests] ( https://github.com/simonw/github-contents/workflows/Test/badge.svg )] ( https://github.com/simonw/github-contents/actions?query=workflow%3ATest )
6
+ [ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue.svg )] ( https://github.com/simonw/github-contents/blob/main/LICENSE )
6
7
7
8
Read and write both small and large files to Github.
8
9
Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ def get_long_description():
19
19
long_description_content_type = "text/markdown" ,
20
20
author = "Simon Willison" ,
21
21
url = "https://github.com/simonw/github-contents" ,
22
+ project_urls = {
23
+ "Issues" : "https://github.com/simonw/github-contents/issues" ,
24
+ "CI" : "https://github.com/simonw/github-contents/actions" ,
25
+ "Changelog" : "https://github.com/simonw/github-contents/releases" ,
26
+ },
22
27
license = "Apache License, Version 2.0" ,
23
28
version = VERSION ,
24
29
py_modules = ["github_contents" ],
You can’t perform that action at this time.
0 commit comments