-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from neuroneural/main
pypi
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__)) |