Skip to content

Commit

Permalink
- added publish step
Browse files Browse the repository at this point in the history
- added twine deps
  • Loading branch information
a-earthperson committed Feb 21, 2024
1 parent 820e67f commit 24c64b9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .space.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,17 @@ job("Package") {
}

}

host("Publish") {

env["USER"] = "{{ project:PYPI_USER_TOKEN }}"
env["PASSWORD"] = "{{ project:PYPI_PASSWORD_TOKEN }}"

shellScript("build & push"){
interpreter = "/bin/bash"
content = """
docker run --rm "$remote:{{ branchSlug }}" /bin/bash "python setup.py sdist bdist_wheel && twine upload dist/* -u ${'$'}USER -p ${'$'}PASSWORD"
"""
}
}
}
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""
Setup script for the inverse-canopy package
"""
from setuptools import setup

with open('README.md') as f:
with open('README.md', encoding='utf-8') as f:
README = f.read()

setup(
name='inverse-canopy',
url='https://openpra.org',
version='0.0.13',
version='0.0.14',
author='Arjun Earthperson',
author_email='arjun@openpra.org',
license='AGPL-3.0',
Expand All @@ -27,7 +30,8 @@
'pytest',
'pytest-cov',
'pylint',
'pylint[spelling]'
'pylint[spelling]',
'twine'
]
},
classifiers=[
Expand Down

0 comments on commit 24c64b9

Please sign in to comment.