Skip to content

Commit d8264d9

Browse files
committed
New distribution [0.14.3]
* bugfix for pull#30 * bugfix for issue#29 * updated Pipfile * updated sample output * updated Makefile * update const files * fix wikipefia block issue
1 parent 7a042a4 commit d8264d9

File tree

24 files changed

+728
-193
lines changed

24 files changed

+728
-193
lines changed

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11

2-
.vscode/
3-
4-
*.icloud
5-
Pipfile.lock
6-
72
out
83
*.js
94
!out.js

.vscode/settings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"python.pythonPath": ".venv/bin/python",
3+
"cSpell.words": [
4+
"INET",
5+
"aktau",
6+
"bufid",
7+
"cmmt",
8+
"distro",
9+
"dscp",
10+
"gaocegege",
11+
"ipsuite",
12+
"prio",
13+
"pval",
14+
"pyenv",
15+
"srcport",
16+
"sufs",
17+
"tbitem",
18+
"tbody"
19+
]
20+
}

Makefile

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ export PIPENV_VENV_IN_PROJECT=1
55
SHELL := /usr/local/bin/bash
66
DIR ?= .
77

8-
# fetch platform spec
9-
platform = $(shell python3 -c "import distutils.util; print(distutils.util.get_platform().replace('-', '_').replace('.', '_'))")
108
# get version string
119
version = $(shell cat setup.py | grep "^__version__" | sed "s/__version__ = '\(.*\)'/\1/")
1210
# commit message
@@ -78,36 +76,39 @@ update-maintainer:
7876
go run github.com/gaocegege/maintainer contributing
7977

8078
# make PyPI distribution
81-
dist-pypi: clean-pypi dist-pypi-new dist-pypi-old dist-linux
79+
# dist-pypi: clean-pypi dist-pypi-new dist-pypi-old dist-linux
80+
dist-pypi: clean-pypi dist-pypi-new dist-pypi-old
8281

8382
# make Python >=3.6 distribution
8483
.ONESHELL:
8584
dist-pypi-new:
8685
set -ex
8786
cd $(DIR)
88-
python3.7 setup.py bdist_egg bdist_wheel --plat-name="$(platform)" --python-tag='cp37'
89-
python3.6 setup.py bdist_egg bdist_wheel --plat-name="$(platform)" --python-tag='cp36'
87+
~/.pyenv/versions/3.8-dev/bin/python3.8 setup.py bdist_egg bdist_wheel --python-tag='cp38'
88+
~/.pyenv/versions/3.7.4/bin/python3.7 setup.py bdist_egg bdist_wheel --python-tag='cp37'
89+
~/.pyenv/versions/3.6.9/bin/python3.6 setup.py bdist_egg bdist_wheel --python-tag='cp36'
90+
~/.pyenv/versions/pypy3.6-7.1.1/bin/pypy3 setup.py bdist_egg bdist_wheel --python-tag='pp36'
9091

9192
# perform f2format
9293
dist-f2format:
93-
f2format -n $(DIR)/pcapkit
94+
pipenv run f2format -n $(DIR)/pcapkit
9495

9596
# make Python <3.6 distribution
9697
.ONESHELL:
9798
dist-pypi-old: dist-f2format
9899
set -ex
99100
cd $(DIR)
100-
python3.5 setup.py bdist_egg bdist_wheel --plat-name="$(platform)" --python-tag='cp35'
101-
python3.4 setup.py bdist_egg bdist_wheel --plat-name="$(platform)" --python-tag='cp34'
102-
pypy3 setup.py bdist_wheel --plat-name="$(platform)" --python-tag='pp35'
103-
python3 setup.py sdist
104-
105-
# make Linux distribution
106-
.ONESHELL:
107-
dist-linux:
108-
set -ex
109-
cd $(DIR)/docker
110-
docker-compose up --build
101+
~/.pyenv/versions/3.5.7/bin/python3.5 setup.py bdist_egg bdist_wheel --python-tag='cp35'
102+
~/.pyenv/versions/3.4.10/bin/python3.4 setup.py bdist_egg bdist_wheel --python-tag='cp34'
103+
~/.pyenv/versions/pypy3.5-7.0.0/bin/pypy3 setup.py bdist_egg bdist_wheel --python-tag='pp35'
104+
pipenv run python setup.py sdist
105+
106+
# # make Linux distribution
107+
# .ONESHELL:
108+
# dist-linux:
109+
# set -ex
110+
# cd $(DIR)/docker
111+
# docker-compose up --build
111112

112113
# upload PyPI distribution
113114
.ONESHELL:
@@ -164,6 +165,7 @@ git-aftermath:
164165

165166
# file new release on master
166167
release-master:
168+
$(eval message := $(shell git log -1 --pretty=%B))
167169
go run github.com/aktau/github-release release \
168170
--user JarryShaw \
169171
--repo PyPCAPKit \

Pipfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ emoji = "*"
1111
tbtrim = ">=0.2.1"
1212

1313
[dev-packages]
14-
pcapkit = {editable = true, path = "."}
14+
pypcapkit = {editable = true, path = "."}
1515
pyshark = "*"
1616
dpkt = "*"
1717
scapy = "*"
18-
"beautifulsoup4" = "*"
19-
"html5lib" = "*"
18+
bs4 = "*"
19+
html5lib = "*"
2020
requests = "*"
2121
ipython = "*"
22-
rope = "*"
23-
"autopep8" = "*"
22+
autopep8 = "*"
2423
pylint = "*"
25-
pycodestyle = "*"
26-
isort = {extras = ["pipfile", "requirements"], version = "*"}
24+
f2format = "*"
2725

2826
[requires]
2927
python_version = "3.7"

0 commit comments

Comments
 (0)