Skip to content

Commit

Permalink
Use pyproject.toml and drop outdated Python support
Browse files Browse the repository at this point in the history
  • Loading branch information
matwey committed Aug 5, 2024
1 parent fb00601 commit be299f4
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 52 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ jobs:
construct-version: ">=2.9,<2.10"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install 'construct${{ matrix.construct-version }}'
pip install -r requirements.txt
- name: Install pybeam
run: python -m pip install .
- name: Install pytest
run: python -m pip install pytest
- name: Run Tests
run: |
python setup.py test
run: pytest
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pybeam
======
Python module to parse Erlang BEAM files.

Both python 2.7 and python 3.3 are supported. Python 3.2 are known not to work.
Pull-requests are always welcome.

## Quick start:
Expand Down
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "pybeam"
version = "0.7"
description = "Python module to parse Erlang BEAM files"
authors = [
{name = "Matwey V. Kornilov", email = "[email protected]"},
]
dependencies = [
"construct>=2.9,<2.11",
]
requires-python = ">=3.7"
readme = "README.md"
license = {file = "LICENSE"}

[project.optional-dependencies]
dev = [
"pytest",
]

[project.urls]
Repository = "https://github.com/matwey/pybeam.git"
Issues = "https://github.com/matwey/pybeam/issues"

[tool.pytest.ini_options]
testpaths = [
"pybeam",
"test",
]
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

30 changes: 0 additions & 30 deletions setup.py

This file was deleted.

4 changes: 0 additions & 4 deletions test/__init__.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit be299f4

Please sign in to comment.