File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build-n-publish :
9+ name : Build and publish to PyPI
10+ runs-on : ubuntu-latest
11+ permissions :
12+ # IMPORTANT: this permission is mandatory for trusted publishing
13+ id-token : write
14+ contents : read
15+
16+ steps :
17+ - name : Checkout source
18+ uses : actions/checkout@v3
19+
20+ - name : Set up Python
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : " 3.x"
24+
25+ - name : Install build dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip install build
29+
30+ - name : Build distribution
31+ run : python -m build
32+
33+ - name : Publish distribution 📦 to PyPI
34+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -4,14 +4,13 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " aobasis"
7- version = " 0.1 .0"
7+ version = " 1.0 .0"
88description = " A package for generating AO basis sets (KL, Zernike, Fourier)"
99readme = " README.md"
10- authors = [{ name = " User " , email = " user@example.com " }]
10+ authors = [{ name = " Jacob Taylor " , email = " jtaylor@keck.hawaii.edu " }]
1111license = { file = " LICENSE" }
1212classifiers = [
1313 " Programming Language :: Python :: 3" ,
14- " License :: OSI Approved :: MIT License" ,
1514 " Operating System :: OS Independent" ,
1615]
1716dependencies = [
@@ -29,7 +28,8 @@ dev = [
2928]
3029
3130[project .urls ]
32- "Homepage" = " https://github.com/example/aobasis"
31+ "Homepage" = " https://github.com/jacotay7/aobasis"
32+ "Bug Tracker" = " https://github.com/jacotay7/aobasis/issues"
3333
3434[tool .setuptools .packages .find ]
3535where = [" src" ]
Original file line number Diff line number Diff line change 1+ from importlib .metadata import version , PackageNotFoundError
2+
3+ try :
4+ __version__ = version ("aobasis" )
5+ except PackageNotFoundError :
6+ __version__ = "unknown"
7+
18from .base import BasisGenerator
29from .kl import KLBasisGenerator
310from .zernike import ZernikeBasisGenerator
You can’t perform that action at this time.
0 commit comments