Skip to content

Commit

Permalink
changes for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
junka committed Dec 5, 2022
1 parent 26c1bbc commit eea2b7a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 21 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ the others, there could be a rate limit for the port or the queue.


By default, the flows contain packets with udp src port 9 to 1009. It means sending
1k flows. With ```-p``` you can specified udp dst port range. So if you want send 100k
1k flows. With ```-p``` you can specify udp dst port range. So if you want send 100k
flows, put ```-p 200-300``` into the parameters.


Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pktperf"
version = "0.2.2"
version = "0.3.0"
description = "pktgen scripts tool"
authors = ["junka <[email protected]>"]
license = "BSD"
Expand All @@ -16,5 +16,5 @@ python = "^3.5"
pktperf = 'pktperf.pktperf:main'

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
15 changes: 11 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from pathlib import Path
from setuptools import setup

this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setup(
name='pktperf',
version="0.2.2",
version="0.3.0",
description="pktgen python scripts",
author="junka",
author_email="[email protected]",
Expand All @@ -20,5 +20,12 @@
},
python_requires=">=3.5",
long_description=long_description,
long_description_content_type='text/markdown'
long_description_content_type='text/markdown',
project_urls={
"Bug Tracker": "https://github.com/junka/pktperf/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
],
)

0 comments on commit eea2b7a

Please sign in to comment.