Skip to content

Commit

Permalink
build(ci): simplify CI and packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Feb 6, 2021
1 parent 6e44e63 commit fa8bb29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
node-version: 14.2.0
- name: install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install .
- name: install semantic-release
Expand Down Expand Up @@ -54,9 +52,7 @@ jobs:
with:
python-version: 3.7
- name: install python dependencies
run: |
pip install -r requirements.txt
pip install .
run: pip install .
- name: deploy to staging
run: |
queenbee
Expand All @@ -76,9 +72,7 @@ jobs:
with:
python-version: 3.7
- name: install python dependencies
run: |
pip install -r requirements.txt
pip install pollination-daylight-factor
run: pip install pollination-daylight-factor
- name: deploy to production
run: |
queenbee
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NOTE: pollination-dsl is here to ensure the deployment to pollination goes smoothly
# 0.9.0 has a bug. Remove this when updating pollination-honeybee-radiance to higher than
# 0.4.6
pollination-dsl==0.9.1
pollination-dsl==0.9.2
pollination-honeybee-radiance==0.4.6
pollination-alias==0.1.0
9 changes: 0 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
#!/usr/bin/env python
import setuptools
# add these line to integrate the queenbee packaging process into Python packaging
try:
from pollination_dsl.package import PostInstall, PostDevelop
cmd_class = {'develop': PostDevelop, 'install': PostInstall}
except ModuleNotFoundError:
# this will happen the very first time when pollination_dsl is not installed
cmd_class = {}


with open("README.md", "r") as fh:
long_description = fh.read()
Expand All @@ -17,7 +9,6 @@

# normal setuptool inputs
setuptools.setup(
cmdclass=cmd_class, # this is critical for local packaging
name='pollination-daylight-factor', # will be used for package name unless it is overwritten using __queenbee__ info.
author='ladybug-tools', # the owner account for this package - required if pushed to Pollination
author_email='info@ladybug.tools',
Expand Down

0 comments on commit fa8bb29

Please sign in to comment.