Skip to content

Commit

Permalink
Merge pull request #200 from marcelm/modernize
Browse files Browse the repository at this point in the history
Switch to pyproject.toml
  • Loading branch information
mdshw5 authored Dec 6, 2022
2 parents e91c3fe + a676e7f commit 85bf293
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ jobs:
with:
python-version: 3.9

- name: Install python packages
run: pip install setuptools

- name: Build package
run: python setup.py sdist
run: pipx run build

- name: Publish to test PyPI
if: startsWith(github.ref, 'refs/tags') != true
uses: pypa/gh-action-pypi-publish@master
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ or download a `release <https://github.com/mdshw5/pyfaidx/releases>`_ and:

::

python setup.py install
pip install .

If using ``pip install --user`` make sure to add ``/home/$USER/.local/bin`` to your ``$PATH`` (on linux) or ``/Users/$USER/Library/Python/{python version}/bin`` (on macOS) if you want to run the ``faidx`` script.

Expand Down
42 changes: 42 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[build-system]
requires = ["setuptools>=63", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "pyfaidx"
authors = [
{ name="Matthew Shirley", email="[email protected]"}
]
description = "pyfaidx: efficient pythonic random access to fasta subsequences"
readme = "README.rst"
requires-python = ">=3.7"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: BSD License",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: Unix",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
dependencies = [
"six"
]
dynamic = ["version"]

[project.urls]
"Homepage" = "https://github.com/mdshw5/pyfaidx/"
"Author homepage" = "http://mattshirley.com"

[project.scripts]
faidx = "pyfaidx.cli:main"

[tool.setuptools_scm]
local_scheme = "no-local-version"
39 changes: 0 additions & 39 deletions setup.py

This file was deleted.

0 comments on commit 85bf293

Please sign in to comment.