Skip to content

Commit 073f9f3

Browse files
committed
migrate from poetry to pip
1 parent 7778b82 commit 073f9f3

6 files changed

Lines changed: 62 additions & 79 deletions

File tree

.github/workflows/linting.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/pypi-publish.yml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1-
name: Publish to PyPI
1+
name: Publish Python 🐍 distributions 📦 to PyPI
2+
23
on:
34
push:
4-
tags:
5-
- v*.*.*
5+
branch:
6+
- release
67

78
jobs:
8-
publish:
9-
runs-on: ubuntu-latest
9+
build-n-publish:
10+
name: Build and publish Python 🐍 distributions 📦 to PyPI
11+
runs-on: ubuntu-20.04
12+
1013
steps:
11-
- uses: actions/checkout@v2
12-
- name: Read python version
13-
uses: juliangruber/read-file-action@v1
14+
- uses: actions/checkout@master
15+
- name: Set up Python 3.7
16+
uses: actions/setup-python@v1
1417
with:
15-
path: ./.python-version
16-
- uses: actions/setup-python@v2
18+
python-version: 3.7
19+
- name: Install pypa/build
20+
run: >-
21+
python -m
22+
pip install
23+
build
24+
--user
25+
- name: Build a binary wheel and a source tarball
26+
run: >-
27+
python -m
28+
build
29+
--sdist
30+
--wheel
31+
--outdir dist/
32+
33+
- name: Publish distribution 📦 to PyPI
34+
uses: pypa/gh-action-pypi-publish@master
1735
with:
18-
python-version: ${{ steps.package.outputs.content }}
19-
- name: Install Poetry
20-
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
21-
- name: Add Poetry to path
22-
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
23-
- name: Install venv
24-
run: poetry install
25-
- name: Run tests
26-
run: poetry run pytest
27-
- name: Publish package
28-
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_KEY }}
36+
password: ${{ secrets.PYPI_API_KEY }}

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.13
1+
3.8.13

lgg/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.2.2'

pyproject.toml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
[tool.poetry]
2-
name = "lgg"
3-
version = "0.2.2"
4-
description = "A simple yet fancy logger for Python scripts"
5-
authors = ["Ayoub Assis <assis.ayoub@gmail.com>"]
6-
license = "MIT License"
7-
readme = "README.md"
8-
9-
homepage = "https://github.com/blurry-mood/python-logger"
10-
repository = "https://github.com/blurry-mood/python-logger"
11-
12-
include = [
13-
"LICENSE"
14-
]
15-
keywords = [
16-
"Python", "Logger", "Fancy Logger"
17-
]
18-
19-
[tool.poetry.dependencies]
20-
python = "^3.7"
21-
22-
[tool.poetry.dev-dependencies]
23-
pytest = "^7.1.2"
24-
flake9 = "^3.8.3"
25-
pylint = "^2.13.9"
26-
271
[build-system]
28-
requires = ["poetry-core>=1.0.0"]
29-
build-backend = "poetry.core.masonry.api"
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[metadata]
2+
name = lgg
3+
version = attr: lgg.version.__version__
4+
author = Ayoub Assis
5+
author_email = assis.ayoub@gmail.com
6+
url = https://github.com/the-beee/python-logger
7+
description = A simple yet fancy logger for Python scripts
8+
long_description = file: README.md
9+
long_description_content_type = text/markdown
10+
keywords = Python, Logger, Fancy Logger
11+
license = MIT License
12+
classifiers =
13+
License :: OSI Approved :: BSD License
14+
Programming Language :: Python :: 3
15+
16+
[options]
17+
packages = find:
18+
zip_safe = True
19+
include_package_data = True
20+
21+
[options.extras_require]
22+
dev =
23+
flake8==4.0.1
24+
pytest==7.1.2
25+
flake9==3.8.3
26+
pylint==2.13.9
27+
28+
[options.package_data]
29+
* = README.md

0 commit comments

Comments
 (0)