nmtc-mapper 0.3.2__tar.gz → 0.3.3__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.
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/PKG-INFO +3 -1
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtc_mapper.egg-info/PKG-INFO +3 -1
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtc_mapper.egg-info/SOURCES.txt +0 -2
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtc_mapper.egg-info/requires.txt +3 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtc_mapper.egg-info/top_level.txt +0 -1
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/__init__.py +7 -1
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/pyproject.toml +11 -1
- nmtc_mapper-0.3.3/setup.py +6 -0
- nmtc_mapper-0.3.2/setup.py +0 -15
- nmtc_mapper-0.3.2/tests/__init__.py +0 -0
- nmtc_mapper-0.3.2/tests/conftest.py +0 -37
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/README.md +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtc_mapper.egg-info/dependency_links.txt +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/data/__init__.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/data/loader.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/data/schema.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/eligibility/__init__.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/eligibility/checker.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/geocoder/__init__.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/geocoder/census.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/nmtcmapper/mapper.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/setup.cfg +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/tests/test_checker.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/tests/test_loader.py +0 -0
- {nmtc_mapper-0.3.2 → nmtc_mapper-0.3.3}/tests/test_mapper.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nmtc-mapper
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Automated NMTC eligibility checker — geocode addresses and check Low-Income Community status using CDFI Fund and Census data
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/Jaypatel1511/nmtc-mapper
|
|
@@ -13,6 +13,8 @@ Requires-Dist: numpy>=1.21.0
|
|
|
13
13
|
Requires-Dist: requests>=2.27.0
|
|
14
14
|
Requires-Dist: openpyxl>=3.1.0
|
|
15
15
|
Requires-Dist: pyxlsb>=1.0.0
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
16
18
|
|
|
17
19
|
# nmtc-mapper 🗺️
|
|
18
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nmtc-mapper
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Summary: Automated NMTC eligibility checker — geocode addresses and check Low-Income Community status using CDFI Fund and Census data
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/Jaypatel1511/nmtc-mapper
|
|
@@ -13,6 +13,8 @@ Requires-Dist: numpy>=1.21.0
|
|
|
13
13
|
Requires-Dist: requests>=2.27.0
|
|
14
14
|
Requires-Dist: openpyxl>=3.1.0
|
|
15
15
|
Requires-Dist: pyxlsb>=1.0.0
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
16
18
|
|
|
17
19
|
# nmtc-mapper 🗺️
|
|
18
20
|
|
|
@@ -3,7 +3,13 @@ from nmtcmapper.eligibility.checker import EligibilityResult
|
|
|
3
3
|
from nmtcmapper.data.loader import load_eligibility_table
|
|
4
4
|
from nmtcmapper.geocoder.census import geocode_address
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
__version__ = version("nmtc-mapper")
|
|
10
|
+
except PackageNotFoundError:
|
|
11
|
+
__version__ = "0.0.0+unknown"
|
|
12
|
+
|
|
7
13
|
__all__ = [
|
|
8
14
|
"NMTCMapper", "EligibilityResult",
|
|
9
15
|
"load_eligibility_table", "geocode_address",
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nmtc-mapper"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.3"
|
|
8
8
|
description = "Automated NMTC eligibility checker — geocode addresses and check Low-Income Community status using CDFI Fund and Census data"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -19,5 +19,15 @@ dependencies = [
|
|
|
19
19
|
"pyxlsb>=1.0.0",
|
|
20
20
|
]
|
|
21
21
|
|
|
22
|
+
[project.optional-dependencies]
|
|
23
|
+
dev = ["pytest>=7.0"]
|
|
24
|
+
|
|
22
25
|
[project.urls]
|
|
23
26
|
Homepage = "https://github.com/Jaypatel1511/nmtc-mapper"
|
|
27
|
+
|
|
28
|
+
# Explicit discovery: the repo root also contains a generated `site/` (mkdocs
|
|
29
|
+
# output) and `docs/`, `examples/` dirs. With the setup.py pin removed, build-time
|
|
30
|
+
# auto-discovery would error on multiple top-level candidates — pin it to the
|
|
31
|
+
# real package. (find_packages() in the old setup.py did this implicitly.)
|
|
32
|
+
[tool.setuptools.packages.find]
|
|
33
|
+
include = ["nmtcmapper*"]
|
nmtc_mapper-0.3.2/setup.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from setuptools import setup, find_packages
|
|
2
|
-
|
|
3
|
-
setup(
|
|
4
|
-
name="nmtc-mapper",
|
|
5
|
-
version="0.3.0",
|
|
6
|
-
packages=find_packages(),
|
|
7
|
-
install_requires=[
|
|
8
|
-
"pandas>=1.4.0",
|
|
9
|
-
"numpy>=1.21.0",
|
|
10
|
-
"requests>=2.27.0",
|
|
11
|
-
"aiohttp>=3.8.0",
|
|
12
|
-
"tqdm>=4.64.0",
|
|
13
|
-
"openpyxl>=3.0.0",
|
|
14
|
-
],
|
|
15
|
-
)
|
|
File without changes
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import pytest
|
|
2
|
-
import pandas as pd
|
|
3
|
-
from nmtcmapper.data.loader import _build_sample_table
|
|
4
|
-
from nmtcmapper.mapper import NMTCMapper
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@pytest.fixture
|
|
8
|
-
def sample_table():
|
|
9
|
-
return _build_sample_table()
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@pytest.fixture
|
|
13
|
-
def mapper(monkeypatch):
|
|
14
|
-
"""NMTCMapper with sample data — no real download."""
|
|
15
|
-
monkeypatch.setattr(
|
|
16
|
-
"nmtcmapper.data.loader.download_eligibility_file",
|
|
17
|
-
lambda force=False: None
|
|
18
|
-
)
|
|
19
|
-
return NMTCMapper()
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
@pytest.fixture
|
|
23
|
-
def sample_df():
|
|
24
|
-
return pd.DataFrame({
|
|
25
|
-
"project_name": [
|
|
26
|
-
"Southside Health Center",
|
|
27
|
-
"North Shore Office",
|
|
28
|
-
"Detroit Manufacturing",
|
|
29
|
-
"NYC Bronx Project",
|
|
30
|
-
],
|
|
31
|
-
"tract_id": [
|
|
32
|
-
"17031840100", # Chicago South Side — eligible
|
|
33
|
-
"17031010100", # Chicago North Shore — not eligible
|
|
34
|
-
"26163518300", # Detroit — eligible
|
|
35
|
-
"36061015900", # NYC Bronx — eligible
|
|
36
|
-
]
|
|
37
|
-
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|