-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to hatchling * Add news fragment * Duplicate exclude pattern from MANIFEST.in Also rename .readthedocs.yml to its un-deprecated name * Ignore a few more common patterns * Style * Fix build (no need for check-manifest anymore) * Stop checking manifest in ci too * Style * Update src/towncrier/_version.py Co-authored-by: Adi Roiban <[email protected]> * Deprecate towncrier.__version__ * Fix type --------- Co-authored-by: Adi Roiban <[email protected]>
Showing
13 changed files
with
160 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
*.egg-info/ | ||
*.lock | ||
*.o | ||
*.py[co] | ||
*.pyproj | ||
*.so | ||
_trial_temp*/ | ||
build/ | ||
dropin.cache | ||
doc/ | ||
docs/_build/ | ||
dist/ | ||
venv/ | ||
htmlcov/ | ||
.coverage | ||
*~ | ||
*.lock | ||
apidocs/ | ||
.vs/ | ||
*.pyproj | ||
.DS_Store | ||
.eggs | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.vscode | ||
.direnv | ||
.envrc | ||
.idea | ||
.mypy_cache | ||
.nox/ | ||
.pytest_cache | ||
.python-version | ||
.vs/ | ||
.vscode | ||
Justfile | ||
_trial_temp*/ | ||
apidocs/ | ||
dist/ | ||
doc/ | ||
docs/_build/ | ||
dropin.cache | ||
htmlcov/ | ||
tmp/ | ||
venv/ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,80 @@ | ||
[build-system] | ||
requires = [ | ||
"hatchling ~= 1.12.2", | ||
"wheel ~= 0.38.4", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
adiroiban
Author
Member
|
||
"incremental == 22.10.0", | ||
] | ||
build-backend = "hatchling.build" | ||
|
||
|
||
[project] | ||
dynamic = ["version"] | ||
name = "towncrier" | ||
description = "Building newsfiles for your project." | ||
readme = "README.rst" | ||
license = "MIT" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3", | ||
"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", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"click", | ||
"click-default-group", | ||
"incremental", | ||
"jinja2", | ||
"setuptools", | ||
"tomli; python_version<'3.11'", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"packaging", | ||
"sphinx >= 5", | ||
"furo", | ||
"twisted", | ||
] | ||
|
||
[project.scripts] | ||
towncrier = "towncrier._shell:cli" | ||
|
||
[project.urls] | ||
Documentation = "https://towncrier.readthedocs.io/" | ||
Chat = "https://web.libera.chat/?channels=%23twisted" | ||
"Mailing list" = "https://mail.python.org/mailman3/lists/twisted.python.org/" | ||
Issues = "https://github.com/twisted/towncrier/issues" | ||
Repository = "https://github.com/twisted/towncrier" | ||
Tests = "https://github.com/twisted/towncrier/actions?query=branch%3Atrunk" | ||
Coverage = "https://codecov.io/gh/twisted/towncrier" | ||
Distribution = "https://pypi.org/project/towncrier" | ||
|
||
|
||
[tool.hatch.version] | ||
source = "code" | ||
path = "src/towncrier/_version.py" | ||
expression = "_hatchling_version" | ||
|
||
[tool.hatch.build] | ||
exclude = [ | ||
"admin", | ||
"bin", | ||
"docs", | ||
".readthedocs.yaml", | ||
"src/towncrier/newsfragments", | ||
] | ||
|
||
|
||
[tool.towncrier] | ||
package = "towncrier" | ||
package_dir = "src" | ||
|
@@ -77,14 +154,6 @@ module = 'incremental' | |
ignore_missing_imports = true | ||
|
||
|
||
[build-system] | ||
requires = [ | ||
"setuptools ~= 44.1.1", | ||
"wheel ~= 0.36.2", | ||
"incremental == 22.10.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.coverage.run] | ||
parallel = true | ||
branch = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) Amber Brown, 2015 | ||
# See LICENSE for details. | ||
|
||
from incremental import Version | ||
from twisted.trial.unittest import TestCase | ||
|
||
from towncrier._version import _hatchling_version | ||
|
||
|
||
class TestPackaging(TestCase): | ||
def test_version_warning(self): | ||
""" | ||
Import __version__ from towncrier returns an Incremental version object | ||
and raises a warning. | ||
""" | ||
with self.assertWarnsRegex( | ||
DeprecationWarning, "Accessing towncrier.__version__ is deprecated.*" | ||
): | ||
from towncrier import __version__ | ||
|
||
self.assertIsInstance(__version__, Version) | ||
self.assertEqual(_hatchling_version, __version__.short()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Are you sure that wheel is actually needed? I don't grep it being used anywhere.