Skip to content

Commit cbd252c

Browse files
authored
Update pypi publish with 2FA (#367)
* remove pypi pass auth * add changes and fix formatting * add build
1 parent 367661d commit cbd252c

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
1012
steps:
1113
- uses: actions/checkout@v3
1214
- name: Set up Python
@@ -17,18 +19,15 @@ jobs:
1719
run: |
1820
python --version
1921
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
22+
pip install setuptools wheel build
2123
- name: Test
2224
run: |
2325
pip install .[test]
2426
pytest --runslow ./tests
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29-
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
27+
- name: Build
28+
run: python -m build
29+
- name: Publish
30+
uses: pypa/gh-action-pypi-publish@release/v1
3231
- name: Send mail
3332
# Notify when cron job fails
3433
if: failure()
@@ -48,4 +47,4 @@ jobs:
4847
to: uw_ihme_simulationscience@uw.edu
4948
# from email name
5049
from: Pseudopeople Notifications
51-
50+

CHANGELOG.rst

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1+
**0.8.3 - 01/09/24**
2+
3+
- Update PyPI to 2FA with trusted publisher
4+
15
**0.8.2 - 10/30/23**
2-
- Fixes a bug in date formatting
6+
7+
- Fixes a bug in date formatting
38

49
**0.8.1 - 10/25/23**
10+
511
- Implements setuptools-scm for versioning
612

713
**0.8.0 - 10/25/23**
14+
815
- Improve performance of dataset generation functions
916

1017
**0.7.2 - 10/16/23**
18+
1119
- Drop support for python 3.8
1220
- Fix bug in "Choose the wrong option" noise type
1321
- Fixed minor bug in copy_from_household_member noise type
1422

1523
**0.7.1 - 09/18/23**
24+
1625
- Improved configuration validation
1726
- Security patch for configuration file loading
1827
- Fixed bug introduced by newest numpy release
1928
- Improved docstrings
2029

2130
**0.7.0 - 09/08/23**
31+
2232
- Added generate_taxes_1040 function
2333
- Added copy_from_household_member noise type
2434
- Improved performance of typographic noise type
@@ -29,25 +39,31 @@
2939
- Assorted bug fixes
3040

3141
**0.6.5 - 05/09/23**
42+
3243
- Hotfix to pin vivarium dependency
3344

3445
**0.6.4 - 04/25/23**
46+
3547
- Updated documentation
3648

3749
**0.6.3 - 04/24/23**
50+
3851
- Updated documentation
3952
- Added data access request to issue template
4053

4154
**0.6.2 - 04/21/23**
55+
4256
- Updated documentation
4357
- Updated progress bar behavior
4458

4559
**0.6.1 - 04/21/23**
60+
4661
- Updated documentation
4762
- Standardized configuration key names
4863
- Updated to account for changes to simulated population data schema
4964

5065
**0.6.0 - 04/19/23**
66+
5167
- Update documentation (landing page, datasets section, quickstart)
5268
- Update zipcode miswriting function to act on each digit independently
5369
- Modify config key names
@@ -61,6 +77,7 @@
6177
- Add a github issues template
6278

6379
**0.5.1 - 04/14/23**
80+
6481
- Formatting of noised dates implemented
6582
- Moved from pd.NA to np.nan
6683
- Added validation of user-supplied configuration
@@ -69,6 +86,7 @@
6986
- Set default logging level to 'INFO', configurable with 'verbose' flag
7087

7188
**0.5.0 - 04/13/23**
89+
7290
- Bugfix to apply incorrect selection noising at the expected probability
7391
- Implement the omission noise function
7492
- Implement schema for output columns and their dtypes
@@ -77,6 +95,7 @@
7795
- Update documentation
7896

7997
**0.4.0 - 04/11/23**
98+
8099
- Generate default configuration instead of maintaining a static file
81100
- Read sample data if no data argument is provided
82101
- Update sample datasets

0 commit comments

Comments
 (0)