Skip to content

Commit fd84c1e

Browse files
authored
Merge pull request #8 from pymc-devs/autopypi
use github actions to release on pypi
2 parents cf14591 + 3db544d commit fd84c1e

File tree

4 files changed

+51
-11
lines changed

4 files changed

+51
-11
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish tagged releases to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build-n-publish:
7+
name: Build and publish Python distributions to PyPI and TestPyPI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Set up Python
12+
uses: actions/setup-python@v1
13+
with:
14+
python-version: "3.9"
15+
16+
- name: Install pypa/build
17+
run: >-
18+
python -m
19+
pip install
20+
build
21+
--user
22+
- name: Build a binary wheel and a source tarball
23+
run: >-
24+
python -m
25+
build
26+
--sdist
27+
--wheel
28+
--outdir dist/
29+
30+
- name: Publish distribution to Test PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1
32+
with:
33+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
34+
repository_url: https://test.pypi.org/legacy/
35+
36+
- name: Publish distribution to PyPI
37+
if: startsWith(github.ref, 'refs/tags')
38+
uses: pypa/gh-action-pypi-publish@release/v1
39+
with:
40+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pymc_bart
1+
22
Bayesian Additive Regression Trees for Probabilistic programming with PyMC
33

44

@@ -16,16 +16,16 @@ If you use PyMC-BART and want to cite it please use [![arXiv](https://img.shield
1616

1717
Here is the citation in BibTeX format
1818

19+
```
1920
@misc{quiroga2022bart,
20-
doi = {10.48550/ARXIV.2206.03619},
21-
url = {https://arxiv.org/abs/2206.03619},
22-
author = {Quiroga, Miriana and Garay, Pablo G and Alonso, Juan M. and Loyola, Juan Martin and Martin, Osvaldo A},
23-
keywords = {Computation (stat.CO), FOS: Computer and information sciences, FOS: Computer and information sciences},
24-
title = {Bayesian additive regression trees for probabilistic programming},
25-
publisher = {arXiv},
26-
year = {2022},
27-
copyright = {Creative Commons Attribution Share Alike 4.0 International}
21+
title={Bayesian additive regression trees for probabilistic programming},
22+
author={Quiroga, Miriana and Garay, Pablo G and Alonso, Juan M. and Loyola, Juan Martin and Martin, Osvaldo A},
23+
year={2022},
24+
doi={10.48550/ARXIV.2206.03619},
25+
archivePrefix={arXiv},
26+
primaryClass={stat.CO}
2827
}
28+
```
2929

3030
## Donations
3131
pymc_bart, as other pymc-devs projects, is a non-profit project under the NumFOCUS umbrella. If you want to support pymc_bart financially, you can donate [here](https://numfocus.org/donate-to-pymc).

pymc_bart/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from pymc_bart.utils import plot_dependence, plot_variable_importance, predict
1919

2020
__all__ = ["BART", "PGBART"]
21-
__version__ = "0.0.1"
21+
__version__ = "0.0.2"
2222

2323
import pymc as pm
2424

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_version():
7373
license=LICENSE,
7474
url=URL,
7575
long_description=LONG_DESCRIPTION,
76-
long_description_content_type="text/x-rst",
76+
long_description_content_type="text/markdown",
7777
packages=find_packages(),
7878
# because of an upload-size limit by PyPI, we're temporarily removing docs from the tarball.
7979
# Also see MANIFEST.in

0 commit comments

Comments
 (0)