Skip to content

Commit 7394564

Browse files
author
fabioferreira
committed
Port TensorFlow estimators/tests to PyTorch: updated README and added CI release to pypi
1 parent f12e0d2 commit 7394564

3 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,24 @@ jobs:
4545
run: |
4646
python -m pip install build
4747
python -m build --sdist --wheel
48-
48+
release:
49+
needs: build
50+
runs-on: macos-latest
51+
if: startsWith(github.ref, 'refs/tags/')
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Set up Python
55+
uses: actions/setup-python@v5
56+
with:
57+
python-version: 3.11
58+
cache: "pip"
59+
- name: Install build tools
60+
run: python -m pip install --upgrade pip build twine
61+
- name: Publish to PyPI
62+
env:
63+
TWINE_USERNAME: __token__
64+
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }}
65+
run: |
66+
python -m build
67+
twine upload dist/*
4968

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ The core dependencies of cde are minimal:
3030
- PyTorch
3131
- NumPy
3232
- pandas
33+
- scipy
34+
- scikit-learn
35+
- wandb
3336

3437
## Installation
3538

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
long_description = fh.read()
55

66
setup(name='cde',
7-
version='0.5.1',
7+
version='1.0',
88
long_description=long_description,
99
description='Framework for conditional density estimation',
10-
url='https://jonasrothfuss.github.io/Nonparametric_Density_Estimation',
10+
url='https://github.com/freelunchtheorem/Conditional_Density_Estimation',
1111
author='Jonas Rothfuss, Fabio Ferreira',
1212
author_email='jonas.rothfuss@gmx.de, fabioferreira@mailbox.org',
1313
license='MIT',
@@ -22,7 +22,5 @@
2222
'scikit_learn',
2323
'statsmodels',
2424
'wandb',
25-
'progressbar2',
26-
'xlrd'
2725
],
2826
zip_safe=False)

0 commit comments

Comments
 (0)