Skip to content

Commit 8086a7d

Browse files
authored
Add files via upload
1 parent e9bd45b commit 8086a7d

File tree

8 files changed

+497
-0
lines changed

8 files changed

+497
-0
lines changed

License

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright 2022+ Hubert Tournier
2+
3+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
5+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6+
7+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8+
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
NAME=wis
2+
SECTION=1
3+
SOURCES=src/${NAME}/__init__.py src/${NAME}/main.py
4+
5+
# Default action is to show this help message:
6+
.help:
7+
@echo "Possible targets:"
8+
@echo " check-code Verify PEP 8 compliance (lint)"
9+
@echo " check-security Verify security issues (audit)"
10+
@echo " check-unused Find unused code"
11+
@echo " check-version Find required Python version"
12+
@echo " check-sloc Count Single Lines of Code"
13+
@echo " checks Make all the previous tests"
14+
@echo " format Format code"
15+
@echo " package Build package"
16+
@echo " upload-test Upload the package to TestPyPi"
17+
@echo " upload Upload the package to PyPi"
18+
@echo " distclean Remove all generated files"
19+
20+
check-code: /usr/local/bin/pylint
21+
-pylint ${SOURCES}
22+
23+
lint: check-code
24+
25+
check-security: /usr/local/bin/bandit
26+
-bandit -r ${SOURCES}
27+
28+
audit: check-security
29+
30+
check-unused: /usr/local/bin/vulture
31+
-vulture --sort-by-size ${SOURCES}
32+
33+
check-version: /usr/local/bin/vermin
34+
-vermin ${SOURCES}
35+
36+
check-sloc: /usr/local/bin/pygount
37+
-pygount --format=summary .
38+
39+
checks: check-code check-security check-unused check-version check-sloc
40+
41+
format: /usr/local/bin/black
42+
black ${SOURCES}
43+
44+
love:
45+
@echo "Not war!"
46+
47+
man/${NAME}.${SECTION}.gz: man/${NAME}.${SECTION}
48+
@gzip -k9c man/${NAME}.${SECTION} > man/${NAME}.${SECTION}.gz
49+
50+
package: man/${NAME}.${SECTION}.gz
51+
python -m build
52+
53+
upload-test:
54+
python -m twine upload --repository testpypi dist/*
55+
56+
upload:
57+
python -m twine upload dist/*
58+
59+
distclean:
60+
rm -rf build dist src/*.egg-info man/${NAME}.${SECTION}.gz
61+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ It is available under the [3-clause BSD license](https://opensource.org/licenses
132132

133133
## CAVEAT
134134
[LACNIC](https://www.lacnic.net/) (Latin America and Caribbean NIC) does not provide a very useful bulk WhoIs database...
135+

man/wis.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.Dd December 12, 2022
2+
.Dt WIS 1
3+
.Os
4+
.Sh NAME
5+
.Nm wis
6+
.Nd Bulk WhoIs search

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[metadata]
2+
name = pnu_wis
3+
description = Bulk WhoIs Search
4+
long_description = file: README.md
5+
long_description_content_type = text/markdown
6+
version = 0.9.0
7+
license = BSD 3-Clause License
8+
license_files = License
9+
author = Hubert Tournier
10+
author_email = [email protected]
11+
url = https://github.com/HubTou/wis/
12+
project_urls =
13+
Bug Tracker = https://github.com/HubTou/wis/issues
14+
keywords = pnu-project
15+
classifiers =
16+
Development Status :: 5 - Production/Stable
17+
Environment :: Console
18+
Intended Audience :: End Users/Desktop
19+
License :: OSI Approved :: BSD License
20+
Natural Language :: English
21+
Operating System :: OS Independent
22+
Operating System :: Microsoft :: Windows
23+
Programming Language :: Python :: 3
24+
Programming Language :: Python :: 3.3
25+
Programming Language :: Python :: 3.4
26+
Programming Language :: Python :: 3.5
27+
Programming Language :: Python :: 3.6
28+
Programming Language :: Python :: 3.7
29+
Programming Language :: Python :: 3.8
30+
Programming Language :: Python :: 3.9
31+
Programming Language :: Python :: 3.10
32+
Programming Language :: Python :: 3.11
33+
Topic :: System
34+
Topic :: Utilities
35+
36+
[options]
37+
package_dir =
38+
= src
39+
packages = find:
40+
python_requires = >=3.3
41+
install_requires =
42+
pnu-libpnu
43+
44+
[options.packages.find]
45+
where = src
46+
47+
[options.entry_points]
48+
console_scripts =
49+
wis = wis:main
50+
51+
[options.data_files]
52+
man/man1 =
53+
man/wis.1.gz
54+

src/wis/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"""Wrapper for the source code files"""
2+
from .main import *

0 commit comments

Comments
 (0)