Skip to content

Commit

Permalink
Setup: Replace setup.py with pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
matan1008 committed Jul 27, 2022
1 parent 5992db5 commit 68e1062
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
48 changes: 48 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "pykdebugparser"
version = "1.2.1"
description = "Python parser for kdebug events"
readme.file = "README.md"
readme.content-type = "text/markdown"
requires-python = ">=3.7"
license = {file = "LICENSE"}
authors = [
{email = "[email protected]"},
{name = "Matan Perelman"},
]
classifiers = [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies = [
"construct",
"pygments",
"click",
"termcolor",
]

[project.urls]
Homepage = "https://github.com/matan1008/pykdebugparser"
Source = "https://github.com/matan1008/pykdebugparser"

[project.optional-dependencies]
testing = ["pytest"]

[project.scripts]
pykdebugparser = "pykdebugparser.__main__:cli"


[tool.setuptools.packages]
find = {}

[tool.setuptools.package-data]
pykdebugparser = ["*.txt", "*.TXT", "*.codes"]

[tool.distutils.bdist_wheel]
universal = true
Empty file added setup.cfg
Empty file.
52 changes: 0 additions & 52 deletions setup.py

This file was deleted.

0 comments on commit 68e1062

Please sign in to comment.