Skip to content

Commit 20c0d94

Browse files
committed
github: Publish to testpypi
1 parent 2b5ec89 commit 20c0d94

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/Publish-Package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
env:
1919
dist-artifact-name: package-distribution-packages
20-
environment: ${{ github.event_name == 'release' && 'pypi' || inputs.environment }}
20+
environment: ${{ github.event_name == 'release' && 'testpypi' || inputs.environment }}
2121
environment-info: |
2222
{
2323
"pypi": {
@@ -65,8 +65,8 @@ jobs:
6565
needs: [build_package]
6666
environment:
6767
# This logic is duplicated because `name` doesn't support the `env` context.
68-
name: ${{ github.event_name == 'release' && 'pypi' || inputs.environment }}
69-
url: ${{ fromJson(env.environment-info)[env.environment].base-url }}/p/ni-python-styleguide
68+
name: ${{ github.event_name == 'release' && 'testpypi' || inputs.environment }}
69+
url: ${{ fromJson(env.environment-info)[env.environment].base-url }}/p/ni-python-styleguide2
7070
permissions:
7171
id-token: write
7272
steps:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.poetry]
2-
name = "ni-python-styleguide"
2+
name = "ni-python-styleguide2"
33
# The a.0 here denotes a source based version
44
# This is removed when released through the Publish-Package.yml GitHub action
55
# Official PyPI releases follow Major.Minor.Patch
@@ -10,6 +10,7 @@ readme = "README.md" # apply the repo readme to the package as well
1010
repository = "https://github.com/ni/python-styleguide"
1111
license = "MIT"
1212
include = ["ni_python_styleguide/config.toml"]
13+
packages = [{include = "ni_python_styleguide"}]
1314

1415

1516
[tool.poetry.dependencies]
@@ -74,6 +75,7 @@ norecursedirs = "*__snapshots"
7475

7576
[tool.ni-python-styleguide]
7677
extend_exclude = "*__snapshots/*/*input.py"
78+
application-import-names = "ni_python_styleguide"
7779

7880

7981
[build-system]

0 commit comments

Comments
 (0)