Skip to content

Commit e0986e7

Browse files
authored
change to pyproject.toml (#516)
1 parent 1c63ebb commit e0986e7

File tree

6 files changed

+56
-105
lines changed

6 files changed

+56
-105
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
r: [4.3, latest, devel]
24-
python: [3.9, 3.12]
23+
r: [4.4, latest, devel]
24+
python: [3.9, 3.13]
2525
os: [ubuntu-latest, macos-latest, windows-latest]
2626
runs-on: ${{ matrix.os }}
2727
steps:
@@ -33,6 +33,9 @@ jobs:
3333
- uses: r-lib/actions/setup-r@v2
3434
with:
3535
r-version: ${{ matrix.r }}
36+
- name: Install libpng-dev
37+
if: matrix.os == 'ubuntu-latest'
38+
run: sudo apt-get update && sudo apt-get install -y libpng-dev
3639
- name: Install required R packages for testing
3740
run: Rscript -e "install.packages(c('remotes', 'askpass'))"
3841
- name: Install required R packages for testing
@@ -42,7 +45,7 @@ jobs:
4245
- name: Install and run tests
4346
run: |
4447
python -m pip install jedi
45-
python -m pip install -e .[test]
48+
python -m pip install -e .[dev]
4649
pytest -s --coverage
4750
coverage combine
4851
coverage xml -i -o coverage.xml
@@ -67,7 +70,7 @@ jobs:
6770
name: Install Python
6871
with:
6972
python-version: 3.11
70-
- run: python -m pip install twine
71-
- run: python setup.py sdist
73+
- run: python -m pip install twine build
74+
- run: python -m build
7275
- run: python -m pip install dist/*
7376
- run: python -m twine upload dist/*

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ radian.egg-info/
55
.pytest_cache/
66
.eggs/
77
.coverage
8+
build/

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
all:
22

33
clean:
4+
rm -rf build dist *.egg-info .pytest_cache && \
5+
find . -name '*.pyc' -exec rm -f {} \;
6+
find . -d -name *.o -exec rm -rf {} \; &&\
7+
find . -d -name *.so -exec rm -rf {} \; &&\
48
find . -d -name __pycache__ -exec rm -rf {} \; &&\
59
find . -d -name *.pyc -exec rm -rf {} \;

appveyor.yml

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

pyproject.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "radian"
7+
dynamic = ["version"]
8+
authors = [{name="Randy Lai",email = "[email protected]"}]
9+
description = "A 21 century R console"
10+
readme = "README.md"
11+
requires-python = ">=3.7"
12+
license = { file = "LICENSE" }
13+
14+
dependencies = [
15+
"rchitect>=0.4.7,<0.5.0",
16+
"prompt_toolkit>=3.0.41,<3.1",
17+
"pygments>=2.5.0",
18+
]
19+
20+
[project.urls]
21+
Homepage = "https://github.com/randy3k/radian"
22+
23+
[project.scripts]
24+
radian = "radian:main"
25+
26+
[project.optional-dependencies]
27+
dev = [
28+
"coverage",
29+
"pytest",
30+
"pyte>=0.8.0",
31+
"pexpect",
32+
"pywinpty; sys_platform == 'win32'",
33+
"ptyprocess; sys_platform != 'win32'",
34+
]
35+
36+
[tool.setuptools]
37+
packages = { find = { where = ["."], exclude = ["tests*"] } }
38+
39+
[tool.setuptools.dynamic]
40+
version = { attr = "radian.__version__" }
41+
42+
[tool.setuptools.package-data]
43+
radian = ["reticulate/*.R"]

setup.py

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

0 commit comments

Comments
 (0)