Skip to content

Commit 54b310b

Browse files
authoredNov 14, 2023
Merge pull request #2 from mkoeppe/pyproject_toml
Switch from distutils to setuptools, move metadata to pyproject.toml
2 parents 3c12e25 + 41a62c5 commit 54b310b

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed
 

‎pyproject.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "JuPyMake"
7+
version = "0.8"
8+
description = "A simple interface to Polymake"
9+
authors = [{name = "Sebastian Gutsche", email = "sebastian.gutsche@gmail.com"}]
10+
urls = {Homepage = "https://github.com/sebasguts/JuPyMake"}
11+
readme = "README.md"
12+
13+
[tool.setuptools]
14+
license-files = ["COPYING", "GPLv2"]

‎setup.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from distutils.core import setup, Extension
1+
import setuptools
2+
from setuptools import setup, Extension
3+
24
import sys
35
import subprocess
46

@@ -32,16 +34,9 @@ def conditional_decode( string ):
3234
os.environ["MACOSX_DEPLOYMENT_TARGET"] = version_arr[0]+'.'+version_arr[1]
3335

3436
setup(
35-
name = 'JuPyMake',
36-
version = '0.8',
37-
description = 'A simple interface to Polymake',
38-
author = 'Sebastian Gutsche',
39-
author_email = 'sebastian.gutsche@gmail.com',
40-
url = 'https://github.com/sebasguts/JuPyMake',
4137
ext_modules= [ Extension( "JuPyMake",
4238
[ "JuPyMake.cpp" ],
4339
extra_compile_args=polymake_cflags,
4440
extra_link_args=polymake_ldflags,
4541
define_macros = macro_list ) ],
46-
package_data = { '': [ "COPYING", "GPLv2" ] },
4742
)

0 commit comments

Comments
 (0)
Please sign in to comment.