-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and release to PyPI too [skip ci]
- Loading branch information
Showing
11 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#!/bin/bash -eux | ||
|
||
url=https://github.com/conda-forge/miniforge/releases/download/23.1.0-4/Miniforge3-23.1.0-4-Linux-x86_64.sh | ||
url=https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Miniforge3-23.11.0-0-Linux-x86_64.sh | ||
wget --no-verbose $url | ||
bash $(basename $url) -bfp conda | ||
( | ||
set -e +ux | ||
source conda/etc/profile.d/conda.sh | ||
conda activate | ||
conda install -q -y -c maddenp --repodata-fn repodata.json anaconda-client condev | ||
conda install -q -y -c maddenp --repodata-fn repodata.json anaconda-client build condev twine | ||
) |
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,7 @@ | ||
#!/bin/bash -eux | ||
|
||
set +ux | ||
source conda/etc/profile.d/conda.sh | ||
conda activate | ||
set -ux | ||
python -m build --no-isolation src |
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,7 @@ | ||
#!/bin/bash -eux | ||
|
||
set +ux | ||
source conda/etc/profile.d/conda.sh | ||
conda activate | ||
set -ux | ||
twine upload --repository pypi --username __token__ --password $PYPI_TOKEN src/dist/*.whl |
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
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 @@ | ||
../LICENSE |
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 @@ | ||
../README.md |
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 @@ | ||
../recipe/meta.json |
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 |
---|---|---|
|
@@ -10,15 +10,26 @@ | |
if os.environ.get("CONDA_BUILD"): | ||
meta = {x: os.environ["PKG_%s" % x.upper()] for x in ("name", "version")} | ||
else: | ||
with open("../recipe/meta.json", "r", encoding="utf-8") as f: | ||
with open("meta.json", "r", encoding="utf-8") as f: | ||
meta = json.load(f) | ||
|
||
name_conda = meta["name"] | ||
name_py = name_conda.replace("-", "_") | ||
|
||
setup( | ||
author="Paul Madden", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
], | ||
data_files=[(".", ["meta.json"])], | ||
description="A simple workflow engine", | ||
entry_points={"console_scripts": ["iotaa = %s:main" % name_py]}, | ||
long_description="A simple workflow engine with semantics inspired by Luigi and tasks expressed as decorated Python functions", | ||
name=name_conda, | ||
packages=find_packages(include=[name_py, "%s.*" % name_py]), | ||
url="https://github.com/maddenp/iotaa", | ||
version=meta["version"], | ||
) |