Switch to setup.cfg
Configure setup.cfg to find all Python packages. Add more metadata to package.
This commit is contained in:
parent
c284092a15
commit
7f691ce1c9
|
|
@ -1,3 +0,0 @@
|
||||||
# This __init__ file is just here to support the
|
|
||||||
# use of archinstall as a git submodule.
|
|
||||||
from .archinstall import *
|
|
||||||
|
|
@ -14,6 +14,8 @@ from .lib.output import *
|
||||||
from .lib.storage import *
|
from .lib.storage import *
|
||||||
from .lib.hardware import *
|
from .lib.hardware import *
|
||||||
|
|
||||||
|
__version__ = "2.1.3"
|
||||||
|
|
||||||
## Basic version of arg.parse() supporting:
|
## Basic version of arg.parse() supporting:
|
||||||
## --key=value
|
## --key=value
|
||||||
## --boolean
|
## --boolean
|
||||||
|
|
@ -27,4 +29,4 @@ for arg in sys.argv[1:]:
|
||||||
key, val = arg[2:], True
|
key, val = arg[2:], True
|
||||||
arguments[key] = val
|
arguments[key] = val
|
||||||
else:
|
else:
|
||||||
positionals.append(arg)
|
positionals.append(arg)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
[metadata]
|
||||||
|
name = archinstall
|
||||||
|
version = attr: archinstall.__version__
|
||||||
|
description = Arch Linux installer - guided, templates etc.
|
||||||
|
author = Anton Hvornum
|
||||||
|
author_email = anton@hvornum.se
|
||||||
|
long_description = file: README.md
|
||||||
|
long_description_content_type = text/markdown
|
||||||
|
license = GPL
|
||||||
|
license_files =
|
||||||
|
LICENSE
|
||||||
|
project_urls =
|
||||||
|
Source = https://github.com/archlinux/archinstall
|
||||||
|
Documentation = https://archinstall.readthedocs.io/
|
||||||
|
classifers =
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
Programming Language :: Python :: 3.8
|
||||||
|
Programming Language :: Python :: 3.9
|
||||||
|
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
||||||
|
Operating System :: POSIX :: Linux
|
||||||
|
|
||||||
|
[options]
|
||||||
|
packages = find:
|
||||||
|
python_requires = >= 3.8
|
||||||
|
|
||||||
|
[options.packages.find]
|
||||||
|
include =
|
||||||
|
archinstall
|
||||||
|
archinstall.*
|
||||||
|
|
||||||
|
[options.package_data]
|
||||||
|
archinstall =
|
||||||
|
examples/*.py
|
||||||
|
profiles/*.py
|
||||||
|
profiles/applications/*.py
|
||||||
29
setup.py
29
setup.py
|
|
@ -1,27 +1,2 @@
|
||||||
import setuptools, glob, shutil
|
import setuptools
|
||||||
|
setuptools.setup()
|
||||||
with open("README.md", "r") as fh:
|
|
||||||
long_description = fh.read()
|
|
||||||
|
|
||||||
with open('VERSION', 'r') as fh:
|
|
||||||
VERSION = fh.read()
|
|
||||||
|
|
||||||
setuptools.setup(
|
|
||||||
name="archinstall",
|
|
||||||
version=VERSION,
|
|
||||||
author="Anton Hvornum",
|
|
||||||
author_email="anton@hvornum.se",
|
|
||||||
description="Arch Linux installer - guided, templates etc.",
|
|
||||||
long_description=long_description,
|
|
||||||
long_description_content_type="text/markdown",
|
|
||||||
url="https://github.com/archlinux/archinstall",
|
|
||||||
packages=setuptools.find_packages(),
|
|
||||||
classifiers=[
|
|
||||||
"Programming Language :: Python :: 3.8",
|
|
||||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
||||||
"Operating System :: POSIX :: Linux",
|
|
||||||
],
|
|
||||||
python_requires='>=3.8',
|
|
||||||
setup_requires=['wheel'],
|
|
||||||
package_data={'archinstall': glob.glob('examples/*.py') + glob.glob('profiles/*.py') + glob.glob('profiles/applications/*.py')},
|
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue