Skip to content

Commit

Permalink
Merge pull request #17 from chr0mag/python-3.10
Browse files Browse the repository at this point in the history
Add Python 3.10 support
  • Loading branch information
chr0mag authored Dec 23, 2021
2 parents c4e8b55 + 8ceda5b commit c989da1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.idea
*.iml
**/.pytest_cache
python/dist
python/geoipsets.egg-info
python/build
Expand Down
2 changes: 1 addition & 1 deletion python/geoipsets/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.5
2.3.1
9 changes: 5 additions & 4 deletions python/geoipsets/maxmind.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def build_sets(self, country_code_map: dict, zip_ref: ZipFile, dir_prefix: str,
f.write(net + ",\n")

# this feels dirty
for nf_set_file in nftset_dir.iterdir():
if nf_set_file.is_file(): # not strictly needed
with open(nf_set_file, 'a') as f:
f.write("}\n")
if self.nf_tables:
for nf_set_file in nftset_dir.iterdir():
if nf_set_file.is_file(): # not strictly needed
with open(nf_set_file, 'a') as f:
f.write("}\n")
1 change: 1 addition & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
packages=find_packages(exclude=("tests",)),
include_package_data=True,
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
setuptools>=51.1.2
requests>=2.25.1
requests>=2.25.1
pytest>=6.2.5

0 comments on commit c989da1

Please sign in to comment.