Skip to content

Commit f1ed02e

Browse files
committed
Package pyasn1 with pyproject.toml (#90)
Deprecate setup.py and setup.cfg
1 parent 93c4d4f commit f1ed02e

5 files changed

Lines changed: 68 additions & 68 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
allow-prereleases: true
5353
cache: "pip"
5454
- name: "Update pip"
55-
run: python -m pip install --upgrade pip setuptools wheel
55+
run: python -m pip install --upgrade pip
5656
- name: "Install tox dependencies"
5757
run: python -m pip install --upgrade tox tox-gh-actions
5858
- name: "Run tox for ${{ matrix.python-version }}"
@@ -71,7 +71,7 @@ jobs:
7171
python-version: "3.x"
7272
cache: "pip"
7373
- name: "Update pip"
74-
run: python -m pip install --upgrade pip setuptools wheel
74+
run: python -m pip install --upgrade pip
7575
- name: "Install 'build'"
7676
run: python -m pip install --upgrade build
7777
- name: "Run 'build'"

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
python-version: "3.x"
4141
- name: "Update pip"
42-
run: python -m pip install --upgrade pip setuptools wheel
42+
run: python -m pip install --upgrade pip
4343
- name: "Install 'build' and 'twine'"
4444
run: python -m pip install --upgrade build twine
4545
- name: "Run 'build'"

pyproject.toml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,68 @@ requires = [
33
"setuptools"
44
]
55
build-backend = "setuptools.build_meta"
6+
7+
[project]
8+
name = "pyasn1"
9+
license.text = "BSD-2-Clause" # Replace with 'license' once Python 3.8 is dropped
10+
description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs (X.208)"
11+
readme = "README.md"
12+
authors = [
13+
{name = "Ilya Etingof", email = "etingof@gmail.com"}
14+
]
15+
maintainers = [
16+
{name = "pyasn1 maintenance organization"},
17+
{name = "Christian Heimes", email = "christian@python.org"}
18+
]
19+
requires-python = ">=3.8"
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Environment :: Console",
23+
"Intended Audience :: Developers",
24+
"Intended Audience :: Education",
25+
"Intended Audience :: Information Technology",
26+
"Intended Audience :: System Administrators",
27+
"Intended Audience :: Telecommunications Industry",
28+
"Natural Language :: English",
29+
"Operating System :: OS Independent",
30+
"Programming Language :: Python :: 3",
31+
"Programming Language :: Python :: 3.8",
32+
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
36+
"Programming Language :: Python :: 3.13",
37+
"Programming Language :: Python :: Implementation :: CPython",
38+
"Programming Language :: Python :: Implementation :: PyPy",
39+
"Topic :: Communications",
40+
"Topic :: Software Development :: Libraries :: Python Modules"
41+
]
42+
dynamic = ["version"]
43+
44+
[project.urls]
45+
"Homepage" = "https://github.com/pyasn1/pyasn1"
46+
"Documentation" = "https://pyasn1.readthedocs.io"
47+
"Source" = "https://github.com/pyasn1/pyasn1"
48+
"Issues" = "https://github.com/pyasn1/pyasn1/issues"
49+
"Changelog" = "https://pyasn1.readthedocs.io/en/latest/changelog.html"
50+
51+
[tool.setuptools]
52+
zip-safe = true
53+
platforms = ["any"]
54+
# Additional files to include in the distribution (replaces MANIFEST.in functionality)
55+
include-package-data = true
56+
license-files = ["LICENSE.rst"] # Replace with 'project.license-files' once Python 3.8 is dropped
57+
58+
[tool.setuptools.dynamic]
59+
version = {attr = "pyasn1.__version__"}
60+
61+
[tool.setuptools.packages.find]
62+
include = [
63+
"pyasn1*"
64+
]
65+
66+
[tool.setuptools.package-data]
67+
"*" = [
68+
"*.rst",
69+
"*.md"
70+
]

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)