Skip to content

Commit

Permalink
migrate to hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkokotila committed Apr 20, 2024
1 parent a135847 commit b7b0a1f
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-old.yml
Original file line number Diff line number Diff line change
@@ -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/*
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" },
]
maintainers = [
{ name = "Mikko Kotila", email = "[email protected]" },
]
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",
]

0 comments on commit b7b0a1f

Please sign in to comment.