Skip to content

Commit aac7e7e

Browse files
committed
add pyproject.toml
1 parent 3e9c961 commit aac7e7e

File tree

4 files changed

+226
-1
lines changed

4 files changed

+226
-1
lines changed

Diff for: .github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release_package:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.x
19+
20+
- name: Install Poetry
21+
run: |
22+
pip install poetry
23+
poetry config virtualenvs.create false
24+
25+
- name: Install project dependencies
26+
run: poetry install
27+
28+
- name: Build package
29+
run: poetry build
30+
31+
- name: Release package
32+
run: poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
33+
34+
- name: Upload package
35+
run: |
36+
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
37+
gh release upload ${{ github.event.release.tag_name }} dist/*.tar.gz dist/*.whl --clobber
38+
if: ( github.event_name == 'release' && github.event.action == 'published' )

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# write-githubstat
22
write-githubstat makes it easy to collect, filter and save github statistics to csv files.
33

4-
[![PyPI version](https://badge.fury.io/py/write-condastat.svg)](https://badge.fury.io/py/write-githubstat)
4+
[![PyPI version](https://badge.fury.io/py/write-githubstat.svg)](https://badge.fury.io/py/write-githubstat)
55

66

77
# About The Project

Diff for: poetry.lock

+165
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[build-system]
2+
requires = ["poetry-core>=1.0.0"]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[tool.poetry]
6+
name = "write-githubstat"
7+
packages = [
8+
{include = "src/writegithubstat"}
9+
]
10+
version = "0.1.0"
11+
description = "write-githubstat makes it easy to collect, filter and save github statistics to csv files."
12+
license = "Apache 2.0"
13+
authors = ["David Vegh <[email protected]>"]
14+
15+
[tool.poetry.dependencies]
16+
python = ">=3.8"
17+
pandas = "^1.5.0"
18+
19+
[tool.poetry.urls]
20+
homepage = "https://github.com/veghdev/write-githubstat"
21+
documentation = "https://github.com/veghdev/write-githubstat"
22+
repository = "https://github.com/veghdev/write-githubstat"

0 commit comments

Comments
 (0)