Skip to content

Commit

Permalink
migrate to newer project standards
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Sep 7, 2023
1 parent cedc2de commit 3ab069e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 57 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Expand Up @@ -13,19 +13,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
45 changes: 45 additions & 0 deletions pyproject.toml
@@ -0,0 +1,45 @@
[project]
name = "applecatalog"
version = "2.0.0"
description = "AppleCatalog download agent"
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
keywords = ["apple", "download", "automations", "updates"]
authors = [
{ name = "doronz88", email = "doron88@gmail.com" }
]
maintainers = [
{ name = "doronz88", email = "doron88@gmail.com" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["dependencies"]

[project.optional-dependencies]
test = ["pytest"]

[project.urls]
"Homepage" = "https://github.com/doronz88/applecatalog"
"Bug Reports" = "https://github.com/doronz88/applecatalog/issues"

[project.scripts]
applecatalog = "applecatalog.__main__:cli"

[tool.setuptools.packages.find]
exclude = ["docs*", "tests*"]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
build-backend = "setuptools.build_meta"
53 changes: 0 additions & 53 deletions setup.py

This file was deleted.

0 comments on commit 3ab069e

Please sign in to comment.