Skip to content

Commit e9c8503

Browse files
committed
✨ Publish package
1 parent df0b729 commit e9c8503

6 files changed

Lines changed: 82 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0 # need tags to generate release notes
15+
16+
- name: Set up Python 3.9
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.9
20+
21+
- name: Install Poetry
22+
uses: snok/install-poetry@v1.1.6
23+
with:
24+
virtualenvs-create: true
25+
virtualenvs-in-project: true
26+
27+
- name: Install package
28+
run: |
29+
poetry --version
30+
poetry install
31+
32+
- name: Build wheel
33+
id: build
34+
run: |
35+
poetry build
36+
37+
- name: Publish to PyPI
38+
env:
39+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
40+
run: |
41+
poetry publish

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
tmp_repo
2-
visualiser/settings_local.py
3-
user_logs/*
2+
github_activity_visualiser/settings_local.py
3+
user_logs/
4+
dist/

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Maxim Andreev
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Github user activity visualiser
1010
![КДПВ](https://habrastorage.org/webt/jq/os/wn/jqoswnphohklp8eswtsejbgtxty.gif)
1111

1212
### Usage
13+
14+
U need [token](https://github.com/settings/tokens) for this tool
15+
todo
16+
17+
### Run from source
1318
```
1419
$ git clone https://github.com/esemi/github-activity-visualiser.git
1520
$ cd github-activity-visualiser
@@ -19,6 +24,5 @@ $ pip install poetry
1924
$ poetry config virtualenvs.create false --local
2025
$ poetry install
2126
$ apt install gource
22-
### generate new token here https://github.com/settings/tokens and past on next step
23-
$ poetry run python visualiser/visualiser.py --help
27+
$ poetry run python github_activity_visualiser/visualiser.py --help
2428
```

pyproject.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
[tool.poetry]
2-
name = "github-activity-visualiser"
3-
version = "0.1.0"
2+
name = "github_activity_visualiser"
3+
version = "0.1.1"
44
description = ""
5+
license = "MIT"
6+
readme = "README.md"
7+
repository = "https://github.com/esemi/github-activity-visualiser"
58
authors = ["Simon <spam@esemi.ru>"]
69

10+
11+
[tool.poetry.scripts]
12+
visualiser = "github_activity_visualiser.visualiser:cli"
13+
14+
715
[tool.poetry.dependencies]
816
python = "^3.9"
917
PyGithub = "^1.55"
1018
click = "^8.0.1"
1119

20+
1221
[tool.poetry.dev-dependencies]
1322

14-
[tool.poetry.scripts]
15-
visualiser = "visualiser.visualiser:cli"
1623

1724
[build-system]
1825
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)