Skip to content

Commit

Permalink
Replace setup.py with pyproject.toml/setup.cfg.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed May 9, 2022
1 parent 3993000 commit e714aa4
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 75 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Test with unittest
run: |
python setup.py test -v
python tests/test_all.py
env:
PYTHONHASHSEED: 0
- name: Test with coverage
run: |
pip install coverage
coverage run --branch setup.py test
coverage run --branch tests/test_all.py
coverage xml
env:
PYTHONHASHSEED: 0
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ Released: Not yet.
date/time to be inserted into created .exe files. Thanks to Somber Night for the
patch.

- util

- Fixed #161: Updated test case.

- wheel

- Updated to write archive path of RECORD to RECORD instead of staging path.
Thanks to Pieter Pas for the patch.

- Fixed #169: Removed usage of deprecated imp module in favour of importlib.

0.3.4
~~~~~

Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools >= 44",
"wheel >= 0.29.0",
]
build-backend = 'setuptools.build_meta'
39 changes: 39 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[metadata]
name = distlib
version = attr: distlib.__version__
description = Distribution utilities
long_description = Low-level components of distutils2/packaging, augmented with higher-level APIs for making packaging easier.
url = https://github.com/pypa/distlib
author = Vinay Sajip
author_email = vinay_sajip@red-dove.com
license = Python license
license_file = LICENSE.txt
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Python Software Foundation License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development
project_urls =
Documentation = https://distlib.readthedocs.io/
Source = https://github.com/pypa/distlib
Tracker = https://github.com/pypa/distlib/issues

[options]
platforms = any
packages = distlib
include_package_data = True

[bdist_wheel]
universal = 1
71 changes: 0 additions & 71 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from compat import unittest

# Always find our sources first
sys.path.insert(0, '..')
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
import distlib_tests
sys.path.pop(0)

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[tox]
envlist = py27, py36, py37, py38, py39, py310, py311, py312, pypy, pypy3
isolated_build = True

[testenv]
setenv =
PYTHONHASHSEED=0
passenv = APPVEYOR
commands = python setup.py test
commands = python tests/test_all.py

0 comments on commit e714aa4

Please sign in to comment.