-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
name: Build and upload conda packages | ||
|
||
on: | ||
release: | ||
types: ['released', 'prereleased'] | ||
|
||
# workflow_dispatch: # Un comment line if you also want to trigger action manually | ||
|
||
jobs: | ||
conda_deployment_with_new_tag: | ||
name: Conda deployment of package with Python ${{ matrix.python-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Conda environment creation and activation | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: util/conda-build.yaml # Path to the build conda environment | ||
auto-update-conda: false | ||
auto-activate-base: false | ||
show-channel-urls: true | ||
- name: Build and upload the conda packages | ||
uses: uibcdf/[email protected] | ||
with: | ||
meta_yaml_dir: . | ||
python-version: ${{ matrix.python-version }} # Values previously defined in `matrix` | ||
platform_linux-64: true | ||
platform_osx-64: true | ||
platform_win-64: true | ||
user: jarryshaw | ||
label: auto | ||
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,6 +341,7 @@ | |
"ttlv", | ||
"ttol", | ||
"tunnelid", | ||
"uibcdf", | ||
"undoc", | ||
"upid", | ||
"urgp", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% set name = "pypcapkit" %} | ||
#{% set version = "1.0.0b9" %} | ||
|
||
package: | ||
name: "PyPCAPKit" | ||
version: "{{ environ['GIT_DESCRIBE_TAG'] }}" | ||
|
||
#source: | ||
# url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" | ||
# sha256: 6789d9aa44564091a4fdeaf65c694303c1b5a16474568842aa9ca9d931aac448 | ||
|
||
source: | ||
git_url: https://github.com/JarryShaw/PyPCAPKit.git | ||
git_rev: "{{ environ['GIT_DESCRIBE_TAG'] }}" | ||
git_depth: 1 # (Defaults to -1/not shallow) | ||
|
||
build: | ||
number: 1 | ||
entry_points: | ||
- pcapkit-cli = pcapkit.__main__:main | ||
- pcapkit-vendor = pcapkit.vendor.__main__:main | ||
script: "{{ PYTHON }} -m pip install .[all] -vv" | ||
|
||
requirements: | ||
build: | ||
- git | ||
host: | ||
- pip | ||
- python | ||
run: | ||
- python | ||
|
||
test: | ||
imports: | ||
- pcapkit | ||
|
||
about: | ||
home: https://jarryshaw.github.io/PyPCAPKit | ||
license: BSD 3-Clause License | ||
license_family: BSD | ||
license_file: | ||
- LICENSE | ||
summary: "PyPCAPKit: comprehensive network packet analysis library" | ||
doc_url: https://jarryshaw.github.io/PyPCAPKit | ||
dev_url: https://github.com/jarryshaw/pypcapkit | ||
|
||
extra: | ||
recipe-maintainers: | ||
- jarryshaw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ authors = [ | |
{ name="Jarry Shaw", email="[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name="Jarry Shaw", email="[email protected]" }, | ||
{ name="Jarry Shaw" }, | ||
] | ||
license = { text="BSD 3-Clause License" } | ||
requires-python = ">=3.6, <4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
channels: # write here the list of channels to look for your library dependencies | ||
- uibcdf | ||
- conda-forge | ||
- default | ||
|
||
dependencies: # Keep this block with only these two packages | ||
- anaconda-client | ||
- conda-build |