Skip to content

Commit 7d205e4

Browse files
committed
Merge branch 'develop' of github.com:wwu-mmll/photonai into develop
2 parents 54fa2b9 + 5ff37a4 commit 7d205e4

File tree

4 files changed

+75
-25
lines changed

4 files changed

+75
-25
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PHOTONAI release deployment on PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
name: Build and publish to PyPI
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python 3.7.6
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.7.6
17+
- name: Install pypa/build
18+
run: pip install build
19+
- name: Build a binary wheel and a source tarball
20+
run: python -m build --sdist --wheel --outdir dist/ .
21+
- name: Publish distribution to Test PyPI
22+
uses: pypa/gh-action-pypi-publish@master
23+
with:
24+
user: __token__
25+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-test.yml renamed to .github/workflows/python-test_and_deploy.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: PHOTONAI tests
4+
name: PHOTONAI test and test deploy
55

66
on:
77
push:
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
pytest:
14-
14+
name: Run PHOTONAI tests and publish test coverage
1515
runs-on: ubuntu-18.04
1616

1717
services:
@@ -43,3 +43,28 @@ jobs:
4343
env:
4444
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
deploy:
47+
name: Build and publish to TestPyPI
48+
runs-on: ubuntu-18.04
49+
needs: pytest
50+
if: github.ref == 'refs/heads/master'
51+
steps:
52+
- uses: actions/checkout@v2
53+
- name: Set up Python 3.7.6
54+
uses: actions/setup-python@v2
55+
with:
56+
python-version: 3.7.6
57+
- name: Replace version number with commit hash
58+
run: |
59+
dt=$(date '+%Y.%m.%d.%H.%M.%S')
60+
sed -i "s/^__version__.*/__version__ = '$dt'/g" setup.py
61+
- name: Install pypa/build
62+
run: pip install build
63+
- name: Build a binary wheel and a source tarball
64+
run: python -m build --sdist --wheel --outdir dist/ .
65+
- name: Publish distribution to Test PyPI
66+
uses: pypa/gh-action-pypi-publish@master
67+
with:
68+
user: __token__
69+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
70+
repository_url: https://test.pypi.org/legacy/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
![PHOTON LOGO](http://www.photon-ai.com/static/img/photon/photon-logo-github.png "PHOTON Logo")
1+
[![PHOTON LOGO](https://www.photon-ai.com/static/img/photon/photon-logo-github.png)](https://www.photon-ai.com/)
22

3-
[![Build Status](https://travis-ci.com/wwu-mmll/photonai.svg?branch=master)](https://travis-ci.com/wwu-mmll/photonai)
3+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wwu-mmll/photonai/PHOTONAI%20test%20and%20test%20deploy)](https://github.com/wwu-mmll/photonai/actions)
44
[![Coverage Status](https://coveralls.io/repos/github/wwu-mmll/photonai/badge.svg?branch=master)](https://coveralls.io/github/wwu-mmll/photonai?branch=master)
55
[![Github Contributors](https://img.shields.io/github/contributors-anon/wwu-mmll/photonai?color=blue)](https://github.com/wwu-mmll/photonai/graphs/contributors)
66
[![Github Commits](https://img.shields.io/github/commit-activity/y/wwu-mmll/photonai)](https://github.com/wwu-mmll/photonai/commits/master)

setup.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@
55
use_setuptools()
66
from setuptools import setup, find_packages
77

8-
# from setuptools.command.install import install
9-
#
10-
# class Modulenstalltio
11-
128

139
__version__ = '2.1.0'
1410

11+
with open("README.md", "r", encoding="utf-8") as fh:
12+
long_description = fh.read()
13+
1514
setup(
1615
name='photonai',
1716
packages=find_packages(),
1817
include_package_data=True,
1918
version=__version__,
20-
description="""
21-
PHOTONAI
22-
is a rapid prototyping framework enabling (not so experienced) users to build, train, optimize, evaluate,
23-
and share even complex machine learning (ML) pipelines with very high efficiency.
24-
25-
By pre-registering state-of-the-art ML implementations, we create a system in which the user can select
26-
and arrange processing steps and learning algorithms in simple or parallel pipeline data streams.
27-
28-
Importantly, PHOTONAI is capable to automatize the training and testing procedure including nested cross-validation and
29-
hyperparameter search, calculates performance metrics and conveniently visualizes the analyzed hyperparameter space.
30-
31-
It also enables the user persist and load your optimal model, including all preprocessing elements,
32-
with only one line of code.
33-
""",
19+
description="PHOTONAI is a high level python API for designing and optimizing machine learning pipelines.",
20+
long_description=long_description,
21+
long_description_content_type="text/markdown",
22+
license = "GPLv3",
3423
author='PHOTONAI Team',
3524
author_email='[email protected]',
36-
url='https://github.com/mmll-wwu/photonai.git',
37-
download_url='https://github.com/wwu-mmll/photonai/archive/' + __version__ + '.tar.gz',
25+
url='https://www.photon-ai.com/',
26+
project_urls={
27+
"Source Code": "https://github.com/wwu-mmll/photonai/",
28+
"Documentation": "https://wwu-mmll.github.io/photonai/",
29+
"Bug Tracker": "https://github.com/wwu-mmll/photonai/issues",
30+
},
31+
download_url='https://pypi.org/project/photonai/#files',
3832
keywords=['machine learning', 'deep learning', 'neural networks', 'hyperparameter'],
39-
classifiers=[],
33+
classifiers=[
34+
"Programming Language :: Python :: 3",
35+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
36+
"Operating System :: OS Independent",
37+
'Intended Audience :: Science/Research',
38+
'Intended Audience :: Developers',
39+
],
4040
install_requires=[
4141
'numpy',
4242
'matplotlib',

0 commit comments

Comments
 (0)