Skip to content

Commit

Permalink
New distribution [0.14.3]
Browse files Browse the repository at this point in the history
* bugfix for pull#30
* bugfix for issue#29
* updated Pipfile
* updated sample output
* updated Makefile
* update const files
* fix wikipefia block issue
  • Loading branch information
JarryShaw committed Aug 8, 2019
1 parent 7a042a4 commit d8264d9
Show file tree
Hide file tree
Showing 24 changed files with 728 additions and 193 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@

.vscode/

*.icloud
Pipfile.lock

out
*.js
!out.js
Expand Down
20 changes: 20 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"python.pythonPath": ".venv/bin/python",
"cSpell.words": [
"INET",
"aktau",
"bufid",
"cmmt",
"distro",
"dscp",
"gaocegege",
"ipsuite",
"prio",
"pval",
"pyenv",
"srcport",
"sufs",
"tbitem",
"tbody"
]
}
36 changes: 19 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export PIPENV_VENV_IN_PROJECT=1
SHELL := /usr/local/bin/bash
DIR ?= .

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

# make PyPI distribution
dist-pypi: clean-pypi dist-pypi-new dist-pypi-old dist-linux
# dist-pypi: clean-pypi dist-pypi-new dist-pypi-old dist-linux
dist-pypi: clean-pypi dist-pypi-new dist-pypi-old

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

# perform f2format
dist-f2format:
f2format -n $(DIR)/pcapkit
pipenv run f2format -n $(DIR)/pcapkit

# make Python <3.6 distribution
.ONESHELL:
dist-pypi-old: dist-f2format
set -ex
cd $(DIR)
python3.5 setup.py bdist_egg bdist_wheel --plat-name="$(platform)" --python-tag='cp35'
python3.4 setup.py bdist_egg bdist_wheel --plat-name="$(platform)" --python-tag='cp34'
pypy3 setup.py bdist_wheel --plat-name="$(platform)" --python-tag='pp35'
python3 setup.py sdist

# make Linux distribution
.ONESHELL:
dist-linux:
set -ex
cd $(DIR)/docker
docker-compose up --build
~/.pyenv/versions/3.5.7/bin/python3.5 setup.py bdist_egg bdist_wheel --python-tag='cp35'
~/.pyenv/versions/3.4.10/bin/python3.4 setup.py bdist_egg bdist_wheel --python-tag='cp34'
~/.pyenv/versions/pypy3.5-7.0.0/bin/pypy3 setup.py bdist_egg bdist_wheel --python-tag='pp35'
pipenv run python setup.py sdist

# # make Linux distribution
# .ONESHELL:
# dist-linux:
# set -ex
# cd $(DIR)/docker
# docker-compose up --build

# upload PyPI distribution
.ONESHELL:
Expand Down Expand Up @@ -164,6 +165,7 @@ git-aftermath:

# file new release on master
release-master:
$(eval message := $(shell git log -1 --pretty=%B))
go run github.com/aktau/github-release release \
--user JarryShaw \
--repo PyPCAPKit \
Expand Down
12 changes: 5 additions & 7 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ emoji = "*"
tbtrim = ">=0.2.1"

[dev-packages]
pcapkit = {editable = true, path = "."}
pypcapkit = {editable = true, path = "."}
pyshark = "*"
dpkt = "*"
scapy = "*"
"beautifulsoup4" = "*"
"html5lib" = "*"
bs4 = "*"
html5lib = "*"
requests = "*"
ipython = "*"
rope = "*"
"autopep8" = "*"
autopep8 = "*"
pylint = "*"
pycodestyle = "*"
isort = {extras = ["pipfile", "requirements"], version = "*"}
f2format = "*"

[requires]
python_version = "3.7"
Expand Down
Loading

0 comments on commit d8264d9

Please sign in to comment.