diff options
| author | adamjanovsky | 2021-04-30 10:08:28 +0200 |
|---|---|---|
| committer | GitHub | 2021-04-30 10:08:28 +0200 |
| commit | e3c002a63725e9e79ce81a09a7c7055c61ba5010 (patch) | |
| tree | 6c4abbafcd60446c842a3cf5b2e96fddfc0de571 | |
| parent | 163054c591390aa25a5b093acbf5e7f44c74657a (diff) | |
| parent | 0605835a24e49840a7b475116ecd6f0390212695 (diff) | |
| download | sec-certs-e3c002a63725e9e79ce81a09a7c7055c61ba5010.tar.gz sec-certs-e3c002a63725e9e79ce81a09a7c7055c61ba5010.tar.zst sec-certs-e3c002a63725e9e79ce81a09a7c7055c61ba5010.zip | |
Merge pull request #70 from crocs-muni/leo/fixPyPI
Fixing PyPI package building
| -rw-r--r-- | .github/workflows/python-publish.yml | 12 | ||||
| -rwxr-xr-x | sec_certs/entrypoints/fips_certificates.py (renamed from fips_certificates.py) | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | sec_certs/entrypoints/process_certificates.py (renamed from process_certificates.py) | 0 | ||||
| -rw-r--r-- | setup.py | 4 |
4 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2fab292d..782ec7aa 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -24,10 +24,20 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish + + - name: Build and publish to PyPI + if: startsWith(github.ref, 'refs/tags') env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} #Same as Docker, need to add an account in the secrets TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | python setup.py sdist bdist_wheel twine upload dist/* + + - name: Build and publish to PyPI + env: + TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} #Same as Docker, need to add an account in the secrets + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload --repository testpypi dist/* diff --git a/fips_certificates.py b/sec_certs/entrypoints/fips_certificates.py index eb147d48..eb147d48 100755 --- a/fips_certificates.py +++ b/sec_certs/entrypoints/fips_certificates.py diff --git a/process_certificates.py b/sec_certs/entrypoints/process_certificates.py index 5272fc67..5272fc67 100755..100644 --- a/process_certificates.py +++ b/sec_certs/entrypoints/process_certificates.py @@ -33,7 +33,7 @@ setup( }, entry_points=""" [console_scripts] - process-certs=process_certificates:main - fips-certs=fips_certificates:main + process-certs=sec_certs.entrypoints.process_certificates:main + fips-certs=sec_certs.entrypoints.fips_certificates:main """ ) |
