File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1717
1818env :
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": {
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 :
Original file line number Diff line number Diff line change 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
1010repository = " https://github.com/ni/python-styleguide"
1111license = " MIT"
1212include = [" 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 ]
7677extend_exclude = " *__snapshots/*/*input.py"
78+ application-import-names = " ni_python_styleguide"
7779
7880
7981[build-system ]
You can’t perform that action at this time.
0 commit comments