Skip to content

Commit 5701e02

Browse files
committed
update package to PyPI
1 parent 738ebc4 commit 5701e02

File tree

9 files changed

+27
-7
lines changed

9 files changed

+27
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ firewall
44
Install
55
-------
66
# cd /usr/local/src/
7-
# yum install -y git python34
7+
# yum install -y git python39
88
# git clone https://github.com/netkiller/firewall.git
99
# cd firewall
1010
# bash install.sh

__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
name = "firewall"
2-
__version__ = "0.0.1"
1+
name = "netkiller-firewall"
2+
__version__ = "0.0.1"
3+
# __author__ = 'Neo Chen'

example/hello.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
# -*- coding: utf-8 -*-
3+
class Hello():
4+
def __init__(self):
5+
super().__init__()
6+
def echo(self):
7+
print("Hello world!!!")

example/hellotest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from hello import Hello
2+
3+
hello = Hello()
4+
hello.echo()
File renamed without changes.

example/test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
14
from firewall import Firewall
25

36
single = Firewall()

packages/firewall.py renamed to firewall.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# -*- coding: utf-8 -*-
32
###########################################
43
# Linux Firewall Management Pkg

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ install -D -m 0700 -o root systemd/firewall /etc/sysconfig/
1010
systemctl enable firewall
1111
systemctl start firewall
1212

13-
cd packages/
13+
cd firewall/
1414
python3 setup.py sdist
1515
python3 setup.py install
1616
cd -

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
import setuptools
2+
# from firewall import __version__, __author__
23

34
with open("README.md", "r") as fh:
45
long_description = fh.read()
56

67
setuptools.setup(
7-
name="python-firewall",
8+
name="netkiller-firewall",
89
version="0.0.1",
910
author="Neo Chen",
1011
author_email="[email protected]",
1112
description="Python firewall(iptables)",
1213
long_description=long_description,
1314
long_description_content_type="text/markdown",
1415
url="https://github.com/netkiller/firewall",
15-
packages=setuptools.find_packages(),
16+
license='BSD',
17+
# py_modules = ['firewall'],
18+
# packages=setuptools.find_packages(),
19+
packages=[''],
20+
# packages=setuptools.find_packages('packages'),
21+
# package_dir = {'':'packages'},
1622
classifiers=[
1723
"Programming Language :: Python :: 3",
1824
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)