File: pyproject.diff

package info (click to toggle)
python-async-generator 1.10-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: python: 1,230; makefile: 18
file content (75 lines) | stat: -rw-r--r-- 2,618 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Description: add pyproject.toml for recent setuptools
Forwarded: https://github.com/python-trio/async_generator/issues/36
Author: Nicolas Boulenguez <nicolas@debian.org>

--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,32 @@
+[build-system]
+requires = ["setuptools >= 77.0.3"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "async_generator"
+description = "Async generators and context managers for Python 3.5+"
+readme = "README.rst"
+authors = [
+  {name = "Nathaniel J. Smith", email = "njs@pobox.com"},
+]
+license = "MIT OR Apache-2.0"
+license-files = ["LICENSE", "LICENSE.APACHE2", "LICENSE.MIT"]
+requires-python = ">= 3.5"
+keywords = ["async"]
+classifiers = [
+  "Development Status :: 5 - Production/Stable",
+  "Intended Audience :: Developers",
+  "Programming Language :: Python :: Implementation :: CPython",
+  "Programming Language :: Python :: Implementation :: PyPy",
+  "Programming Language :: Python :: 3 :: Only",
+  "Programming Language :: Python :: 3.5",
+  "Programming Language :: Python :: 3.6",
+  "Framework :: AsyncIO",
+]
+dynamic = ["version"]
+
+[project.urls]
+Homepage = "https://github.com/python-trio/async_generator"
+
+[tool.setuptools.dynamic]
+version = {attr = "async_generator._version.__version__"}
--- a/setup.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from pathlib import Path
-
-from setuptools import setup, find_packages
-
-exec(open("async_generator/_version.py", encoding="utf-8").read())
-
-setup(
-    name="async_generator",
-    version=__version__,
-    description="Async generators and context managers for Python 3.5+",
-    # Just in case the cwd is not the root of the source tree, or python is
-    # not set to use utf-8 by default:
-    long_description=Path(__file__).with_name("README.rst").read_text('utf-8'),
-    author="Nathaniel J. Smith",
-    author_email="njs@pobox.com",
-    license="MIT -or- Apache License 2.0",
-    packages=find_packages(),
-    url="https://github.com/python-trio/async_generator",
-    python_requires=">=3.5",
-    keywords=["async"],
-    classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        "Intended Audience :: Developers",
-        "License :: OSI Approved :: MIT License",
-        "License :: OSI Approved :: Apache Software License",
-        "Programming Language :: Python :: Implementation :: CPython",
-        "Programming Language :: Python :: Implementation :: PyPy",
-        "Programming Language :: Python :: 3 :: Only",
-        "Programming Language :: Python :: 3.5",
-        "Programming Language :: Python :: 3.6",
-        "Framework :: AsyncIO",
-    ]
-)