Skip to content

Commit 70fd4c6

Browse files
committed
Prepare to release.
1 parent 3a39ee9 commit 70fd4c6

File tree

4 files changed

+88
-4
lines changed

4 files changed

+88
-4
lines changed

.github/workflows/octocheese.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
4+
name: "GitHub Releases"
5+
on:
6+
schedule:
7+
- cron: 0 12 * * *
8+
9+
jobs:
10+
Run:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: domdfcoding/octocheese@master
14+
with:
15+
pypi_name: "dependency-dash"
16+
env:
17+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
18+
if: startsWith(github.ref, 'refs/tags/') != true

.github/workflows/python_ci_linux.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,48 @@ jobs:
6666
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
6767
if: steps.setup-python.outcome == 'success'
6868
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
69+
70+
71+
72+
Deploy:
73+
needs: tests
74+
75+
runs-on: "ubuntu-20.04"
76+
steps:
77+
- name: Checkout 🛎️
78+
uses: "actions/checkout@v2"
79+
if: startsWith(github.ref, 'refs/tags/')
80+
81+
- name: Setup Python 🐍
82+
uses: "actions/setup-python@v2"
83+
if: startsWith(github.ref, 'refs/tags/')
84+
with:
85+
python-version: 3.8
86+
87+
- name: Install dependencies 🔧
88+
if: startsWith(github.ref, 'refs/tags/')
89+
run: |
90+
python -m pip install --upgrade pip setuptools wheel
91+
python -m pip install --upgrade tox
92+
93+
- name: Build distributions 📦
94+
if: startsWith(github.ref, 'refs/tags/')
95+
run: |
96+
tox -e build
97+
98+
99+
- name: Upload distribution to PyPI 🚀
100+
if: startsWith(github.ref, 'refs/tags/')
101+
uses: pypa/gh-action-pypi-publish@v1.4.2
102+
with:
103+
user: __token__
104+
password: ${{ secrets.PYPI_TOKEN }}
105+
skip_existing: true
106+
107+
- name: Close milestone 🚪
108+
if: startsWith(github.ref, 'refs/tags/')
109+
run: |
110+
python -m pip install --upgrade github3.py packaging
111+
python .github/milestones.py
112+
env:
113+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.rst

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ dependency-dash
1717

1818
* - Tests
1919
- |actions_linux| |actions_macos|
20+
* - PyPI
21+
- |pypi-version| |supported-versions| |supported-implementations| |wheel|
2022
* - Activity
21-
- |commits-latest| |commits-since| |maintained|
23+
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
2224
* - QA
2325
- |codefactor| |actions_flake8| |actions_mypy|
2426
* - Other
@@ -48,6 +50,22 @@ dependency-dash
4850
:target: https://www.codefactor.io/repository/github/repo-helper/dependency-dash
4951
:alt: CodeFactor Grade
5052

53+
.. |pypi-version| image:: https://img.shields.io/pypi/v/dependency-dash
54+
:target: https://pypi.org/project/dependency-dash/
55+
:alt: PyPI - Package Version
56+
57+
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/dependency-dash?logo=python&logoColor=white
58+
:target: https://pypi.org/project/dependency-dash/
59+
:alt: PyPI - Supported Python Versions
60+
61+
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/dependency-dash
62+
:target: https://pypi.org/project/dependency-dash/
63+
:alt: PyPI - Supported Implementations
64+
65+
.. |wheel| image:: https://img.shields.io/pypi/wheel/dependency-dash
66+
:target: https://pypi.org/project/dependency-dash/
67+
:alt: PyPI - Wheel
68+
5169
.. |license| image:: https://img.shields.io/github/license/repo-helper/dependency-dash
5270
:target: https://github.com/repo-helper/dependency-dash/blob/master/LICENSE
5371
:alt: License
@@ -66,20 +84,24 @@ dependency-dash
6684
.. |maintained| image:: https://img.shields.io/maintenance/yes/2022
6785
:alt: Maintenance
6886

87+
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/dependency-dash
88+
:target: https://pypi.org/project/dependency-dash/
89+
:alt: PyPI - Downloads
90+
6991
.. end shields
7092
7193
Installation
7294
--------------
7395

7496
.. start installation
7597
76-
``dependency-dash`` can be installed from GitHub.
98+
``dependency-dash`` can be installed from PyPI.
7799

78100
To install with ``pip``:
79101

80102
.. code-block:: bash
81103
82-
$ python -m pip install git+https://github.com/repo-helper/dependency-dash
104+
$ python -m pip install dependency-dash
83105
84106
.. end installation
85107

repo_helper.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use_whey: true
1414
enable_conda: false
1515
enable_docs: false
1616
enable_tests: false
17-
on_pypi: false
1817
mypy_version: "0.910"
1918

2019
python_versions:

0 commit comments

Comments
 (0)