zipcodes 1.2.0__tar.gz → 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: zipcodes
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Query U.S. state zipcodes without SQLite.
5
- Home-page: https://github.com/seanpianka/zipcodes
6
- Author: Sean Pianka
7
- Author-email: pianka@eml.cc
8
- License: MIT
9
- Keywords: zipcode zip code us state query filter validate sqlite
10
- Platform: UNKNOWN
5
+ Author-email: Sean Pianka <pianka@eml.cc>
6
+ Project-URL: Homepage, https://github.com/seanpianka/zipcodes
7
+ Project-URL: Issues, https://github.com/seanpianka/zipcodes/issues
8
+ Keywords: zipcode,zip,code,us,state,query,filter,validate,sqlite
11
9
  Classifier: Development Status :: 5 - Production/Stable
12
10
  Classifier: Intended Audience :: Developers
13
11
  Classifier: Topic :: Software Development :: Build Tools
@@ -19,8 +17,8 @@ Classifier: Programming Language :: Python :: 3.6
19
17
  Classifier: Programming Language :: Python :: 3.7
20
18
  Classifier: Programming Language :: Python :: 3.8
21
19
  Classifier: Programming Language :: Python :: 3.9
20
+ Requires-Python: >=2.6
22
21
  Description-Content-Type: text/markdown
23
- License-File: LICENSE.txt
24
22
 
25
23
  # Zipcodes
26
24
 
