Skip to content

Commit 290e73e

Browse files
authored
Merge pull request #17 from python/housekeeping
Metadata cleanup and minor housekeeping
2 parents d2b72a4 + eec9f80 commit 290e73e

File tree

5 files changed

+42
-12
lines changed

5 files changed

+42
-12
lines changed

.pre-commit-config.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: stable
4+
hooks:
5+
- id: black
6+
language_version: python3.8
7+
8+
- repo: https://github.com/pre-commit/mirrors-isort
9+
rev: v4.3.21
10+
hooks:
11+
- id: isort
12+
additional_dependencies: [toml]
13+
language_version: python3.8
14+
15+
- repo: https://github.com/pre-commit/pre-commit-hooks
16+
rev: v2.4.0
17+
hooks:
18+
- id: trailing-whitespace
19+
- id: end-of-file-fixer
20+
- id: debug-statements
21+
22+
- repo: https://github.com/asottile/setup-cfg-fmt
23+
rev: v1.9.0
24+
hooks:
25+
- id: setup-cfg-fmt

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
[build-system]
22
requires = ["setuptools>=40.8.0", "wheel"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.isort]
6+
atomic=true
7+
force_grid_wrap=0
8+
include_trailing_comma=true
9+
multi_line_output=3
10+
not_skip="__init__.py"
11+
use_parentheses=true

setup.cfg

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,30 @@ version = attr:tzdata.__version__
44
description = Provider of IANA time zone data
55
long_description = file: README.md
66
long_description_content_type = text/markdown
7+
url = https://github.com/python/tzdata
8+
author = Python Software Foundation
9+
author_email = [email protected]
710
license = Apache-2.0
11+
license_file = LICENSE
812
license_files =
913
LICENSE
1014
licenses/LICENSE_APACHE
11-
url = https://github.com/python/tzdata
12-
author = Python Software Foundation
13-
author_email = [email protected]
1415
classifiers =
15-
Development Status :: 3 - Alpha
16+
Development Status :: 4 - Beta
1617
Intended Audience :: Developers
1718
License :: OSI Approved :: Apache Software License
1819
Programming Language :: Python :: 2
1920
Programming Language :: Python :: 3
20-
21-
python_requires = *.* # This is a data-only package
22-
2321
project_urls =
2422
Bug Reports = https://github.com/python/tzdata/issues
2523
Source = https://github.com/python/tzdata
2624

2725
[options]
2826
packages = tzdata
29-
include_package_data=True
30-
package_dir=
27+
python_requires = >=2
28+
include_package_data = True
29+
package_dir =
3130
=src
3231

3332
[bdist_wheel]
34-
universal=1
33+
universal = 1

src/tzdata/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55
# This exposes the original IANA version number.
66
IANA_VERSION = "2020a"
7-

templates/__init__.py.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ __version__ = %%PACKAGE_VERSION%%
44

55
# This exposes the original IANA version number.
66
IANA_VERSION = %%IANA_VERSION%%
7-

0 commit comments

Comments
 (0)