moved to flit build system
This commit is contained in:
parent
7c902a6c83
commit
413565dbd0
|
|
@ -21,11 +21,10 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install setuptools wheel twine
|
pip install setuptools wheel flit
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist bdist_wheel
|
flit publish
|
||||||
twine upload dist/*
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
[distutils]
|
||||||
|
index-servers =
|
||||||
|
pypi
|
||||||
|
|
||||||
|
[pypi]
|
||||||
|
repository = https://upload.pypi.org/legacy/
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
"""Arch Linux installer - guided, templates etc."""
|
||||||
from .lib.general import *
|
from .lib.general import *
|
||||||
from .lib.disk import *
|
from .lib.disk import *
|
||||||
from .lib.user_interaction import *
|
from .lib.user_interaction import *
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,30 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools", "wheel"]
|
requires = ["flit_core >=2,<4"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[tool.flit.metadata]
|
||||||
|
module = "archinstall"
|
||||||
|
author = "Anton Hvornum"
|
||||||
|
author-email = "anton@hvornum.se"
|
||||||
|
home-page = "https://archlinux.org"
|
||||||
|
classifiers = [ "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||||
|
"Operating System :: POSIX :: Linux",
|
||||||
|
]
|
||||||
|
description-file = "README.md"
|
||||||
|
requires-python=">=3.8"
|
||||||
|
[tool.flit.metadata.urls]
|
||||||
|
Source = "https://github.com/archlinux/archinstall"
|
||||||
|
Documentation = "https://archinstall.readthedocs.io/"
|
||||||
|
|
||||||
|
[tool.flit.scripts]
|
||||||
|
archinstall = "archinstall:run_as_a_module"
|
||||||
|
|
||||||
|
[tool.flit.sdist]
|
||||||
|
include = ["doc/"]
|
||||||
|
exclude = ["doc/*.html"]
|
||||||
|
|
||||||
|
[tool.flit.metadata.requires-extra]
|
||||||
|
doc = ["sphinx"]
|
||||||
Loading…
Reference in New Issue