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 11[build-system ]
2- requires = [" setuptools" , " wheel" ]
2+ requires = [" setuptools" , " wheel" , " calver " ]
33build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 1111
1212setup (
1313 name = 'trove-classifiers' ,
14- version = '2020.05.21' ,
1514 description = "Canonical source for classifiers on PyPI (pypi.org)." ,
1615 long_description = long_description ,
1716 long_description_content_type = "text/markdown" ,
2625 ],
2726 keywords = "classifiers" ,
2827 packages = find_packages (),
28+ use_calver = True ,
29+ setup_requires = ["calver" ],
2930)
You can’t perform that action at this time.
0 commit comments