Skip to content

Commit

Permalink
Merge pull request #1 from neuroneural/main
Browse files Browse the repository at this point in the history
pypi
  • Loading branch information
sergeyplis authored Feb 21, 2024
2 parents 912cef1 + baaba06 commit e7c0007
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pypi Publish
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build Pypi Files
run: |
pip install --upgrade setuptools
pip install wheel
pip install twine
git config --global user.name "${{secrets.GIT_USER}}"
git config --global user.email "${{secrets.GIT_GMAIL}}"
rm -rf build dist mindfultensors.egg-info
git stash
git fetch --all
git checkout version
bash version_update.sh
python3 setup.py sdist bdist_wheel
- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API }}
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from setuptools import setup

__version__="0.0.0"
exec(open('version.py').read())
setup(name='mindfultensors',
version='0.0.1',
version=__version__,
author='Sergey Plis',
author_email='[email protected]',
packages=['mindfultensors'],
url='http://pypi.python.org/pypi/mindfultensors/',
license='MIT',
description='Dataloader that serves MRI images from a mogodb',
long_description_content_type="text/markdown",
long_description=open('README.md').read(),
install_requires=[
"numpy",
Expand Down
2 changes: 2 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version_info__ = [0, 0, 1]
__version__ = '.'.join(map(str, __version_info__))

0 comments on commit e7c0007

Please sign in to comment.