Skip to content

Commit c7ca9a1

Browse files
Merge pull request #809 from pyathena-dev/feat/807-license-metadata
Use collective LICENSE attribution and PEP 639 license metadata
2 parents 3a80725 + 10bb29e commit c7ca9a1

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2017 laughingman7743
1+
Copyright 2017 The PyAthena authors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in

‎docs/conf.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def setup(app):
9999
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
100100

101101
project = "PyAthena"
102-
copyright = f"{datetime.now(timezone.utc).year}, laughingman7743"
103-
author = "laughingman7743"
102+
copyright = f"2017-{datetime.now(timezone.utc).year}, The PyAthena authors"
103+
author = "The PyAthena authors"
104104
# Version will be set dynamically in setup() function
105105
version = ""
106106
release = ""

‎docs/contributing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The short notice and license reference follow [Google's MIT header example](http
134134
Identify any third-party material included in a new contribution and preserve its applicable copyright and license notices.
135135
Do not replace upstream notices with the original-file template above.
136136

137-
This policy does not require adding headers to existing files or changing existing notices, including the root `LICENSE`.
137+
This policy does not require adding headers to existing files or changing their existing notices.
138138
Existing non-empty files that contain only the maintainer's original work carry the header above, dated with the year of their earliest surviving content other than import statements.
139139
The pull request template is an exception because its content is copied into each pull request.
140140
Other existing files keep their current notices.

‎pyproject.toml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name = "PyAthena"
33
description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"
44
authors = [
5+
{name = "The PyAthena authors"},
6+
]
7+
maintainers = [
58
{name = "laughingman7743", email = "laughingman7743@gmail.com"},
69
]
710
dependencies = [
@@ -13,11 +16,11 @@ dependencies = [
1316
]
1417
requires-python = ">=3.10"
1518
readme = "README.md"
16-
license = {file = "LICENSE"}
19+
license = "MIT"
20+
license-files = ["LICENSE", "NOTICE"]
1721
classifiers = [
1822
"Development Status :: 4 - Beta",
1923
"Intended Audience :: Developers",
20-
"License :: OSI Approved :: MIT License",
2124
"Operating System :: OS Independent",
2225
"Topic :: Database :: Front-Ends",
2326
"Programming Language :: Python :: 3",
@@ -95,7 +98,7 @@ dev = [
9598
]
9699

97100
[build-system]
98-
requires = ["hatchling", "hatch-vcs"]
101+
requires = ["hatchling>=1.27", "hatch-vcs"]
99102
build-backend = "hatchling.build"
100103

101104
[tool.hatch.metadata]

0 commit comments

Comments
 (0)