File tree 4 files changed +54
-32
lines changed
4 files changed +54
-32
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [pull_request]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : ubuntu-18.04
9
+
10
+ strategy :
11
+ matrix :
12
+ python : [3.6, 3.7, 3.8]
13
+ django : [1.8, 1.11, 2.2, 3.1]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Set up Python ${{ matrix.python }}
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : ${{ matrix.python }}
21
+ - name : Install dependencies
22
+ run : pip install -r requirements.txt
23
+ - name : Install Django
24
+ run : pip install -U django==${{ matrix.django }}
25
+ - name : Run tests
26
+ run : ./manage.py test
27
+ - name : Check install
28
+ run : pip install .
Original file line number Diff line number Diff line change
1
+ name : Upload Python Package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ deploy :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Set up Python
13
+ uses : actions/setup-python@v2
14
+ with :
15
+ python-version : ' 3.8'
16
+ - name : Install dependencies
17
+ run : |
18
+ python -m pip install --upgrade pip
19
+ pip install setuptools wheel twine
20
+ - name : Build and publish
21
+ env :
22
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
23
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
24
+ run : |
25
+ python setup.py sdist bdist_wheel
26
+ twine upload dist/*
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -57,15 +57,6 @@ def get_package_data(package):
57
57
return {package : filepaths }
58
58
59
59
60
- if sys .argv [- 1 ] == 'publish' :
61
- os .system ("python setup.py sdist upload" )
62
- args = {'version' : get_version (package )}
63
- print ("You probably want to also tag the version now:" )
64
- print (" git tag -a %(version)s -m 'version %(version)s'" % args )
65
- print (" git push --tags" )
66
- sys .exit ()
67
-
68
-
69
60
setup (
70
61
name = name ,
71
62
version = get_version (package ),
You can’t perform that action at this time.
0 commit comments