Skip to content

Commit d6448db

Browse files
authored
Merge pull request #22 from ansys-internal/feat/tech-review
feat: tech review
2 parents 905170b + 4fe0858 commit d6448db

File tree

3 files changed

+16
-67
lines changed

3 files changed

+16
-67
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
PACKAGE_NAME: "ansys.api.additive"
1515
DEFINITION_VERSION: "v0"
1616
DOTNET_VERSION: "6.0.x"
17-
GITHUB_NUGET_REPO: "https://nuget.pkg.github.com/ansys-internal/index.json"
17+
GITHUB_NUGET_REPO: "https://nuget.pkg.github.com/ansys/index.json"
1818

1919
jobs:
2020
build:
@@ -27,13 +27,6 @@ jobs:
2727
with:
2828
python-version: ${{ env.MAIN_PYTHON_VERSION }}
2929

30-
# Uncomment once the proto files are stable enough on their side
31-
32-
# - name: Run protolint
33-
# uses: plexsystems/[email protected]
34-
# with:
35-
# configDirectory: .
36-
3730
- name: Install build requirements
3831
run: |
3932
pip install -U pip
@@ -90,7 +83,7 @@ jobs:
9083
runs-on: ubuntu-latest
9184
steps:
9285
- name: Set up Python
93-
uses: actions/setup-python@v2
86+
uses: actions/setup-python@v4
9487
with:
9588
python-version: ${{ env.MAIN_PYTHON_VERSION }}
9689

@@ -99,27 +92,14 @@ jobs:
9992
- name: Display structure of downloaded files
10093
run: ls -R
10194

102-
# uncomment the following section to permit upload to public PyPI
103-
104-
# - name: Upload to Public PyPi
105-
# run: |
106-
# pip install twine
107-
# twine upload --skip-existing ./**/*.whl
108-
# twine upload --skip-existing ./**/*.tar.gz
109-
# env:
110-
# TWINE_USERNAME: __token__
111-
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
112-
113-
- name: Upload to Private PyPi
95+
- name: Upload to Public PyPi
11496
run: |
11597
pip install twine
11698
twine upload --skip-existing ./**/*.whl
11799
twine upload --skip-existing ./**/*.tar.gz
118100
env:
119-
TWINE_USERNAME: PAT
120-
TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
121-
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
122-
101+
TWINE_USERNAME: __token__
102+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
123103

124104
- name: Release
125105
uses: softprops/action-gh-release@v1

.protolint.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
product = "additive"
1616
library = ""
1717
package_info = ["ansys", "api", product, library, "v0"]
18-
with open(
19-
os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8"
20-
) as f:
18+
with open(os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8") as f:
2119
version = f.read().strip()
2220

2321
package_name = "ansys-api-additive"
@@ -30,14 +28,16 @@
3028
name=package_name,
3129
version=version,
3230
author="ANSYS, Inc.",
33-
author_email="[email protected]",
31+
author_email='[email protected]',
32+
maintainer="ANSYS, Inc.",
33+
maintainer_email='[email protected]',
3434
description=description,
3535
long_description=long_description,
3636
long_description_content_type="text/markdown",
3737
url=f"https://github.com/ansys/{package_name}",
3838
license="MIT",
39-
python_requires=">=3.8",
40-
install_requires=["grpcio~=1.47", "protobuf>=3.19,<5"],
39+
python_requires=">=3.8,<4",
40+
install_requires=["grpcio~=1.47", "protobuf~=3.19"],
4141
packages=setuptools.find_namespace_packages(".", include=("ansys.*","google.*")),
4242
package_data={
4343
"": ["*.proto", "*.pyi", "py.typed", "VERSION"],
@@ -48,4 +48,9 @@
4848
],
4949
},
5050
cmdclass=CMDCLASS_OVERRIDE,
51+
project_urls={
52+
'Documentation': 'https://github.com/ansys/ansys-api-additive/#readme',
53+
'Source': 'https://github.com/ansys/ansys-api-additive/',
54+
'Tracker': 'https://github.com/ansys/ansys-api-additive/issues/',
55+
},
5156
)

0 commit comments

Comments
 (0)