Skip to content

Commit 25c008b

Browse files
committed
Switch to TOML description
1 parent 970d11d commit 25c008b

File tree

3 files changed

+25
-274
lines changed

3 files changed

+25
-274
lines changed

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[project]
2+
name = "python_codon_tables"
3+
version = "0.1.13"
4+
license = "CC0-1.0"
5+
authors = [{ name = "Zulko" }]
6+
description = "Codon Usage Tables for Python, from kazusa.or.jp"
7+
readme = "python_codon_tables/README.rst"
8+
keywords = ["DNA", "codon", "usage"]
9+
dependencies = ["biopython"]
10+
11+
[project.urls]
12+
Homepage = "https://github.com/Edinburgh-Genome-Foundry/codon-usage-tables"
13+
14+
[build-system]
15+
requires = ["setuptools"]
16+
build-backend = "setuptools.build_meta"
17+
18+
[tool.setuptools]
19+
include-package-data = true
20+
21+
[tool.setuptools.package-data]
22+
python_codon_tables = ["../codon_usage_data/*", "../codon_usage_data/**/*"]
23+
24+
[tool.setuptools.packages.find]
25+
exclude = ["docs"]

python_codon_tables/ez_setup.py

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

setup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
import os
22

3-
try:
4-
from setuptools import setup
5-
except ImportError:
6-
try:
7-
from .python.ez_setup import use_setuptools
8-
9-
use_setuptools()
10-
except ImportError:
11-
raise ImportError(
12-
"python_codon_tables could not be installed, "
13-
"probably because neither setuptools nor ez_setup "
14-
"are installed on this computer. \nInstall ez_setup "
15-
"([sudo] pip install ez_setup) and try again."
16-
)
17-
183
from setuptools import setup, find_packages
194

205
with open(os.path.join("codon_usage_data", "version.txt"), "r") as f:

0 commit comments

Comments
 (0)