Skip to content

Commit faec244

Browse files
authored
Merge pull request #25 from bugout-dev/conda-build
Joint publication to Anaconda
2 parents 5b3effd + 41ea4d9 commit faec244

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
24+
pip install -e .[distribute]
2525
- name: Build and publish
2626
env:
2727
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2828
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2929
run: |
3030
python setup.py sdist bdist_wheel
3131
twine upload dist/*
32+
-name: Publis to Anaconda
33+
run: |
34+
anaconda login --username ${{ secrets.ANACONDA_USERNAME }} --password ${{ secrets.ANACONDA_PASSWORD }}
35+
anaconda upload dist/*.tar.gz

bugout/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
__email__ = "engineering@bugout.dev"
99
__license__ = "MIT"
10-
__version__ = "0.1.10"
10+
__version__ = "0.1.11"
1111

1212
__all__ = (
1313
"__author__",

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
package_data={"bugout": ["py.typed"]},
4040
zip_safe=False,
4141
install_requires=["pydantic>=1.6", "requests"],
42-
extras_require={"dev": ["black", "mypy"]},
43-
entry_points={"console_scripts": ["{0}-py = {0}.__main__:main".format(MODULE_NAME)]},
42+
extras_require={
43+
"dev": ["black", "mypy"],
44+
"distribute": ["setuptools", "twine", "wheel", "anaconda-client"],
45+
},
46+
entry_points={
47+
"console_scripts": ["{0}-py = {0}.__main__:main".format(MODULE_NAME)]
48+
},
4449
)

0 commit comments

Comments
 (0)