@@ -52,7 +50,7 @@ The Python `sqlite3` module is not required in order to use this package.
52
50
  'zip_code_type': 'STANDARD'}[
53
51
  ```
54
52
 
55
- ⚠️ The zipcode data was last updated on: **Oct. 3, 2021** ⚠️
53
+ ⚠️ The zipcode data was last updated on: **Feb. 16, 2025** ⚠️
56
54
 
57
55
  [![Downloads](https://pepy.tech/badge/zipcodes/month)](https://pepy.tech/project/zipcodes/month)
58
56
  [![Supported Versions](https://img.shields.io/pypi/pyversions/zipcodes.svg)](https://pypi.org/project/zipcodes)
@@ -151,12 +149,12 @@ $ python tests/__init__.py
151
149
  >>> zipcodes.matching('0646a')
152
150
  Traceback (most recent call last):
153
151
  ...
154
- TypeError: Invalid characters, zipcode may only contain digits and "-".
152
+ ValueError: Invalid characters, zipcode may only contain digits and "-".
155
153
 
156
154
  >>> zipcodes.matching('064690')
157
155
  Traceback (most recent call last):
158
156
  ...
159
- TypeError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
157
+ ValueError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
160
158
 
161
159
  >>> zipcodes.matching(None)
162
160
  Traceback (most recent call last):
@@ -267,5 +265,3 @@ True
267
265
  >>> # Have any other ideas? Make a pull request and start contributing today!
268
266
  >>> # Made with love by Sean Pianka
269
267
  ```
270
-
271
-
@@ -28,7 +28,7 @@ The Python `sqlite3` module is not required in order to use this package.
28
28
  'zip_code_type': 'STANDARD'}[
29
29
  ```
30
30
 
31
- ⚠️ The zipcode data was last updated on: **Oct. 3, 2021** ⚠️
31
+ ⚠️ The zipcode data was last updated on: **Feb. 16, 2025** ⚠️
32
32
 
33
33
  [![Downloads](https://pepy.tech/badge/zipcodes/month)](https://pepy.tech/project/zipcodes/month)
34
34
  [![Supported Versions](https://img.shields.io/pypi/pyversions/zipcodes.svg)](https://pypi.org/project/zipcodes)
@@ -127,12 +127,12 @@ $ python tests/__init__.py
127
127
  >>> zipcodes.matching('0646a')
128
128
  Traceback (most recent call last):
129
129
  ...
130
- TypeError: Invalid characters, zipcode may only contain digits and "-".
130
+ ValueError: Invalid characters, zipcode may only contain digits and "-".
131
131
 
132
132
  >>> zipcodes.matching('064690')
133
133
  Traceback (most recent call last):
134
134
  ...
135
- TypeError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
135
+ ValueError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
136
136
 
137
137
  >>> zipcodes.matching(None)
138
138
  Traceback (most recent call last):
@@ -0,0 +1 @@
1
+ 1.3.0
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "zipcodes"
7
+ version = "1.3.0"
8
+ authors = [
9
+ { name="Sean Pianka", email="pianka@eml.cc" },
10
+ ]
11
+ description="Query U.S. state zipcodes without SQLite."
12
+ readme = "README.md"
13
+ requires-python = ">=2.6"
14
+ classifiers = [
15
+ # How mature is this project? Common values are
16
+ # 3 - Alpha
17
+ # 4 - Beta
18
+ # 5 - Production/Stable
19
+ "Development Status :: 5 - Production/Stable",
20
+ # Indicate who your project is intended for
21
+ "Intended Audience :: Developers",
22
+ "Topic :: Software Development :: Build Tools",
23
+ # Pick your license as you wish (should match "license" above)
24
+ "License :: OSI Approved :: MIT License",
25
+ # Specify the Python versions you support here. In particular, ensure
26
+ # that you indicate whether you support Python 2, Python 3 or both.
27
+ "Programming Language :: Python :: 2.6",
28
+ "Programming Language :: Python :: 2.7",
29
+ "Programming Language :: Python :: 3.5",
30
+ "Programming Language :: Python :: 3.6",
31
+ "Programming Language :: Python :: 3.7",
32
+ "Programming Language :: Python :: 3.8",
33
+ "Programming Language :: Python :: 3.9",
34
+ ]
35
+ keywords = ["zipcode", "zip", "code", "us", "state", "query", "filter", "validate", "sqlite"]
36
+
37
+ [project.urls]
38
+ Homepage = "https://github.com/seanpianka/zipcodes"
39
+ Issues = "https://github.com/seanpianka/zipcodes/issues"
40
+
41
+ [tool.setuptools]
42
+ license-files = []
@@ -1,6 +1,10 @@
1
1
  [bdist_wheel]
2
2
  universal = 1
3
3
 
4
+ [options]
5
+ packages = find:
6
+ include_package_data = true
7
+
4
8
  [egg_info]
5
9
  tag_build =
6
10
  tag_date = 0
Binary file
@@ -1,13 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: zipcodes
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Query U.S. state zipcodes without SQLite.
5
- Home-page: https://github.com/seanpianka/zipcodes
6
- Author: Sean Pianka
7
- Author-email: pianka@eml.cc
8
- License: MIT
9
- Keywords: zipcode zip code us state query filter validate sqlite
10
- Platform: UNKNOWN
5
+ Author-email: Sean Pianka <pianka@eml.cc>
6
+ Project-URL: Homepage, https://github.com/seanpianka/zipcodes
7
+ Project-URL: Issues, https://github.com/seanpianka/zipcodes/issues
8
+ Keywords: zipcode,zip,code,us,state,query,filter,validate,sqlite
11
9
  Classifier: Development Status :: 5 - Production/Stable
12
10
  Classifier: Intended Audience :: Developers
13
11
  Classifier: Topic :: Software Development :: Build Tools
@@ -19,8 +17,8 @@ Classifier: Programming Language :: Python :: 3.6
19
17
  Classifier: Programming Language :: Python :: 3.7
20
18
  Classifier: Programming Language :: Python :: 3.8
21
19
  Classifier: Programming Language :: Python :: 3.9
20
+ Requires-Python: >=2.6
22
21
  Description-Content-Type: text/markdown
23
- License-File: LICENSE.txt
24
22
 
25
23
  # Zipcodes
26
24
 
@@ -52,7 +50,7 @@ The Python `sqlite3` module is not required in order to use this package.
52
50
  'zip_code_type': 'STANDARD'}[
53
51
  ```
54
52
 
55
- ⚠️ The zipcode data was last updated on: **Oct. 3, 2021** ⚠️
53
+ ⚠️ The zipcode data was last updated on: **Feb. 16, 2025** ⚠️
56
54
 
57
55
  [![Downloads](https://pepy.tech/badge/zipcodes/month)](https://pepy.tech/project/zipcodes/month)
58
56
  [![Supported Versions](https://img.shields.io/pypi/pyversions/zipcodes.svg)](https://pypi.org/project/zipcodes)
@@ -151,12 +149,12 @@ $ python tests/__init__.py
151
149
  >>> zipcodes.matching('0646a')
152
150
  Traceback (most recent call last):
153
151
  ...
154
- TypeError: Invalid characters, zipcode may only contain digits and "-".
152
+ ValueError: Invalid characters, zipcode may only contain digits and "-".
155
153
 
156
154
  >>> zipcodes.matching('064690')
157
155
  Traceback (most recent call last):
158
156
  ...
159
- TypeError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
157
+ ValueError: Invalid format, zipcode must be of the format: "#####" or "#####-####"
160
158
 
161
159
  >>> zipcodes.matching(None)
162
160
  Traceback (most recent call last):
@@ -267,5 +265,3 @@ True
267
265
  >>> # Have any other ideas? Make a pull request and start contributing today!
268
266
  >>> # Made with love by Sean Pianka
269
267
  ```
270
-
271
-
@@ -2,8 +2,8 @@ LICENSE.txt
2
2
  MANIFEST.in
3
3
  README.md
4
4
  VERSION.txt
5
+ pyproject.toml
5
6
  setup.cfg
6
- setup.py
7
7
  zipcodes/__init__.py
8
8
  zipcodes/zips.json.bz2
9
9
  zipcodes.egg-info/PKG-INFO
@@ -1 +0,0 @@
1
- 1.2.0
zipcodes-1.2.0/setup.py DELETED
@@ -1,54 +0,0 @@
1
- # Always prefer setuptools over distutils
2
- from setuptools import setup, find_packages
3
-
4
- with open("README.md") as f:
5
- readme = f.read()
6
-
7
- with open("VERSION.txt") as f:
8
- version = f.read()
9
-
10
- setup(
11
- name="zipcodes",
12
- # Versions should comply with PEP440. For a discussion on single-sourcing
13
- # the version across setup.py and the project code, see
14
- # https://packaging.python.org/en/latest/single_source_version.html
15
-
16
- # remove whitespace (some IDE's add trailing newlines automatically)
17
- version=version.strip(),
18
- description="Query U.S. state zipcodes without SQLite.",
19
- long_description=readme,
20
- long_description_content_type="text/markdown",
21
- # The project's main homepage.
22
- url="https://github.com/seanpianka/zipcodes",
23
- # Author details
24
- author="Sean Pianka",
25
- author_email="pianka@eml.cc",
26
- # Choose your license
27
- license="MIT",
28
- packages=find_packages(exclude=("ci", "tests")),
29
- # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
30
- classifiers=[
31
- # How mature is this project? Common values are
32
- # 3 - Alpha
33
- # 4 - Beta
34
- # 5 - Production/Stable
35
- "Development Status :: 5 - Production/Stable",
36
- # Indicate who your project is intended for
37
- "Intended Audience :: Developers",
38
- "Topic :: Software Development :: Build Tools",
39
- # Pick your license as you wish (should match "license" above)
40
- "License :: OSI Approved :: MIT License",
41
- # Specify the Python versions you support here. In particular, ensure
42
- # that you indicate whether you support Python 2, Python 3 or both.
43
- "Programming Language :: Python :: 2.6",
44
- "Programming Language :: Python :: 2.7",
45
- "Programming Language :: Python :: 3.5",
46
- "Programming Language :: Python :: 3.6",
47
- "Programming Language :: Python :: 3.7",
48
- "Programming Language :: Python :: 3.8",
49
- "Programming Language :: Python :: 3.9",
50
- ],
51
- # What does your project relate to?
52
- keywords="zipcode zip code us state query filter validate sqlite",
53
- include_package_data=True,
54
- )
Binary file
File without changes
File without changes
File without changes