File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build-and-publish :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v1
15
+ with :
16
+ python-version : ' 3.x'
17
+ - name : Lint
18
+ run : make lint
19
+ - name : Test
20
+ run : make test
21
+ - name : Install build dependencies
22
+ run : pip install -U setuptools wheel build calver
23
+ - name : Build
24
+ run : python -m build .
25
+ - name : Publish
26
+ uses : pypa/gh-action-pypi-publish@master
27
+ with :
28
+ password : ${{ secrets.pypi_password }}
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools" , " wheel" ]
2
+ requires = [" setuptools" , " wheel" , " calver " ]
3
3
build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 11
11
12
12
setup (
13
13
name = 'trove-classifiers' ,
14
- version = '2020.05.21' ,
15
14
description = "Canonical source for classifiers on PyPI (pypi.org)." ,
16
15
long_description = long_description ,
17
16
long_description_content_type = "text/markdown" ,
26
25
],
27
26
keywords = "classifiers" ,
28
27
packages = find_packages (),
28
+ use_calver = True ,
29
+ setup_requires = ["calver" ],
29
30
)
You can’t perform that action at this time.
0 commit comments