rackerlabs / jetstream

Wrapper around Troposphere for Template Publishing and Testing
Apache License 2.0
6 stars 3 forks source link

Start releasing to PyPI #45

Open martinb3 opened 7 years ago

martinb3 commented 7 years ago

We should start doing regular releases to PyPI so we can allow others to depend on this tool and force specific version requirements when they use it to test. This would also allow for others to depend on a specific major version when breaking changes happen in jetstream.

epequeno commented 4 years ago

just a note: installing from pypi currently pulls in a very old version of troposphere:

@sol ~/temp [124] $ virtualenv venv
created virtual environment CPython3.8.2.final.0-64 in 217ms
  creator CPython3Posix(dest=/home/steven/temp/venv, clear=False, global=False)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/steven/.local/share/virtualenv/seed-app-data/v1.0.1)
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
@sol ~/temp $ source ./venv/bin/activate.fish
(venv) @sol ~/temp $ pip install jetstream
Collecting jetstream
  Downloading jetstream-0.1.0-py2.py3-none-any.whl (13 kB)
Collecting boto3==1.4.0
  Downloading boto3-1.4.0-py2.py3-none-any.whl (117 kB)
     |████████████████████████████████| 117 kB 5.7 MB/s 
Collecting troposphere==1.8.1
  Downloading troposphere-1.8.1.tar.gz (82 kB)
     |████████████████████████████████| 82 kB 1.4 MB/s 
Processing /home/steven/.cache/pip/wheels/17/84/7c/1a9872cea36efeca4ba073d934958ea78b20da4d0b9d37f93d/awacs-0.9.8-py3-none-any.whl
Collecting botocore<1.5.0,>=1.4.1
  Downloading botocore-1.4.93-py2.py3-none-any.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 8.2 MB/s 
Collecting s3transfer<0.2.0,>=0.1.0
  Using cached s3transfer-0.1.13-py2.py3-none-any.whl (59 kB)
Collecting jmespath<1.0.0,>=0.7.1
  Using cached jmespath-0.9.5-py2.py3-none-any.whl (24 kB)
Collecting docutils>=0.10
  Downloading docutils-0.16-py2.py3-none-any.whl (548 kB)
     |████████████████████████████████| 548 kB 41.7 MB/s 
Collecting python-dateutil<3.0.0,>=2.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting six>=1.5
  Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Building wheels for collected packages: troposphere
  Building wheel for troposphere (setup.py) ... done
  Created wheel for troposphere: filename=troposphere-1.8.1-py3-none-any.whl size=66126 sha256=dec19022a9cd76127e2f7e66d5919ed9e87535e54e4f1877ae937cdebfae204c
  Stored in directory: /home/steven/.cache/pip/wheels/ca/3f/9b/a3ebd66fd23aea7417ba23dab83edb36b9d22a354ee02142d5
Successfully built troposphere
Installing collected packages: docutils, six, python-dateutil, jmespath, botocore, s3transfer, boto3, troposphere, awacs, jetstream
Successfully installed awacs-0.9.8 boto3-1.4.0 botocore-1.4.93 docutils-0.16 jetstream-0.1.0 jmespath-0.9.5 python-dateutil-2.8.1 s3transfer-0.1.13 six-1.14.0 troposphere-1.8.1
WARNING: You are using pip version 20.0.2; however, version 20.1 is available.
You should consider upgrading via the '/home/steven/temp/venv/bin/python -m pip install --upgrade pip' command.

Which produces some unexpected results:

(venv) @sol ~/temp $ python -c "from troposphere import Sub"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'Sub' from 'troposphere' (/home/steven/temp/venv/lib/python3.8/site-packages/troposphere/__init__.py)

cloning the repo and installing that way works as expected.