Skip to content

Commit

Permalink
Move package setup to toml file (#243)
Browse files Browse the repository at this point in the history
- Close #242
  • Loading branch information
himoto authored Feb 13, 2023
1 parent 37f5486 commit cfedc66
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 127 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,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: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
python -m build --sdist --wheel
twine upload dist/*
2 changes: 0 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ python:
path: .
extra_requirements:
- docs
- method: setuptools
path: .
74 changes: 74 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,77 @@
[build-system]
requires = ["setuptools >= 61.1.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "biomass"
description = "A Python Framework for Modeling and Analysis of Signaling Systems"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "Hiroaki Imoto"},
]
maintainers = [
{name = "Hiroaki Imoto", email = "[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8"
dependencies = [
"matplotlib>=3.0",
"numba>=0.56",
"numpy>=1.17",
"pandas>=0.24",
"scipy>=1.6",
"seaborn>=0.11.2",
"tqdm>=4.50.2",
]
dynamic = ["version"]

[project.optional-dependencies]
dev = [
"black==23.1.0",
"flake8==6.0.0",
"isort==5.12.0",
"pre-commit",
"pytest",
]
docs = [
"sphinx>=5.1.1,<6",
"sphinx_rtd_theme",
"sphinx_autodoc_typehints>=1.10.3",
"sphinxcontrib-bibtex>=2.2.0",
]
graph = [
"pygraphviz>=1.9",
"pyvis>=0.2.1,<0.3",
]

[project.urls]
repository = "https://github.com/biomass-dev/biomass"
documentation = "https://biomass-core.readthedocs.io/en/latest/"
bugtracker = "https://github.com/biomass-dev/biomass/issues"

[tool.setuptools.packages.find]
exclude = ["docs", "tests"]

[tool.setuptools.dynamic]
version = {attr = "biomass.version.__version__"}

[tool.black]
line-length = 99
target-version = ['py39']
Expand Down
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

115 changes: 0 additions & 115 deletions setup.py

This file was deleted.

0 comments on commit cfedc66

Please sign in to comment.