Skip to content

Commit 9d7dc76

Browse files
authored
packaging: introduce pyproject.toml (#316)
phonenumberslite must now be build from python/phonenumberslite The setup.py file is kept for retrocompatibility, in case some script relies on `python setup.py <something-else-than-build-or-install>`
1 parent aceeec9 commit 9d7dc76

File tree

14 files changed

+121
-84
lines changed

14 files changed

+121
-84
lines changed

python/MANIFEST.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
recursive-include tests *.py
21
include HISTORY.md
32
include LICENSE
3+
include appspot.py
4+
include run_stubtest.py
45
include testwrapper.py
6+
include testpb2.py
7+
recursive-include tests *.py *.pyi
8+
recursive-include phonenumbers/pb2 *.py
9+
recursive-exclude phonenumberslite *

python/phonenumberslite/HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../HISTORY.md

python/phonenumberslite/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../MANIFEST.in

python/phonenumberslite/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../README.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../phonenumbers
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
[project]
2+
name = "phonenumberslite"
3+
4+
authors = [{name = "David Drysdale", email = "[email protected]"}]
5+
classifiers = [
6+
"Development Status :: 5 - Production/Stable",
7+
"Intended Audience :: Developers",
8+
"Operating System :: OS Independent",
9+
"Topic :: Communications :: Telephony",
10+
"Programming Language :: Python :: 2",
11+
"Programming Language :: Python :: 2.5",
12+
"Programming Language :: Python :: 2.6",
13+
"Programming Language :: Python :: 2.7",
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.3",
16+
"Programming Language :: Python :: 3.4",
17+
"Programming Language :: Python :: 3.5",
18+
"Programming Language :: Python :: 3.6",
19+
"Programming Language :: Python :: 3.7",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: Implementation :: CPython",
26+
"Programming Language :: Python :: Implementation :: PyPy",
27+
]
28+
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers."
29+
dynamic = ["version"]
30+
license = "Apache-2.0"
31+
readme = "README.md"
32+
requires-python = ">=2.5"
33+
urls = {homepage = "https://github.com/daviddrysdale/python-phonenumbers"}
34+
35+
[build-system]
36+
requires = ["setuptools"]
37+
build-backend = "setuptools.build_meta"
38+
39+
[tool.setuptools.dynamic]
40+
version = {attr = "phonenumbers.__version__"}
41+
42+
[tool.setuptools]
43+
# phonenumbers/pb2 is considered as package data
44+
include-package-data = false
45+
46+
packages = ["phonenumbers", "phonenumbers.data", "phonenumbers.shortdata"]

python/phonenumberslite/setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../setup.cfg

python/phonenumberslite/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../setup.py

python/phonenumberslite/tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tests

0 commit comments

Comments
 (0)