Skip to content

Commit df95d97

Browse files
KOLANICHalthonos
authored andcommitted
Moved the metadata into setup.cfg
1 parent 4851703 commit df95d97

File tree

3 files changed

+44
-39
lines changed

3 files changed

+44
-39
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=41", "wheel", "setuptools_scm[toml]>=3.4.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.cfg

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[metadata]
2+
name = setuptools-rust
3+
author = Nikolay Kim
4+
author_email = [email protected]
5+
license = MIT
6+
description = Setuptools rust extension plugin
7+
keywords = distutils, setuptools, rust
8+
url = https://github.com/PyO3/setuptools-rust
9+
long_description = file: README.md
10+
long_description_content_type = text/markdown
11+
classifiers =
12+
Topic :: Software Development :: Version Control
13+
License :: OSI Approved :: MIT License
14+
Intended Audience :: Developers
15+
Programming Language :: Python :: 3
16+
Programming Language :: Python :: 3.5
17+
Programming Language :: Python :: 3.6
18+
Programming Language :: Python :: 3.7
19+
Development Status :: 5 - Production/Stable
20+
Operating System :: POSIX
21+
Operating System :: MacOS :: MacOS X
22+
Operating System :: Microsoft :: Windows
23+
24+
[options]
25+
packages = setuptools_rust
26+
zip_safe = True
27+
install_requires = semantic_version>=2.6.0; toml>=0.9.0
28+
setup_requires = setuptools>=41; wheel; setuptools_scm[toml]>=3.4.3
29+
30+
[options.entry_points]
31+
distutils.commands =
32+
check_rust=setuptools_rust.check:check_rust
33+
clean_rust=setuptools_rust:clean_rust
34+
build_ext=setuptools_rust:build_ext
35+
build_rust=setuptools_rust:build_rust
36+
test_rust=setuptools_rust:test_rust
37+
tomlgen_rust=setuptools_rust:tomlgen_rust

setup.py

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,5 @@
22

33
from setuptools import setup
44

5-
version = "0.11.0"
6-
7-
setup(
8-
name="setuptools-rust",
9-
version=version,
10-
author="Nikolay Kim",
11-
author_email="[email protected]",
12-
url="https://github.com/PyO3/setuptools-rust",
13-
keywords="distutils setuptools rust",
14-
description="Setuptools rust extension plugin",
15-
long_description=open("README.md").read(),
16-
long_description_content_type="text/markdown",
17-
license="MIT",
18-
packages=["setuptools_rust"],
19-
install_requires=["semantic_version>=2.6.0", "toml>=0.9.0"],
20-
zip_safe=True,
21-
classifiers=[
22-
"Topic :: Software Development :: Version Control",
23-
"License :: OSI Approved :: MIT License",
24-
"Intended Audience :: Developers",
25-
"Programming Language :: Python :: 3",
26-
"Programming Language :: Python :: 3.5",
27-
"Programming Language :: Python :: 3.6",
28-
"Programming Language :: Python :: 3.7",
29-
"Development Status :: 5 - Production/Stable",
30-
"Operating System :: POSIX",
31-
"Operating System :: MacOS :: MacOS X",
32-
"Operating System :: Microsoft :: Windows",
33-
],
34-
entry_points="""
35-
[distutils.commands]
36-
check_rust=setuptools_rust.check:check_rust
37-
clean_rust=setuptools_rust:clean_rust
38-
build_ext=setuptools_rust:build_ext
39-
build_rust=setuptools_rust:build_rust
40-
test_rust=setuptools_rust:test_rust
41-
tomlgen_rust=setuptools_rust:tomlgen_rust
42-
""",
43-
)
5+
if __name__ == "__main__":
6+
setup()

0 commit comments

Comments
 (0)