Skip to content

Commit 317e0ca

Browse files
committed
Update GH workflows, switch to pyproject.toml completely
1 parent 224719d commit 317e0ca

4 files changed

Lines changed: 45 additions & 52 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222
strategy:
2323
matrix:
24-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
25-
os: [ubuntu-20.04, macos-latest, windows-latest]
24+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
25+
os: [ubuntu-latest, macos-latest, windows-latest]
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v6
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333
- name: Install dependencies

.github/workflows/pythonpublish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
- name: Set up Python
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@v6
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
19+
pip install setuptools build twine
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2323
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2424
run: |
25-
python setup.py sdist bdist_wheel
25+
python -m build
2626
twine upload dist/* --verbose

pyproject.toml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,38 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "AA_stat"
7+
description = "A utility for validation of peptide identification results in proteomics using amino acid counting"
8+
authors = [
9+
{name = "Julia Bubis", email = "julia.bubis@gmail.com"},
10+
{name = "Lev Levitsky", email = "lev.levitsky@phystech.edu"}
11+
]
12+
readme = "README.MD"
13+
license = "Apache-2.0"
14+
classifiers = [
15+
"Intended Audience :: Science/Research",
16+
"Programming Language :: Python :: 3",
17+
"Topic :: Scientific/Engineering :: Bio-Informatics",
18+
"Topic :: Scientific/Engineering :: Chemistry",
19+
"Topic :: Scientific/Engineering :: Physics",
20+
]
21+
dependencies = ["pyteomics>4.7.2", "pandas>=1.4", "seaborn", "scipy", "numpy", "lxml", "jinja2>=3.1.2", "scikit-learn"]
22+
dynamic = ["version"]
23+
24+
[project.urls]
25+
Documentation = "https://github.com/SimpleNumber/aa_stat"
26+
"Source Code" = "https://github.com/SimpleNumber/aa_stat"
27+
"Issue Tracker" = "https://github.com/SimpleNumber/aa_stat/issues"
28+
29+
[tool.setuptools]
30+
packages = ["AA_stat"]
31+
32+
[tool.setuptools.dynamic]
33+
version = {attr = "AA_stat.version.__version__"}
34+
35+
[project.scripts]
36+
AA_stat = "AA_stat.main:main"
37+
AA_search = "AA_stat.aa_search:main"
38+
AA_stat_GUI = "AA_stat.gui.gui:main"

setup.py

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

0 commit comments

Comments
 (0)