diff --git a/.github/workflows/deploy-old.yml b/.github/workflows/deploy-old.yml new file mode 100644 index 0000000..21f2f01 --- /dev/null +++ b/.github/workflows/deploy-old.yml @@ -0,0 +1,26 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 21f2f01..afef4e0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,11 +16,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install hatch - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} run: | - python setup.py sdist bdist_wheel - twine upload dist/* + hatch build + hatch publish --user __token__ --auth $PYPI_API_TOKEN + diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bbae0a7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,55 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "talos" +dynamic = ["version"] +description = "Talos Hyperparameter Tuning for Keras" +readme = "README.md" +license = "MIT" +authors = [ + { name = "Mikko Kotila", email = "mailme@mikkokotila.com" }, +] +maintainers = [ + { name = "Mikko Kotila", email = "mailme@mikkokotila.com" }, +] +classifiers = [ + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: MacOS", + "Operating System :: Microsoft :: Windows :: Windows 10", + "Operating System :: POSIX", + "Operating System :: Unix", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Topic :: Scientific/Engineering :: Artificial Intelligence", + "Topic :: Scientific/Engineering :: Human Machine Interfaces", + "Topic :: Scientific/Engineering :: Mathematics", +] +dependencies = [ + "astetik", + "chances", + "kerasplotlib", + "numpy", + "pandas", + "requests", + "scikit-learn", + "statsmodels>=0.11.0", + "tensorflow>=2.0.0", + "tqdm", + "wrangle", +] + +[project.urls] +Download = "https://github.com/autonomio/talos/" +Homepage = "http://autonom.io" + +[tool.hatch.version] +path = "talos/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/talos", +]