Skip to content

Commit

Permalink
Merge pull request #17 from Diapolo10/nightly
Browse files Browse the repository at this point in the history
v0.1.5-2 Release
  • Loading branch information
Diapolo10 authored Apr 30, 2021
2 parents 2d5a579 + a1e491d commit 5b2c1fa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ on:
jobs:

build-and-test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest]

steps:

Expand Down Expand Up @@ -48,13 +49,13 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9
- name: Install pep517
run: >-
python -m
Expand All @@ -79,4 +80,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_PASSWORD }}
status: success
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
A `pathlib.Path` equivalent for IP addresses.

<!-- Badge chain start -->
[![Version](https://img.shields.io/pypi/v/iplib3)](https://pypi.org/project/iplib3/) ![Build](https://img.shields.io/github/workflow/status/diapolo10/iplib3/iplib3%20CI) [![License](https://img.shields.io/github/license/diapolo10/iplib3)](https://opensource.org/licenses/MIT) [![Known Vulnerabilities](https://snyk.io/test/github/Diapolo10/iplib3/badge.svg?logo=snyk)](https://snyk.io/test/github/diapolo10/iplib3) [![Coverage Status](https://coveralls.io/repos/github/Diapolo10/iplib3/badge.svg?branch=main?logo=coveralls)](https://coveralls.io/github/Diapolo10/iplib3?branch=main) [![Dependencies](https://img.shields.io/librariesio/github/diapolo10/iplib3)](https://libraries.io/github/Diapolo10/iplib3) [![CodeFactor](https://www.codefactor.io/repository/github/diapolo10/iplib3/badge?logo=codefactor)](https://www.codefactor.io/repository/github/diapolo10/iplib3) [![Rating](https://img.shields.io/librariesio/sourcerank/pypi/iplib3)](https://libraries.io/github/Diapolo10/iplib3/sourcerank) ![Python versions](https://img.shields.io/pypi/pyversions/iplib3?logo=python)
![Downloads](https://img.shields.io/pypi/dm/iplib3?logo=pypi) ![Wheel](https://img.shields.io/pypi/wheel/iplib3?logo=pypi) ![Repository size](https://img.shields.io/github/repo-size/diapolo10/iplib3?logo=github) ![Code size](https://img.shields.io/github/languages/code-size/diapolo10/iplib3?logo=github) ![Lines of code](https://img.shields.io/tokei/lines/github/diapolo10/iplib3?logo=github) ![File count](https://img.shields.io/github/directory-file-count/diapolo10/iplib3?logo=github) ![Last commit](https://img.shields.io/github/last-commit/diapolo10/iplib3?logo=github) [![HitCount](http://hits.dwyl.com/diapolo10/iplib3.svg?logo=github)](http://hits.dwyl.com/diapolo10/iplib3)
[![Version](https://img.shields.io/pypi/v/iplib3)](https://pypi.org/project/iplib3/) ![Build Status](https://github.com/diapolo10/iplib3/workflows/iplib3%20CI/badge.svg) [![License](https://img.shields.io/github/license/diapolo10/iplib3)](https://opensource.org/licenses/MIT) [![Known Vulnerabilities](https://snyk.io/test/github/Diapolo10/iplib3/badge.svg)](https://snyk.io/test/github/diapolo10/iplib3) [![Coverage Status](https://coveralls.io/repos/github/Diapolo10/iplib3/badge.svg?branch=main?logo=coveralls)](https://coveralls.io/github/Diapolo10/iplib3?branch=main)
[![Dependencies](https://img.shields.io/librariesio/github/diapolo10/iplib3)](https://libraries.io/github/Diapolo10/iplib3) [![CodeFactor](https://www.codefactor.io/repository/github/diapolo10/iplib3/badge?logo=codefactor)](https://www.codefactor.io/repository/github/diapolo10/iplib3) [![Rating](https://img.shields.io/librariesio/sourcerank/pypi/iplib3)](https://libraries.io/github/Diapolo10/iplib3/sourcerank) ![Python versions](https://img.shields.io/pypi/pyversions/iplib3?logo=python)
![Downloads](https://img.shields.io/pypi/dm/iplib3?logo=pypi) ![Wheel](https://img.shields.io/pypi/wheel/iplib3?logo=pypi) ![Repository size](https://img.shields.io/github/repo-size/diapolo10/iplib3?logo=github) ![Code size](https://img.shields.io/github/languages/code-size/diapolo10/iplib3?logo=github)
![Lines of code](https://img.shields.io/tokei/lines/github/diapolo10/iplib3?logo=github) ![File count](https://img.shields.io/github/directory-file-count/diapolo10/iplib3?logo=github) ![Last commit](https://img.shields.io/github/last-commit/diapolo10/iplib3?logo=github) [![HitCount](https://hits.dwyl.com/diapolo10/iplib3.svg?logo=github)](https://hits.dwyl.com/diapolo10/iplib3)
<!-- Badge chain end -->

This module was heavily inspired by the built-in `pathlib` module to provide a similiar, flexible interface for IP addresses. `iplib3` can effortlessly convert between IPv4, IPv6, raw numbers and hex values and it can also verify IP address syntax. It can recognise optional port numbers and store them separately from the main address. The `iplib.IPAddress` class works like `pathlib.Path` in that it accepts both IPv4 and IPv6 addresses, returning an object representing whichever format was used. The module also uses some unit tests, and these will be added more over time as functionality grows and becomes more set in stone.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ build-backend = "setuptools.build_meta"

[metadata]
name = 'iplib3'
version = '0.1.3'
version = '0.1.5-2'
description = 'A modern, object-oriented approach to IP addresses.'
20 changes: 17 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,41 @@

setup(
name='iplib3',
version='0.1.3',
version='0.1.5-2',
description="A modern, object-oriented approach to IP addresses.",
license="MIT License (MIT License)",
license="MIT License",
long_description=long_description,
long_description_content_type='text/markdown',

author="Lari Liuhamo",
author_email='lari.liuhamo+pypi@gmail.com',

url='https://github.com/Diapolo10/iplib3',
project_urls={
'Source code': 'https://github.com/Diapolo10/iplib3',
'Tracker': 'https://github.com/Diapolo10/iplib3/issues',
},

packages=find_packages(include=['iplib3', 'iplib3.*']),
keywords='network networking ip ipaddress address python3 pathlib',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Typing :: Typed',
],

install_requires=[],
python_requires='>=3.6',
setup_requires=['pytest-runner', 'flake8', 'setuptools', 'wheel'],
tests_require=['pytest'],
)

0 comments on commit 5b2c1fa

Please sign in to comment.