Skip to content

Commit

Permalink
1.1.3 (2024-01-25)
Browse files Browse the repository at this point in the history
------------------
- Cleanup.
  • Loading branch information
Adam Karpierz committed Jan 26, 2024
1 parent 1d0bd7e commit ab23d79
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
@@ -1,7 +1,7 @@
Changelog
=========

1.1.2 (2024-01-24)
1.1.3 (2024-01-25)
------------------
- Cleanup.

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

include README.rst
include CHANGES.rst
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -73,7 +73,7 @@ License

| Copyright (c) 2020-2024 Adam Karpierz
| Licensed under the zlib/libpng License
| https://opensource.org/licenses/Zlib
| https://opensource.org/license/zlib
| Please refer to the accompanying LICENSE file.
Authors
Expand Down
15 changes: 10 additions & 5 deletions pyproject.toml
@@ -1,21 +1,21 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

[build-system]
build-backend = 'setuptools.build_meta'
requires = ['setuptools>=68.2.2', 'wheel>=0.42.0', 'packaging>=23.2.0', 'tox>=4.11.3']

[project]
name = 'pkg-about'
version = '1.1.2'
version = '1.1.3'
description = 'Shares Python package metadata at runtime.'
urls.Homepage = 'https://pypi.org/project/pkg-about/'
urls.Documentation = 'https://pkg-about.readthedocs.io/'
urls.Download = 'https://pypi.org/project/pkg-about/'
urls.Source = 'https://github.com/karpierz/pkg-about'
urls.Issues = 'https://github.com/karpierz/pkg-about/issues'
license = { text = 'zlib/libpng License ; https://opensource.org/licenses/Zlib' }
license = { text = 'zlib/libpng License ; https://opensource.org/license/zlib' }
authors = [
{ name = 'Adam Karpierz' },
{ email = 'adam@karpierz.net' },
Expand Down Expand Up @@ -98,6 +98,11 @@ where = ['src']
pkg_about = [
]

[tool.setuptools.exclude-package-data]
'*' = ['*.c','*.h','*.cpp','*.hpp','*.cxx','*.hxx','*.pyx','*.pxd']
pkg_about = [
]

[tool.coverage.run]
source = [
'pkg_about',
Expand Down Expand Up @@ -232,8 +237,8 @@ deps =
depends = py{38,39,310,311,312}, pypy{39,310}win, docs
basepython = {[base]basepython}
commands =
{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; from setuptools import setup ; setup()" --quiet sdist --formats=zip
{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; from setuptools import setup ; setup()" --quiet bdist_wheel
{envpython} -W ignore -c "from setuptools import setup ; setup()" --quiet sdist --formats=zip
{envpython} -W ignore -c "from setuptools import setup ; setup()" --quiet bdist_wheel
# check out for PyPi
{envpython} -m twine check dist/*
deps =
Expand Down
2 changes: 1 addition & 1 deletion src/pkg_about/__about__.py
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

__import__("_about", globals=globals(), level=1).about()
__copyright__ = f"Copyright (c) 2020-2024 {__author__}" # noqa
2 changes: 1 addition & 1 deletion src/pkg_about/__init__.py
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

from .__about__ import * ; del __about__ # noqa

Expand Down
2 changes: 1 addition & 1 deletion src/pkg_about/_about.py
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

__all__ = ('about', 'about_from_setup')

Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

__all__ = ('top_dir', 'test_dir')

Expand Down
2 changes: 1 addition & 1 deletion tests/__main__.py
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

import unittest
import sys
Expand Down
14 changes: 7 additions & 7 deletions tests/test_main.py
@@ -1,6 +1,6 @@
# Copyright (c) 2020 Adam Karpierz
# Licensed under the zlib/libpng License
# https://opensource.org/licenses/Zlib
# https://opensource.org/license/zlib

import unittest
from pathlib import Path
Expand All @@ -16,10 +16,10 @@ def setUp(self):
def test_about(self):
pkg_about.about("pkg_about")
self.assertEqual(__title__, "pkg-about")
self.assertEqual(__version__, "1.1.2")
self.assertEqual(__version__, "1.1.3")
self.assertEqual(__version_info__.major, 1)
self.assertEqual(__version_info__.minor, 1)
self.assertEqual(__version_info__.micro, 2)
self.assertEqual(__version_info__.micro, 3)
self.assertEqual(__version_info__.releaselevel, "final")
self.assertEqual(__version_info__.serial, 0)
self.assertEqual(__summary__, "Shares Python package metadata at runtime.")
Expand All @@ -30,16 +30,16 @@ def test_about(self):
self.assertEqual(__maintainer__, "Adam Karpierz")
self.assertEqual(__maintainer_email__, "adam@karpierz.net")
self.assertEqual(__license__,
"zlib/libpng License ; https://opensource.org/licenses/Zlib")
"zlib/libpng License ; https://opensource.org/license/zlib")
self.assertIsNone(__copyright__)

def test_about_from_setup(self):
pkg_about.about_from_setup(Path(__file__).resolve().parent.parent)
self.assertEqual(about.__title__, "pkg-about")
self.assertEqual(about.__version__, "1.1.2")
self.assertEqual(about.__version__, "1.1.3")
self.assertEqual(about.__version_info__.major, 1)
self.assertEqual(about.__version_info__.minor, 1)
self.assertEqual(about.__version_info__.micro, 2)
self.assertEqual(about.__version_info__.micro, 3)
self.assertEqual(about.__version_info__.releaselevel, "final")
self.assertEqual(about.__version_info__.serial, 0)
self.assertEqual(about.__summary__, "Shares Python package metadata at runtime.")
Expand All @@ -50,5 +50,5 @@ def test_about_from_setup(self):
self.assertEqual(about.__maintainer__, "Adam Karpierz")
self.assertEqual(about.__maintainer_email__, "adam@karpierz.net")
self.assertEqual(about.__license__,
"zlib/libpng License ; https://opensource.org/licenses/Zlib")
"zlib/libpng License ; https://opensource.org/license/zlib")
self.assertEqual(about.__copyright__, "Copyright (c) 2020-2024 Adam Karpierz")

0 comments on commit ab23d79

Please sign in to comment.