mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +01:00
build Py wheel with alternate name in testing forks
This commit is contained in:
parent
417d6273ec
commit
96e5e145d0
1
.github/workflows/build-wheels.yml
vendored
1
.github/workflows/build-wheels.yml
vendored
@ -35,6 +35,7 @@ jobs:
|
||||
- name: Build distro
|
||||
env:
|
||||
ZROK_VERSION: ${{ github.event.release.tag_name }}
|
||||
ZROK_PY_NAME: ${{ vars.ZROK_PY_NAME || null }}
|
||||
run: |
|
||||
python setup.py sdist
|
||||
|
||||
|
@ -1,16 +1,20 @@
|
||||
from setuptools import setup, find_packages # noqa: H301
|
||||
import os
|
||||
|
||||
NAME = "zrok_sdk"
|
||||
VERSION = "0.4.0.dev"
|
||||
try:
|
||||
VERSION = os.environ['ZROK_VERSION']
|
||||
except KeyError:
|
||||
pass
|
||||
from setuptools import find_packages, setup # noqa: H301
|
||||
|
||||
# optionally upload to TestPyPi with alternative name in testing repo
|
||||
NAME = os.getenv('ZROK_PY_NAME', "zrok_sdk")
|
||||
# inherit zrok version from environment or default to dev version
|
||||
VERSION = os.getenv('ZROK_VERSION', "0.4.0.dev")
|
||||
|
||||
# To install the library, run the following
|
||||
#
|
||||
# python setup.py install
|
||||
#
|
||||
# or
|
||||
#
|
||||
# pip install --editable .
|
||||
#
|
||||
# prerequisite: setuptools
|
||||
# http://pypi.python.org/pypi/setuptools
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user